{"format":"opendoc-document","version":1,"url":"https://docs.upscale.trade/ru/developers/operations/getordershistorybyticker","title":"Получить историю ордеров по тикеру","description":"GET /orders/{accountId}/{asset}/history: Ордера аккаунта на одном рынке, достигшие финального состояния, сначала новые, с общим количеством для пагинации.","kind":"api-operation","locale":"ru","inLanguage":"ru","translation":{"sourceLanguage":"en","targetLanguage":"ru","status":"complete","translatedUnits":53,"totalUnits":53},"lastModified":"2026-09-28T20:14:21.334Z","revision":"4bcdb0248fec5130d7dca32f21ced4a207c71ff2d711894a920c99e4198fedd7","section":{"title":"Developers","url":"https://docs.upscale.trade/ru/developers"},"representations":{"html":"https://docs.upscale.trade/ru/developers/operations/getordershistorybyticker","markdown":"https://docs.upscale.trade/ru/developers/operations/getordershistorybyticker.md","json":"https://docs.upscale.trade/ru/developers/operations/getordershistorybyticker.json"},"translations":{"en":"https://docs.upscale.trade/developers/operations/getordershistorybyticker","ru":"https://docs.upscale.trade/ru/developers/operations/getordershistorybyticker","es":"https://docs.upscale.trade/es/developers/operations/getordershistorybyticker"},"operation":{"id":"getOrdersHistoryByTicker","method":"GET","path":"/orders/{accountId}/{asset}/history","summary":"Получить историю ордеров по тикеру","description":"Ордера аккаунта на одном рынке, достигшие финального состояния, сначала новые, с общим количеством для пагинации.\n\n- `status` и `errorCode` показывают, чем закончился каждый из них: исполнен, отменён трейдером, закрытием позиции или ошибкой исполнения.\n- Ордера, заменённые обновлением, исключаются — вместо них историю несёт замена.\n- Ограничено фазой, в которой аккаунт находится в данный момент.","tags":["Trading"],"tagLabels":{"Accounts":"Аккаунты","Config":"Конфигурация","Trading":"Торговля"},"deprecated":false,"parameters":[{"name":"accountId","location":"path","schema":{"type":"string · uuid","types":["string"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid"},"properties":[],"variants":[]},"type":"string · uuid","required":true,"description":"Идентификатор торгового аккаунта. Должен принадлежать вызывающей стороне.","example":"00000000-0000-4000-8000-000000000000"},{"name":"asset","location":"path","schema":{"type":"string","types":["string"],"example":"BTC","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]},"type":"string","required":true,"description":"Тикер базового актива рынка, как возвращается `GET /v2/markets`.","example":"BTC"},{"name":"limit","location":"query","schema":{"type":"integer","types":["integer"],"example":20,"default":20,"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"minimum":1,"maximum":100},"properties":[],"variants":[]},"type":"integer","required":false,"description":"Размер страницы: сколько записей вернуть.","example":"20"},{"name":"offset","location":"query","schema":{"type":"integer","types":["integer"],"example":0,"default":0,"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"minimum":0,"maximum":9007199254740991},"properties":[],"variants":[]},"type":"integer","required":false,"description":"Сколько записей пропустить перед страницей.","example":"0"}],"bodies":[],"responses":[{"status":"401","description":"Неавторизовано","properties":[],"headers":[]},{"status":"403","description":"Аккаунт принадлежит другому пользователю (`account_access_denied`), или запрос аутентифицирован с помощью API-ключа, тогда как `api_trading` отключён на аккаунте (`api_trading_not_enabled`).","properties":[],"headers":[]},{"status":"404","description":"Нет аккаунта с этим идентификатором или нет рынка для этого тикера.","properties":[],"headers":[]},{"status":"429","description":"Превышен лимит частоты запросов API-ключа (`api_key_rate_limit_exceeded`). `Retry-After` указывает, когда вернуться; тело содержит бакет (`read` / `write`), окно, которое сработало, его лимит и `retryAt`.","properties":[],"headers":[]},{"status":"default","description":"Ответ","mediaType":"application/json","properties":[{"name":"data","type":"object[]","required":true,"description":"Requested page of orders, newest first.","example":"[\n  {\n    \"id\": \"00000000-0000-4000-8000-000000000000\",\n    \"txId\": \"string\",\n    \"trader\": \"00000000-0000-4000-8000-000000000000\",\n    \"market\": \"00000000-0000-4000-8000-000000000000\",\n    \"status\": \"active\",\n    \"type\": \"market\",\n    \"direction\": \"long\",\n    \"triggerPrice\": \"1000000000\",\n    \"requestedTriggerPrice\": \"1000000000\",\n    \"stopPrice\": \"1000000000\",\n    \"limitPrice\": \"1000000000\",\n    \"stopTriggerPrice\": \"1000000000\",\n    \"takeTriggerPrice\": \"1000000000\",\n    \"trailingStopActivationPrice\": \"1000000000\",\n    \"trailingStopOffset\": \"1000000000\",\n    \"trailingStopOffsetPercent\": \"1000000000\",\n    \"leverage\": \"1000000000\",\n    \"index\": \"string\",\n    \"positionId\": \"string\",\n    \"parentOrderId\": \"string\",\n    \"expiration\": \"2026-05-01T12:30:00.000Z\",\n    \"amount\": \"1000000000\",\n    \"indexPrice\": \"1000000000\",\n    \"settlementOraclePrice\": \"1000000000\",\n    \"createdAt\": \"2026-05-01T12:30:00.000Z\",\n    \"error\": \"string\",\n    \"realizedPnl\": \"1000000000\",\n    \"rawRealizedPnl\": \"1000000000\",\n    \"profitAdjustmentApplied\": true,\n    \"executedAfterPause\": true,\n    \"sizeMode\": \"quote\",\n    \"baseSize\": \"1000000000\",\n    \"reservedAmount\": \"1000000000\",\n    \"errorCode\": \"string\",\n    \"reason\": \"force_close\"\n  }\n]","schema":{"type":"object[]","types":["array"],"description":"Requested page of orders, newest first.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"items":{"type":"object","types":["object"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[{"name":"id","type":"string · uuid","required":true,"description":"Order identifier.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Order identifier.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"txId","type":"string","required":true,"description":"Order identifier. Kept for backward compatibility, always equal to `id`.","example":"string","schema":{"type":"string","types":["string"],"description":"Order identifier. Kept for backward compatibility, always equal to `id`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"trader","type":"string · uuid","required":true,"description":"Trader account the order belongs to.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Trader account the order belongs to.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"market","type":"string · uuid","required":true,"description":"Market the order is placed on.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Market the order is placed on.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"status","type":"string · enum","required":true,"description":"Lifecycle state: `active` while it waits, `executed` once filled, `canceled` when cancelled by the trader or the platform, `canceled_by_update` when replaced by an edit, `canceled_by_position` when the position it was attached to went away, `canceled_by_error` when execution failed — see `errorCode`.","example":"active","schema":{"type":"string · enum","types":["string"],"description":"Lifecycle state: `active` while it waits, `executed` once filled, `canceled` when cancelled by the trader or the platform, `canceled_by_update` when replaced by an edit, `canceled_by_position` when the position it was attached to went away, `canceled_by_error` when execution failed — see `errorCode`.","enum":["active","canceled","canceled_by_update","canceled_by_error","canceled_by_position","executed"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"type","type":"string · enum","required":true,"description":"Order type. `liquidation` marks an order the engine raised itself.","example":"market","schema":{"type":"string · enum","types":["string"],"description":"Order type. `liquidation` marks an order the engine raised itself.","enum":["market","limit","stop","trailing_stop","take","stop_limit","stop_market","liquidation"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"direction","type":"string · enum","required":true,"description":"Order direction.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Order direction.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"triggerPrice","type":"string · int32","required":true,"description":"Price at which the order fires, fp9 raw. `0` when the order carries no trigger.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Price at which the order fires, fp9 raw. `0` when the order carries no trigger.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"requestedTriggerPrice","type":"string · int32 · nullable","required":true,"description":"Trigger price as requested, before the engine pushed it out to the minimum stop distance, fp9 raw. Null when the requested price was kept as is.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Trigger price as requested, before the engine pushed it out to the minimum stop distance, fp9 raw. Null when the requested price was kept as is.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"stopPrice","type":"string · int32","required":true,"description":"Trigger price of a `stop_market` / `stop_limit` order, fp9 raw; `0` for every other type.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Trigger price of a `stop_market` / `stop_limit` order, fp9 raw; `0` for every other type.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"limitPrice","type":"string · int32","required":true,"description":"Price the order is placed at once triggered, fp9 raw: the stop-limit price, falling back to the trigger price.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Price the order is placed at once triggered, fp9 raw: the stop-limit price, falling back to the trigger price.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"stopTriggerPrice","type":"string · int32","required":true,"description":"Stop-loss attached to the order, fp9 raw. `0` when none is attached.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Stop-loss attached to the order, fp9 raw. `0` when none is attached.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"takeTriggerPrice","type":"string · int32","required":true,"description":"Take-profit attached to the order, fp9 raw. `0` when none is attached.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Take-profit attached to the order, fp9 raw. `0` when none is attached.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"trailingStopActivationPrice","type":"string · int32","required":true,"description":"Price at which a trailing stop starts trailing, fp9 raw. `0` when it trails from creation.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Price at which a trailing stop starts trailing, fp9 raw. `0` when it trails from creation.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"trailingStopOffset","type":"string · int32","required":true,"description":"Trailing distance as an absolute quote amount, fp9 raw. `0` when the distance is set as a percent.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Trailing distance as an absolute quote amount, fp9 raw. `0` when the distance is set as a percent.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"trailingStopOffsetPercent","type":"string · int32","required":true,"description":"Trailing distance as a fraction of price, fp9 raw. `0` when the distance is absolute.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Trailing distance as a fraction of price, fp9 raw. `0` when the distance is absolute.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"leverage","type":"string · int32 · nullable","required":true,"description":"Leverage of the order, fp9 raw. Null on close orders, which inherit the leverage of the position.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Leverage of the order, fp9 raw. Null on close orders, which inherit the leverage of the position.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"index","type":"string","required":true,"description":"Order identifier. Kept for backward compatibility, always equal to `id`.","example":"string","schema":{"type":"string","types":["string"],"description":"Order identifier. Kept for backward compatibility, always equal to `id`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"positionId","type":"string · nullable","required":true,"description":"Position a close order is attached to. Null for orders that open or grow a position.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Position a close order is attached to. Null for orders that open or grow a position.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"parentOrderId","type":"string · nullable","required":true,"description":"Order this one was spawned from: a stop or take created out of `stopTriggerPrice` / `takeTriggerPrice`, or the limit order a `stop_limit` turned into. Null when the order was submitted directly.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Order this one was spawned from: a stop or take created out of `stopTriggerPrice` / `takeTriggerPrice`, or the limit order a `stop_limit` turned into. Null when the order was submitted directly.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"expiration","type":"string · date-time · nullable","required":true,"description":"Always null. Kept for backward compatibility — orders do not expire on their own.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time · nullable","types":["string"],"description":"Always null. Kept for backward compatibility — orders do not expire on their own.","example":"2026-05-01T12:30:00.000Z","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"amount","type":"string · int32","required":true,"description":"Size of the order, fp9 raw, in the unit its class uses: on an increase order a quote amount — the reserve while it waits, and what it actually spent once executed; on a close order (`stop`, `take`, `trailing_stop`) the base asset size it closes, as requested at creation.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Size of the order, fp9 raw, in the unit its class uses: on an increase order a quote amount — the reserve while it waits, and what it actually spent once executed; on a close order (`stop`, `take`, `trailing_stop`) the base asset size it closes, as requested at creation.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"indexPrice","type":"string · int32 · nullable","required":true,"description":"Index price the order executed at, fp9 raw. Null while the order has not executed.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Index price the order executed at, fp9 raw. Null while the order has not executed.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"settlementOraclePrice","type":"string · int32","required":true,"description":"Always `1000000000` (1.0). Kept for backward compatibility.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Always `1000000000` (1.0). Kept for backward compatibility.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"createdAt","type":"string · date-time","required":true,"description":"When the order was accepted.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"When the order was accepted.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"error","type":"string · nullable","required":true,"description":"Always null. Kept for backward compatibility — use `errorCode`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Always null. Kept for backward compatibility — use `errorCode`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"realizedPnl","type":"string · int32 · nullable","required":true,"description":"Pnl realised by this order, fp9 raw. Set only on an executed close order; null while pending and on orders that open or grow a position.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Pnl realised by this order, fp9 raw. Set only on an executed close order; null while pending and on orders that open or grow a position.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rawRealizedPnl","type":"string · int32 · nullable","required":true,"description":"Realised pnl before the 60-second adjustment, fp9 raw. Differs from `realizedPnl` only when the adjustment fired.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Realised pnl before the 60-second adjustment, fp9 raw. Differs from `realizedPnl` only when the adjustment fired.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"profitAdjustmentApplied","type":"boolean","required":true,"description":"Whether the 60-second adjustment capped the profit of this order — inside a minute of an open or increase the position pnl cannot grow above what it was at that moment.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Whether the 60-second adjustment capped the profit of this order — inside a minute of an open or increase the position pnl cannot grow above what it was at that moment.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"executedAfterPause","type":"boolean","required":true,"description":"Whether the order executed after a market pause. Not set by the current engine — always `false`.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Whether the order executed after a market pause. Not set by the current engine — always `false`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"sizeMode","type":"string · enum","required":true,"description":"How the size was expressed on creation: `quote` sizes the order by `amount`, `base` sizes it by `baseSize`.","example":"quote","schema":{"type":"string · enum","types":["string"],"description":"How the size was expressed on creation: `quote` sizes the order by `amount`, `base` sizes it by `baseSize`.","enum":["quote","base"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"baseSize","type":"string · int32 · nullable","required":true,"description":"Order size in base asset units, fp9 raw. Null for `quote`-sized orders.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Order size in base asset units, fp9 raw. Null for `quote`-sized orders.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"reservedAmount","type":"string · int32 · nullable","required":true,"description":"Quote amount reserved when the order with sizeMode=base was created, fp9 raw. Stays at the original reserve after execution, while `amount` is rewritten to what was spent. Null for `quote`-sized orders, where `amount` is the reserve.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Quote amount reserved when the order with sizeMode=base was created, fp9 raw. Stays at the original reserve after execution, while `amount` is rewritten to what was spent. Null for `quote`-sized orders, where `amount` is the reserve.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"errorCode","type":"string · nullable","required":true,"description":"Why execution failed, set together with status `canceled_by_error` — for example `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` or `slippage_tolerance`. Null otherwise.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Why execution failed, set together with status `canceled_by_error` — for example `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` or `slippage_tolerance`. Null otherwise.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"reason","type":"string · enum · nullable","required":true,"description":"Why the platform cancelled the order itself, for example `force_close` or `weekly_session_risk_close`. Null for trader-driven cancellations.","example":"force_close","schema":{"type":"string · enum · nullable","types":["string"],"description":"Why the platform cancelled the order itself, for example `force_close` or `weekly_session_risk_close`. Null for trader-driven cancellations.","enum":["force_close","stop_accounts_fail","stop_accounts_freeze","stop_accounts_promote","stop_accounts_manual","weekly_session_risk_close",null],"nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"variants":[]},"variants":[]}},{"name":"totalCount","type":"number","required":true,"description":"Total number of orders matching the request, across all pages.","example":"0","schema":{"type":"number","types":["number"],"description":"Total number of orders matching the request, across all pages.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"schema":{"type":"object","types":["object"],"reference":"#/components/schemas/OrdersPaginatedResponse","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[{"name":"data","type":"object[]","required":true,"description":"Запрошенная страница ордеров, сначала самые новые.","example":"[\n  {\n    \"id\": \"00000000-0000-4000-8000-000000000000\",\n    \"txId\": \"string\",\n    \"trader\": \"00000000-0000-4000-8000-000000000000\",\n    \"market\": \"00000000-0000-4000-8000-000000000000\",\n    \"status\": \"active\",\n    \"type\": \"market\",\n    \"direction\": \"long\",\n    \"triggerPrice\": \"1000000000\",\n    \"requestedTriggerPrice\": \"1000000000\",\n    \"stopPrice\": \"1000000000\",\n    \"limitPrice\": \"1000000000\",\n    \"stopTriggerPrice\": \"1000000000\",\n    \"takeTriggerPrice\": \"1000000000\",\n    \"trailingStopActivationPrice\": \"1000000000\",\n    \"trailingStopOffset\": \"1000000000\",\n    \"trailingStopOffsetPercent\": \"1000000000\",\n    \"leverage\": \"1000000000\",\n    \"index\": \"string\",\n    \"positionId\": \"string\",\n    \"parentOrderId\": \"string\",\n    \"expiration\": \"2026-05-01T12:30:00.000Z\",\n    \"amount\": \"1000000000\",\n    \"indexPrice\": \"1000000000\",\n    \"settlementOraclePrice\": \"1000000000\",\n    \"createdAt\": \"2026-05-01T12:30:00.000Z\",\n    \"error\": \"string\",\n    \"realizedPnl\": \"1000000000\",\n    \"rawRealizedPnl\": \"1000000000\",\n    \"profitAdjustmentApplied\": true,\n    \"executedAfterPause\": true,\n    \"sizeMode\": \"quote\",\n    \"baseSize\": \"1000000000\",\n    \"reservedAmount\": \"1000000000\",\n    \"errorCode\": \"string\",\n    \"reason\": \"force_close\"\n  }\n]","schema":{"type":"object[]","types":["array"],"description":"Запрошенная страница ордеров, сначала самые новые.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"items":{"type":"object","types":["object"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[{"name":"id","type":"string · uuid","required":true,"description":"Идентификатор ордера.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Идентификатор ордера.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"txId","type":"string","required":true,"description":"Идентификатор ордера. Сохранён для обратной совместимости, всегда равен `id`.","example":"string","schema":{"type":"string","types":["string"],"description":"Идентификатор ордера. Сохранён для обратной совместимости, всегда равен `id`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"trader","type":"string · uuid","required":true,"description":"Аккаунт трейдера, которому принадлежит ордер.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Аккаунт трейдера, которому принадлежит ордер.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"market","type":"string · uuid","required":true,"description":"Рынок, на котором размещён ордер.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Рынок, на котором размещён ордер.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"status","type":"string · enum","required":true,"description":"Состояние жизненного цикла: `active`, пока он ожидает, `executed` после исполнения, `canceled` при отмене трейдером или платформой, `canceled_by_update` при замене в результате редактирования, `canceled_by_position` когда позиция, к которой он был привязан, исчезла, `canceled_by_error` при неудачном исполнении — см. `errorCode`.","example":"active","schema":{"type":"string · enum","types":["string"],"description":"Состояние жизненного цикла: `active`, пока он ожидает, `executed` после исполнения, `canceled` при отмене трейдером или платформой, `canceled_by_update` при замене в результате редактирования, `canceled_by_position` когда позиция, к которой он был привязан, исчезла, `canceled_by_error` при неудачном исполнении — см. `errorCode`.","enum":["active","canceled","canceled_by_update","canceled_by_error","canceled_by_position","executed"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"type","type":"string · enum","required":true,"description":"Тип ордера. `liquidation` обозначает ордер, который движок выставил сам.","example":"market","schema":{"type":"string · enum","types":["string"],"description":"Тип ордера. `liquidation` обозначает ордер, который движок выставил сам.","enum":["market","limit","stop","trailing_stop","take","stop_limit","stop_market","liquidation"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"direction","type":"string · enum","required":true,"description":"Направление ордера.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Направление ордера.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"triggerPrice","type":"string · int32","required":true,"description":"Цена, при которой срабатывает ордер, fp9 в необработанном виде. `0`, когда ордер не имеет триггера.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Цена, при которой срабатывает ордер, fp9 в необработанном виде. `0`, когда ордер не имеет триггера.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"requestedTriggerPrice","type":"string · int32 · nullable","required":true,"description":"Цена триггера, как запрошено, до того как движок вытолкнул её до минимального стоп-расстояния, fp9 в исходном виде. Null, когда запрошенная цена была оставлена как есть.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Цена триггера, как запрошено, до того как движок вытолкнул её до минимального стоп-расстояния, fp9 в исходном виде. Null, когда запрошенная цена была оставлена как есть.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"stopPrice","type":"string · int32","required":true,"description":"Цена триггера ордера `stop_market` / `stop_limit`, fp9 в исходном виде; `0` для любого другого типа.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Цена триггера ордера `stop_market` / `stop_limit`, fp9 в исходном виде; `0` для любого другого типа.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"limitPrice","type":"string · int32","required":true,"description":"Цена, по которой ордер размещается при срабатывании, fp9 в исходном виде: цена стоп-лимит, с возвратом к цене триггера.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Цена, по которой ордер размещается при срабатывании, fp9 в исходном виде: цена стоп-лимит, с возвратом к цене триггера.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"stopTriggerPrice","type":"string · int32","required":true,"description":"Стоп-лосс, привязанный к ордеру, fp9 в исходном виде. `0`, если он не привязан.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Стоп-лосс, привязанный к ордеру, fp9 в исходном виде. `0`, если он не привязан.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"takeTriggerPrice","type":"string · int32","required":true,"description":"Тейк-профит, привязанный к ордеру, fp9 в исходном виде. `0`, если он не привязан.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Тейк-профит, привязанный к ордеру, fp9 в исходном виде. `0`, если он не привязан.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"trailingStopActivationPrice","type":"string · int32","required":true,"description":"Цена, при которой трейлинг-стоп начинает следовать, fp9 в сыром виде. `0`, когда он следует с момента создания.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Цена, при которой трейлинг-стоп начинает следовать, fp9 в сыром виде. `0`, когда он следует с момента создания.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"trailingStopOffset","type":"string · int32","required":true,"description":"Дистанция трейлинга как абсолютная сумма в котируемой валюте, fp9 в сыром виде. `0`, когда дистанция задана в процентах.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Дистанция трейлинга как абсолютная сумма в котируемой валюте, fp9 в сыром виде. `0`, когда дистанция задана в процентах.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"trailingStopOffsetPercent","type":"string · int32","required":true,"description":"Дистанция трейлинга как доля цены, fp9 в сыром виде. `0`, когда дистанция абсолютная.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Дистанция трейлинга как доля цены, fp9 в сыром виде. `0`, когда дистанция абсолютная.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"leverage","type":"string · int32 · nullable","required":true,"description":"Кредитное плечо ордера, fp9 в сыром виде. Null для ордеров на закрытие, которые наследуют кредитное плечо позиции.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Кредитное плечо ордера, fp9 в сыром виде. Null для ордеров на закрытие, которые наследуют кредитное плечо позиции.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"index","type":"string","required":true,"description":"Идентификатор ордера. Сохранён для обратной совместимости, всегда равен `id`.","example":"string","schema":{"type":"string","types":["string"],"description":"Идентификатор ордера. Сохранён для обратной совместимости, всегда равен `id`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"positionId","type":"string · nullable","required":true,"description":"Позиция, к которой привязан ордер на закрытие. Null для ордеров, которые открывают или увеличивают позицию.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Позиция, к которой привязан ордер на закрытие. Null для ордеров, которые открывают или увеличивают позицию.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"parentOrderId","type":"string · nullable","required":true,"description":"Ордер, из которого был порождён этот: стоп или тейк, созданный из `stopTriggerPrice` / `takeTriggerPrice`, или лимитный ордер, в который превратился `stop_limit`. Null, когда ордер был отправлен напрямую.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Ордер, из которого был порождён этот: стоп или тейк, созданный из `stopTriggerPrice` / `takeTriggerPrice`, или лимитный ордер, в который превратился `stop_limit`. Null, когда ордер был отправлен напрямую.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"expiration","type":"string · date-time · nullable","required":true,"description":"Всегда null. Сохранено для обратной совместимости — ордера не истекают сами по себе.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time · nullable","types":["string"],"description":"Всегда null. Сохранено для обратной совместимости — ордера не истекают сами по себе.","example":"2026-05-01T12:30:00.000Z","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"amount","type":"string · int32","required":true,"description":"Размер ордера, fp9 в сыром виде, в единице, которую использует его класс: для ордера на увеличение — сумма в котируемой валюте — резерв, пока он ожидает, и то, что он фактически потратил после исполнения; для ордера на закрытие (`stop`, `take`, `trailing_stop`) — размер базового актива, который он закрывает, как было запрошено при создании.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Размер ордера, fp9 в сыром виде, в единице, которую использует его класс: для ордера на увеличение — сумма в котируемой валюте — резерв, пока он ожидает, и то, что он фактически потратил после исполнения; для ордера на закрытие (`stop`, `take`, `trailing_stop`) — размер базового актива, который он закрывает, как было запрошено при создании.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"indexPrice","type":"string · int32 · nullable","required":true,"description":"Цена индекса, по которой был исполнен ордер, fp9 в сыром виде. Null, пока ордер не исполнен.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Цена индекса, по которой был исполнен ордер, fp9 в сыром виде. Null, пока ордер не исполнен.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"settlementOraclePrice","type":"string · int32","required":true,"description":"Всегда `1000000000` (1.0). Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `1000000000` (1.0). Сохранено для обратной совместимости.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"createdAt","type":"string · date-time","required":true,"description":"Когда ордер был принят.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Когда ордер был принят.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"error","type":"string · nullable","required":true,"description":"Всегда null. Сохранён для обратной совместимости — используйте `errorCode`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Всегда null. Сохранён для обратной совместимости — используйте `errorCode`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"realizedPnl","type":"string · int32 · nullable","required":true,"description":"Pnl, реализованный этим ордером, fp9 в сыром виде. Устанавливается только для исполненного ордера на закрытие; null, пока ордер в ожидании, и для ордеров, которые открывают или увеличивают позицию.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Pnl, реализованный этим ордером, fp9 в сыром виде. Устанавливается только для исполненного ордера на закрытие; null, пока ордер в ожидании, и для ордеров, которые открывают или увеличивают позицию.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rawRealizedPnl","type":"string · int32 · nullable","required":true,"description":"Реализованный pnl до 60-секундной корректировки, fp9 в сыром виде. Отличается от `realizedPnl` только тогда, когда корректировка сработала.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Реализованный pnl до 60-секундной корректировки, fp9 в сыром виде. Отличается от `realizedPnl` только тогда, когда корректировка сработала.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"profitAdjustmentApplied","type":"boolean","required":true,"description":"Ограничила ли 60-секундная корректировка прибыль этого ордера — в течение минуты после открытия или увеличения позиции pnl позиции не может вырасти выше значения, которое было в тот момент.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Ограничила ли 60-секундная корректировка прибыль этого ордера — в течение минуты после открытия или увеличения позиции pnl позиции не может вырасти выше значения, которое было в тот момент.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"executedAfterPause","type":"boolean","required":true,"description":"Был ли ордер исполнен после рыночной паузы. Не задаётся текущим движком — всегда `false`.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Был ли ордер исполнен после рыночной паузы. Не задаётся текущим движком — всегда `false`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"sizeMode","type":"string · enum","required":true,"description":"Как был выражен размер при создании: `quote` задаёт размер ордера по `amount`, `base` задаёт его по `baseSize`.","example":"quote","schema":{"type":"string · enum","types":["string"],"description":"Как был выражен размер при создании: `quote` задаёт размер ордера по `amount`, `base` задаёт его по `baseSize`.","enum":["quote","base"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"baseSize","type":"string · int32 · nullable","required":true,"description":"Размер ордера в единицах базового актива, fp9 в сыром виде. Null для ордеров с размером `quote`.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Размер ордера в единицах базового актива, fp9 в сыром виде. Null для ордеров с размером `quote`.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"reservedAmount","type":"string · int32 · nullable","required":true,"description":"Сумма в котируемой валюте, зарезервированная при создании ордера с sizeMode=base, fp9 в сыром виде. Остаётся равной исходному резерву после исполнения, тогда как `amount` перезаписывается на потраченную сумму. Null для ордеров с размером `quote`, где `amount` — это резерв.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Сумма в котируемой валюте, зарезервированная при создании ордера с sizeMode=base, fp9 в сыром виде. Остаётся равной исходному резерву после исполнения, тогда как `amount` перезаписывается на потраченную сумму. Null для ордеров с размером `quote`, где `amount` — это резерв.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"errorCode","type":"string · nullable","required":true,"description":"Почему исполнение не удалось, задаётся вместе со статусом `canceled_by_error` — например, `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` или `slippage_tolerance`. В остальных случаях Null.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Почему исполнение не удалось, задаётся вместе со статусом `canceled_by_error` — например, `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` или `slippage_tolerance`. В остальных случаях Null.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"reason","type":"string · enum · nullable","required":true,"description":"Почему платформа сама отменила ордер, например `force_close` или `weekly_session_risk_close`. Null для отмен, инициированных трейдером.","example":"force_close","schema":{"type":"string · enum · nullable","types":["string"],"description":"Почему платформа сама отменила ордер, например `force_close` или `weekly_session_risk_close`. Null для отмен, инициированных трейдером.","enum":["force_close","stop_accounts_fail","stop_accounts_freeze","stop_accounts_promote","stop_accounts_manual","weekly_session_risk_close",null],"nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"variants":[]},"variants":[]}},{"name":"totalCount","type":"number","required":true,"description":"Общее количество ордеров, соответствующих запросу, по всем страницам.","example":"0","schema":{"type":"number","types":["number"],"description":"Общее количество ордеров, соответствующих запросу, по всем страницам.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"variants":[]},"example":"{\n  \"data\": [\n    {\n      \"id\": \"00000000-0000-4000-8000-000000000000\",\n      \"txId\": \"string\",\n      \"trader\": \"00000000-0000-4000-8000-000000000000\",\n      \"market\": \"00000000-0000-4000-8000-000000000000\",\n      \"status\": \"active\",\n      \"type\": \"market\",\n      \"direction\": \"long\",\n      \"triggerPrice\": \"1000000000\",\n      \"requestedTriggerPrice\": \"1000000000\",\n      \"stopPrice\": \"1000000000\",\n      \"limitPrice\": \"1000000000\",\n      \"stopTriggerPrice\": \"1000000000\",\n      \"takeTriggerPrice\": \"1000000000\",\n      \"trailingStopActivationPrice\": \"1000000000\",\n      \"trailingStopOffset\": \"1000000000\",\n      \"trailingStopOffsetPercent\": \"1000000000\",\n      \"leverage\": \"1000000000\",\n      \"index\": \"string\",\n      \"positionId\": \"string\",\n      \"parentOrderId\": \"string\",\n      \"expiration\": \"2026-05-01T12:30:00.000Z\",\n      \"amount\": \"1000000000\",\n      \"indexPrice\": \"1000000000\",\n      \"settlementOraclePrice\": \"1000000000\",\n      \"createdAt\": \"2026-05-01T12:30:00.000Z\",\n      \"error\": \"string\",\n      \"realizedPnl\": \"1000000000\",\n      \"rawRealizedPnl\": \"1000000000\",\n      \"profitAdjustmentApplied\": true,\n      \"executedAfterPause\": true,\n      \"sizeMode\": \"quote\",\n      \"baseSize\": \"1000000000\",\n      \"reservedAmount\": \"1000000000\",\n      \"errorCode\": \"string\",\n      \"reason\": \"force_close\"\n    }\n  ],\n  \"totalCount\": 0\n}","headers":[]}],"security":[{"name":"bearer","type":"http · bearer","description":"Персональный API-ключ с префиксом `usk_`.","required":true,"scopes":[]}],"codeSamples":[{"label":"cURL","language":"bash","source":"curl --request GET 'https://api.upscale.trade/orders/{accountId}/{asset}/history' \\\n  --header 'Accept: application/json' \\\n  --header 'Authorization: Bearer YOUR_API_KEY'"},{"label":"JavaScript","language":"javascript","source":"const response = await fetch(\"https://api.upscale.trade/orders/{accountId}/{asset}/history\", {\n  method: \"GET\",\n  headers: {\n    \"Accept\": \"application/json\",\n    \"Authorization\": \"Bearer YOUR_API_KEY\"\n  },\n});\nconsole.log(response.status, await response.text());"},{"label":"Python","language":"python","source":"import requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.upscale.trade/orders/{accountId}/{asset}/history\",\n    headers={\"Accept\":\"application/json\",\"Authorization\":\"Bearer YOUR_API_KEY\"},\n    timeout=30,\n)\nprint(response.status_code, response.text)"}]},"breadcrumbs":[{"title":"Что такое проп-трейдинг","url":"https://docs.upscale.trade/ru"},{"title":"Developers","url":"https://docs.upscale.trade/ru/developers"},{"title":"Получить историю ордеров по тикеру","url":"https://docs.upscale.trade/ru/developers/operations/getordershistorybyticker"}],"headings":[{"depth":2,"id":"authorization","title":"Авторизация"},{"depth":2,"id":"parameters","title":"Параметры"},{"depth":2,"id":"examples","title":"Примеры"},{"depth":2,"id":"responses","title":"Ответы"}],"markdown":"# Получить историю ордеров по тикеру\n\n`GET /orders/{accountId}/{asset}/history`\n\nОрдера аккаунта на одном рынке, достигшие финального состояния, сначала новые, с общим количеством для пагинации.\n\n- `status` и `errorCode` показывают, чем закончился каждый из них: исполнен, отменён трейдером, закрытием позиции или ошибкой исполнения.\n- Ордера, заменённые обновлением, исключаются — вместо них историю несёт замена.\n- Ограничено фазой, в которой аккаунт находится в данный момент.\n\n<a id=\"authorization\"></a>\n\n## Авторизация\n\nbearer: http · bearer (обязательно). Персональный API-ключ с префиксом `usk_`.\n\n<a id=\"parameters\"></a>\n\n## Параметры\n\n- path: accountId (string · uuid; обязательно). Идентификатор торгового аккаунта. Должен принадлежать вызывающей стороне.\n\nТип: string · uuid\n\nformat: uuid\n\n- path: asset (string; обязательно). Тикер базового актива рынка, как возвращается `GET /v2/markets`.\n\nТип: string\n\nПример: \"BTC\"\n\n- query: limit (integer; необязательно). Размер страницы: сколько записей вернуть.\n\nТип: integer\n\nПример: 20\n\nПо умолчанию: 20\n\nminimum: 1\n\nmaximum: 100\n\n- query: offset (integer; необязательно). Сколько записей пропустить перед страницей.\n\nТип: integer\n\nПример: 0\n\nПо умолчанию: 0\n\nminimum: 0\n\nmaximum: 9007199254740991\n\n<a id=\"example-curl\"></a>\n\n## Пример · cURL\n\n```bash\ncurl --request GET 'https://api.upscale.trade/orders/{accountId}/{asset}/history' \\\n  --header 'Accept: application/json' \\\n  --header 'Authorization: Bearer YOUR_API_KEY'\n```\n\n<a id=\"example-javascript\"></a>\n\n## Пример · JavaScript\n\n```javascript\nconst response = await fetch(\"https://api.upscale.trade/orders/{accountId}/{asset}/history\", {\n  method: \"GET\",\n  headers: {\n    \"Accept\": \"application/json\",\n    \"Authorization\": \"Bearer YOUR_API_KEY\"\n  },\n});\nconsole.log(response.status, await response.text());\n```\n\n<a id=\"example-python\"></a>\n\n## Пример · Python\n\n```python\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.upscale.trade/orders/{accountId}/{asset}/history\",\n    headers={\"Accept\":\"application/json\",\"Authorization\":\"Bearer YOUR_API_KEY\"},\n    timeout=30,\n)\nprint(response.status_code, response.text)\n```\n\n<a id=\"response-401\"></a>\n\n## Ответ 401\n\n**401**  — Неавторизовано\n\n<a id=\"response-403\"></a>\n\n## Ответ 403\n\n**403**  — Аккаунт принадлежит другому пользователю (`account_access_denied`), или запрос аутентифицирован с помощью API-ключа, тогда как `api_trading` отключён на аккаунте (`api_trading_not_enabled`).\n\n<a id=\"response-404\"></a>\n\n## Ответ 404\n\n**404**  — Нет аккаунта с этим идентификатором или нет рынка для этого тикера.\n\n<a id=\"response-429\"></a>\n\n## Ответ 429\n\n**429**  — Превышен лимит частоты запросов API-ключа (`api_key_rate_limit_exceeded`). `Retry-After` указывает, когда вернуться; тело содержит бакет (`read` / `write`), окно, которое сработало, его лимит и `retryAt`.\n\n<a id=\"response-default-orderspaginatedresponse\"></a>\n\n## Ответ default · OrdersPaginatedResponse\n\n**default** application/json — Ответ\n\nСхема: OrdersPaginatedResponse\n\nТип: object\n\nОбязательные поля: data, totalCount\n\nТипы обязательных полей: data (object[]; обязательно), totalCount (number; обязательно)\n\n- data (object[]; обязательно)\n\ndata пример: [\n  {\n    \"id\": \"00000000-0000-4000-8000-000000000000\",\n    \"txId\": \"string\",\n    \"trader\": \"00000000-0000-4000-8000-000000000000\",\n    \"market\": \"00000000-0000-4000-8000-000000000000\",\n    \"status\": \"active\",\n    \"type\": \"market\",\n    \"direction\": \"long\",\n    \"triggerPrice\": \"1000000000\",\n    \"requestedTriggerPrice\": \"1000000000\",\n    \"stopPrice\": \"1000000000\",\n    \"limitPrice\": \"1000000000\",\n    \"stopTriggerPrice\": \"1000000000\",\n    \"takeTriggerPrice\": \"1000000000\",\n    \"trailingStopActivationPrice\": \"1000000000\",\n    \"trailingStopOffset\": \"1000000000\",\n    \"trailingStopOffsetPercent\": \"1000000000\",\n    \"leverage\": \"1000000000\",\n    \"index\": \"string\",\n    \"positionId\": \"string\",\n    \"parentOrderId\": \"string\",\n    \"expiration\": \"2026-05-01T12:30:00.000Z\",\n    \"amount\": \"1000000000\",\n    \"indexPrice\": \"1000000000\",\n    \"settlementOraclePrice\": \"1000000000\",\n    \"createdAt\": \"2026-05-01T12:30:00.000Z\",\n    \"error\": \"string\",\n    \"realizedPnl\": \"1000000000\",\n    \"rawRealizedPnl\": \"1000000000\",\n    \"profitAdjustmentApplied\": true,\n    \"executedAfterPause\": true,\n    \"sizeMode\": \"quote\",\n    \"baseSize\": \"1000000000\",\n    \"reservedAmount\": \"1000000000\",\n    \"errorCode\": \"string\",\n    \"reason\": \"force_close\"\n  }\n]\n\ndata.Тип: object[]\n\ndata.Запрошенная страница ордеров, сначала самые новые.\n\ndata.[]Тип: object\n\ndata.[]Обязательные поля: id, txId, trader, market, status, type, direction, triggerPrice, requestedTriggerPrice, stopPrice, limitPrice, stopTriggerPrice, takeTriggerPrice, trailingStopActivationPrice, trailingStopOffset, trailingStopOffsetPercent, leverage, index, positionId, parentOrderId, expiration, amount, indexPrice, settlementOraclePrice, createdAt, error, realizedPnl, rawRealizedPnl, profitAdjustmentApplied, executedAfterPause, sizeMode, baseSize, reservedAmount, errorCode, reason\n\ndata.[]Типы обязательных полей: id (string · uuid; обязательно), txId (string; обязательно), trader (string · uuid; обязательно), market (string · uuid; обязательно), status (string · enum; обязательно), type (string · enum; обязательно), direction (string · enum; обязательно), triggerPrice (string · int32; обязательно), requestedTriggerPrice (string · int32 · nullable; обязательно), stopPrice (string · int32; обязательно), limitPrice (string · int32; обязательно), stopTriggerPrice (string · int32; обязательно), takeTriggerPrice (string · int32; обязательно), trailingStopActivationPrice (string · int32; обязательно), trailingStopOffset (string · int32; обязательно), trailingStopOffsetPercent (string · int32; обязательно), leverage (string · int32 · nullable; обязательно), index (string; обязательно), positionId (string · nullable; обязательно), parentOrderId (string · nullable; обязательно), expiration (string · date-time · nullable; обязательно), amount (string · int32; обязательно), indexPrice (string · int32 · nullable; обязательно), settlementOraclePrice (string · int32; обязательно), createdAt (string · date-time; обязательно), error (string · nullable; обязательно), realizedPnl (string · int32 · nullable; обязательно), rawRealizedPnl (string · int32 · nullable; обязательно), profitAdjustmentApplied (boolean; обязательно), executedAfterPause (boolean; обязательно), sizeMode (string · enum; обязательно), baseSize (string · int32 · nullable; обязательно), reservedAmount (string · int32 · nullable; обязательно), errorCode (string · nullable; обязательно), reason (string · enum · nullable; обязательно)\n\n- data.[]id (string · uuid; обязательно)\n\ndata.[]id пример: 00000000-0000-4000-8000-000000000000\n\ndata.[]id.Тип: string · uuid\n\ndata.[]id.Идентификатор ордера.\n\ndata.[]id.format: uuid\n\ndata.[]id.pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$\n\n- data.[]txId (string; обязательно)\n\ndata.[]txId пример: string\n\ndata.[]txId.Тип: string\n\ndata.[]txId.Идентификатор ордера. Сохранён для обратной совместимости, всегда равен `id`.\n\n- data.[]trader (string · uuid; обязательно)\n\ndata.[]trader пример: 00000000-0000-4000-8000-000000000000\n\ndata.[]trader.Тип: string · uuid\n\ndata.[]trader.Аккаунт трейдера, которому принадлежит ордер.\n\ndata.[]trader.format: uuid\n\ndata.[]trader.pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$\n\n- data.[]market (string · uuid; обязательно)\n\ndata.[]market пример: 00000000-0000-4000-8000-000000000000\n\ndata.[]market.Тип: string · uuid\n\ndata.[]market.Рынок, на котором размещён ордер.\n\ndata.[]market.format: uuid\n\ndata.[]market.pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$\n\n- data.[]status (string · enum; обязательно)\n\ndata.[]status пример: active\n\ndata.[]status.Тип: string · enum\n\ndata.[]status.Состояние жизненного цикла: `active`, пока он ожидает, `executed` после исполнения, `canceled` при отмене трейдером или платформой, `canceled_by_update` при замене в результате редактирования, `canceled_by_position` когда позиция, к которой он был привязан, исчезла, `canceled_by_error` при неудачном исполнении — см. `errorCode`.\n\ndata.[]status.Допустимые значения: [\"active\",\"canceled\",\"canceled_by_update\",\"canceled_by_error\",\"canceled_by_position\",\"executed\"]\n\n- data.[]type (string · enum; обязательно)\n\ndata.[]type пример: market\n\ndata.[]type.Тип: string · enum\n\ndata.[]type.Тип ордера. `liquidation` обозначает ордер, который движок выставил сам.\n\ndata.[]type.Допустимые значения: [\"market\",\"limit\",\"stop\",\"trailing_stop\",\"take\",\"stop_limit\",\"stop_market\",\"liquidation\"]\n\n- data.[]direction (string · enum; обязательно)\n\ndata.[]direction пример: long\n\ndata.[]direction.Тип: string · enum\n\ndata.[]direction.Направление ордера.\n\ndata.[]direction.Допустимые значения: [\"long\",\"short\"]\n\n- data.[]triggerPrice (string · int32; обязательно)\n\ndata.[]triggerPrice пример: 1000000000\n\ndata.[]triggerPrice.Тип: string · int32\n\ndata.[]triggerPrice.Цена, при которой срабатывает ордер, fp9 в необработанном виде. `0`, когда ордер не имеет триггера.\n\ndata.[]triggerPrice.format: int32\n\ndata.[]triggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]requestedTriggerPrice (string · int32 · nullable; обязательно)\n\ndata.[]requestedTriggerPrice пример: 1000000000\n\ndata.[]requestedTriggerPrice.Тип: string · int32 · nullable\n\ndata.[]requestedTriggerPrice.Цена триггера, как запрошено, до того как движок вытолкнул её до минимального стоп-расстояния, fp9 в исходном виде. Null, когда запрошенная цена была оставлена как есть.\n\ndata.[]requestedTriggerPrice.format: int32\n\ndata.[]requestedTriggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]stopPrice (string · int32; обязательно)\n\ndata.[]stopPrice пример: 1000000000\n\ndata.[]stopPrice.Тип: string · int32\n\ndata.[]stopPrice.Цена триггера ордера `stop_market` / `stop_limit`, fp9 в исходном виде; `0` для любого другого типа.\n\ndata.[]stopPrice.format: int32\n\ndata.[]stopPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]limitPrice (string · int32; обязательно)\n\ndata.[]limitPrice пример: 1000000000\n\ndata.[]limitPrice.Тип: string · int32\n\ndata.[]limitPrice.Цена, по которой ордер размещается при срабатывании, fp9 в исходном виде: цена стоп-лимит, с возвратом к цене триггера.\n\ndata.[]limitPrice.format: int32\n\ndata.[]limitPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]stopTriggerPrice (string · int32; обязательно)\n\ndata.[]stopTriggerPrice пример: 1000000000\n\ndata.[]stopTriggerPrice.Тип: string · int32\n\ndata.[]stopTriggerPrice.Стоп-лосс, привязанный к ордеру, fp9 в исходном виде. `0`, если он не привязан.\n\ndata.[]stopTriggerPrice.format: int32\n\ndata.[]stopTriggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]takeTriggerPrice (string · int32; обязательно)\n\ndata.[]takeTriggerPrice пример: 1000000000\n\ndata.[]takeTriggerPrice.Тип: string · int32\n\ndata.[]takeTriggerPrice.Тейк-профит, привязанный к ордеру, fp9 в исходном виде. `0`, если он не привязан.\n\ndata.[]takeTriggerPrice.format: int32\n\ndata.[]takeTriggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]trailingStopActivationPrice (string · int32; обязательно)\n\ndata.[]trailingStopActivationPrice пример: 1000000000\n\ndata.[]trailingStopActivationPrice.Тип: string · int32\n\ndata.[]trailingStopActivationPrice.Цена, при которой трейлинг-стоп начинает следовать, fp9 в сыром виде. `0`, когда он следует с момента создания.\n\ndata.[]trailingStopActivationPrice.format: int32\n\ndata.[]trailingStopActivationPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]trailingStopOffset (string · int32; обязательно)\n\ndata.[]trailingStopOffset пример: 1000000000\n\ndata.[]trailingStopOffset.Тип: string · int32\n\ndata.[]trailingStopOffset.Дистанция трейлинга как абсолютная сумма в котируемой валюте, fp9 в сыром виде. `0`, когда дистанция задана в процентах.\n\ndata.[]trailingStopOffset.format: int32\n\ndata.[]trailingStopOffset.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]trailingStopOffsetPercent (string · int32; обязательно)\n\ndata.[]trailingStopOffsetPercent пример: 1000000000\n\ndata.[]trailingStopOffsetPercent.Тип: string · int32\n\ndata.[]trailingStopOffsetPercent.Дистанция трейлинга как доля цены, fp9 в сыром виде. `0`, когда дистанция абсолютная.\n\ndata.[]trailingStopOffsetPercent.format: int32\n\ndata.[]trailingStopOffsetPercent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]leverage (string · int32 · nullable; обязательно)\n\ndata.[]leverage пример: 1000000000\n\ndata.[]leverage.Тип: string · int32 · nullable\n\ndata.[]leverage.Кредитное плечо ордера, fp9 в сыром виде. Null для ордеров на закрытие, которые наследуют кредитное плечо позиции.\n\ndata.[]leverage.format: int32\n\ndata.[]leverage.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]index (string; обязательно)\n\ndata.[]index пример: string\n\ndata.[]index.Тип: string\n\ndata.[]index.Идентификатор ордера. Сохранён для обратной совместимости, всегда равен `id`.\n\n- data.[]positionId (string · nullable; обязательно)\n\ndata.[]positionId пример: string\n\ndata.[]positionId.Тип: string · nullable\n\ndata.[]positionId.Позиция, к которой привязан ордер на закрытие. Null для ордеров, которые открывают или увеличивают позицию.\n\n- data.[]parentOrderId (string · nullable; обязательно)\n\ndata.[]parentOrderId пример: string\n\ndata.[]parentOrderId.Тип: string · nullable\n\ndata.[]parentOrderId.Ордер, из которого был порождён этот: стоп или тейк, созданный из `stopTriggerPrice` / `takeTriggerPrice`, или лимитный ордер, в который превратился `stop_limit`. Null, когда ордер был отправлен напрямую.\n\n- data.[]expiration (string · date-time · nullable; обязательно)\n\ndata.[]expiration пример: 2026-05-01T12:30:00.000Z\n\ndata.[]expiration.Тип: string · date-time · nullable\n\ndata.[]expiration.Всегда null. Сохранено для обратной совместимости — ордера не истекают сами по себе.\n\ndata.[]expiration.format: date-time\n\n- data.[]amount (string · int32; обязательно)\n\ndata.[]amount пример: 1000000000\n\ndata.[]amount.Тип: string · int32\n\ndata.[]amount.Размер ордера, fp9 в сыром виде, в единице, которую использует его класс: для ордера на увеличение — сумма в котируемой валюте — резерв, пока он ожидает, и то, что он фактически потратил после исполнения; для ордера на закрытие (`stop`, `take`, `trailing_stop`) — размер базового актива, который он закрывает, как было запрошено при создании.\n\ndata.[]amount.format: int32\n\ndata.[]amount.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]indexPrice (string · int32 · nullable; обязательно)\n\ndata.[]indexPrice пример: 1000000000\n\ndata.[]indexPrice.Тип: string · int32 · nullable\n\ndata.[]indexPrice.Цена индекса, по которой был исполнен ордер, fp9 в сыром виде. Null, пока ордер не исполнен.\n\ndata.[]indexPrice.format: int32\n\ndata.[]indexPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]settlementOraclePrice (string · int32; обязательно)\n\ndata.[]settlementOraclePrice пример: 1000000000\n\ndata.[]settlementOraclePrice.Тип: string · int32\n\ndata.[]settlementOraclePrice.Всегда `1000000000` (1.0). Сохранено для обратной совместимости.\n\ndata.[]settlementOraclePrice.format: int32\n\ndata.[]settlementOraclePrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]createdAt (string · date-time; обязательно)\n\ndata.[]createdAt пример: 2026-05-01T12:30:00.000Z\n\ndata.[]createdAt.Тип: string · date-time\n\ndata.[]createdAt.Когда ордер был принят.\n\ndata.[]createdAt.format: date-time\n\n- data.[]error (string · nullable; обязательно)\n\ndata.[]error пример: string\n\ndata.[]error.Тип: string · nullable\n\ndata.[]error.Всегда null. Сохранён для обратной совместимости — используйте `errorCode`.\n\n- data.[]realizedPnl (string · int32 · nullable; обязательно)\n\ndata.[]realizedPnl пример: 1000000000\n\ndata.[]realizedPnl.Тип: string · int32 · nullable\n\ndata.[]realizedPnl.Pnl, реализованный этим ордером, fp9 в сыром виде. Устанавливается только для исполненного ордера на закрытие; null, пока ордер в ожидании, и для ордеров, которые открывают или увеличивают позицию.\n\ndata.[]realizedPnl.format: int32\n\ndata.[]realizedPnl.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rawRealizedPnl (string · int32 · nullable; обязательно)\n\ndata.[]rawRealizedPnl пример: 1000000000\n\ndata.[]rawRealizedPnl.Тип: string · int32 · nullable\n\ndata.[]rawRealizedPnl.Реализованный pnl до 60-секундной корректировки, fp9 в сыром виде. Отличается от `realizedPnl` только тогда, когда корректировка сработала.\n\ndata.[]rawRealizedPnl.format: int32\n\ndata.[]rawRealizedPnl.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]profitAdjustmentApplied (boolean; обязательно)\n\ndata.[]profitAdjustmentApplied пример: true\n\ndata.[]profitAdjustmentApplied.Тип: boolean\n\ndata.[]profitAdjustmentApplied.Ограничила ли 60-секундная корректировка прибыль этого ордера — в течение минуты после открытия или увеличения позиции pnl позиции не может вырасти выше значения, которое было в тот момент.\n\n- data.[]executedAfterPause (boolean; обязательно)\n\ndata.[]executedAfterPause пример: true\n\ndata.[]executedAfterPause.Тип: boolean\n\ndata.[]executedAfterPause.Был ли ордер исполнен после рыночной паузы. Не задаётся текущим движком — всегда `false`.\n\n- data.[]sizeMode (string · enum; обязательно)\n\ndata.[]sizeMode пример: quote\n\ndata.[]sizeMode.Тип: string · enum\n\ndata.[]sizeMode.Как был выражен размер при создании: `quote` задаёт размер ордера по `amount`, `base` задаёт его по `baseSize`.\n\ndata.[]sizeMode.Допустимые значения: [\"quote\",\"base\"]\n\n- data.[]baseSize (string · int32 · nullable; обязательно)\n\ndata.[]baseSize пример: 1000000000\n\ndata.[]baseSize.Тип: string · int32 · nullable\n\ndata.[]baseSize.Размер ордера в единицах базового актива, fp9 в сыром виде. Null для ордеров с размером `quote`.\n\ndata.[]baseSize.format: int32\n\ndata.[]baseSize.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]reservedAmount (string · int32 · nullable; обязательно)\n\ndata.[]reservedAmount пример: 1000000000\n\ndata.[]reservedAmount.Тип: string · int32 · nullable\n\ndata.[]reservedAmount.Сумма в котируемой валюте, зарезервированная при создании ордера с sizeMode=base, fp9 в сыром виде. Остаётся равной исходному резерву после исполнения, тогда как `amount` перезаписывается на потраченную сумму. Null для ордеров с размером `quote`, где `amount` — это резерв.\n\ndata.[]reservedAmount.format: int32\n\ndata.[]reservedAmount.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]errorCode (string · nullable; обязательно)\n\ndata.[]errorCode пример: string\n\ndata.[]errorCode.Тип: string · nullable\n\ndata.[]errorCode.Почему исполнение не удалось, задаётся вместе со статусом `canceled_by_error` — например, `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` или `slippage_tolerance`. В остальных случаях Null.\n\n- data.[]reason (string · enum · nullable; обязательно)\n\ndata.[]reason пример: force_close\n\ndata.[]reason.Тип: string · enum · nullable\n\ndata.[]reason.Почему платформа сама отменила ордер, например `force_close` или `weekly_session_risk_close`. Null для отмен, инициированных трейдером.\n\ndata.[]reason.Допустимые значения: [\"force_close\",\"stop_accounts_fail\",\"stop_accounts_freeze\",\"stop_accounts_promote\",\"stop_accounts_manual\",\"weekly_session_risk_close\",null]\n\n- totalCount (number; обязательно)\n\ntotalCount пример: 0\n\ntotalCount.Тип: number\n\ntotalCount.Общее количество ордеров, соответствующих запросу, по всем страницам.\n\nПример\n\n\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"00000000-0000-4000-8000-000000000000\",\n      \"txId\": \"string\",\n      \"trader\": \"00000000-0000-4000-8000-000000000000\",\n      \"market\": \"00000000-0000-4000-8000-000000000000\",\n      \"status\": \"active\",\n      \"type\": \"market\",\n      \"direction\": \"long\",\n      \"triggerPrice\": \"1000000000\",\n      \"requestedTriggerPrice\": \"1000000000\",\n      \"stopPrice\": \"1000000000\",\n      \"limitPrice\": \"1000000000\",\n      \"stopTriggerPrice\": \"1000000000\",\n      \"takeTriggerPrice\": \"1000000000\",\n      \"trailingStopActivationPrice\": \"1000000000\",\n      \"trailingStopOffset\": \"1000000000\",\n      \"trailingStopOffsetPercent\": \"1000000000\",\n      \"leverage\": \"1000000000\",\n      \"index\": \"string\",\n      \"positionId\": \"string\",\n      \"parentOrderId\": \"string\",\n      \"expiration\": \"2026-05-01T12:30:00.000Z\",\n      \"amount\": \"1000000000\",\n      \"indexPrice\": \"1000000000\",\n      \"settlementOraclePrice\": \"1000000000\",\n      \"createdAt\": \"2026-05-01T12:30:00.000Z\",\n      \"error\": \"string\",\n      \"realizedPnl\": \"1000000000\",\n      \"rawRealizedPnl\": \"1000000000\",\n      \"profitAdjustmentApplied\": true,\n      \"executedAfterPause\": true,\n      \"sizeMode\": \"quote\",\n      \"baseSize\": \"1000000000\",\n      \"reservedAmount\": \"1000000000\",\n      \"errorCode\": \"string\",\n      \"reason\": \"force_close\"\n    }\n  ],\n  \"totalCount\": 0\n}\n```","text":"Получить историю ордеров по тикеру Ордера аккаунта на одном рынке, достигшие финального состояния, сначала новые, с общим количеством для пагинации. - `status` и `errorCode` показывают, чем закончился каждый из них: исполнен, отменён трейдером, закрытием позиции или ошибкой исполнения. - Ордера, заменённые обновлением, исключаются — вместо них историю несёт замена. - Ограничено фазой, в которой аккаунт находится в данный момент. GET /orders/{accountId}/{asset}/history Trading accountId Идентификатор торгового аккаунта. Должен принадлежать вызывающей стороне. string · uuid asset Тикер базового актива рынка, как возвращается `GET /v2/markets`. string limit Размер страницы: сколько записей вернуть. integer offset Сколько записей пропустить перед страницей. integer 401 Неавторизовано 403 Аккаунт принадлежит другому пользователю (`account_access_denied`), или запрос аутентифицирован с помощью API-ключа, тогда как `api_trading` отключён на аккаунте (`api_trading_not_enabled`). 404 Нет аккаунта с этим идентификатором или нет рынка для этого тикера. 429 Превышен лимит частоты запросов API-ключа (`api_key_rate_limit_exceeded`). `Retry-After` указывает, когда вернуться; тело содержит бакет (`read` / `write`), окно, которое сработало, его лимит и `retryAt`. default Ответ data Requested page of orders, newest first. object[] totalCount Total number of orders matching the request, across all pages. number","api":{"title":"Публичный API Upscale","version":"d796ac9","documentation":"https://docs.upscale.trade/ru/developers","playgroundServer":"https://api.upscale.trade"}}