{"format":"opendoc-document","version":1,"url":"https://docs.upscale.trade/es/developers/operations/getordershistorybyticker","title":"Obtener el historial de órdenes por ticker","description":"GET /orders/{accountId}/{asset}/history: Órdenes de la cuenta en un mercado que han alcanzado un estado final, las más recientes primero, con el recuento total para la paginación.","kind":"api-operation","locale":"es","inLanguage":"es","translation":{"sourceLanguage":"en","targetLanguage":"es","status":"complete","translatedUnits":53,"totalUnits":53},"lastModified":"2026-09-28T20:05:09.350Z","revision":"3c2fd254d25c5fe88817d5c939afd24407f25862bdfb7b9dc8ab5105728c7abe","section":{"title":"Developers","url":"https://docs.upscale.trade/es/developers"},"representations":{"html":"https://docs.upscale.trade/es/developers/operations/getordershistorybyticker","markdown":"https://docs.upscale.trade/es/developers/operations/getordershistorybyticker.md","json":"https://docs.upscale.trade/es/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":"Obtener el historial de órdenes por ticker","description":"Órdenes de la cuenta en un mercado que han alcanzado un estado final, las más recientes primero, con el recuento total para la paginación.\n\n- `status` y `errorCode` indican cómo terminó cada una: ejecutada, cancelada por el trader, por el cierre de la posición, o por un error de ejecución.\n- Las órdenes reemplazadas por una actualización se omiten — el reemplazo lleva el historial en su lugar.\n- Limitado a la fase en la que se encuentra actualmente la cuenta.","tags":["Trading"],"tagLabels":{"Accounts":"Cuentas","Config":"Configuración","Trading":"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":"Identificador de la cuenta del trader. Debe pertenecer al solicitante.","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":"Ticker del activo base del mercado, tal como lo devuelve `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":"Tamaño de página: cuántos registros devolver.","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":"Cuántos registros omitir antes de la página.","example":"0"}],"bodies":[],"responses":[{"status":"401","description":"No autorizado","properties":[],"headers":[]},{"status":"403","description":"La cuenta pertenece a otro usuario (`account_access_denied`), o la solicitud se autentica con una clave de API mientras `api_trading` está deshabilitado en la cuenta (`api_trading_not_enabled`).","properties":[],"headers":[]},{"status":"404","description":"No hay ninguna cuenta con este identificador, o no hay ningún mercado para este ticker.","properties":[],"headers":[]},{"status":"429","description":"Se superó el límite de velocidad de la clave de API (`api_key_rate_limit_exceeded`). `Retry-After` indica cuándo volver; el cuerpo incluye el bucket (`read` / `write`), la ventana que se activó, su límite y `retryAt`.","properties":[],"headers":[]},{"status":"default","description":"Respuesta","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":"Página solicitada de órdenes, las más recientes primero.","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":"Página solicitada de órdenes, las más recientes primero.","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":"Identificador de la orden.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Identificador de la orden.","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":"Identificador de la orden. Se conserva por compatibilidad con versiones anteriores, siempre igual a `id`.","example":"string","schema":{"type":"string","types":["string"],"description":"Identificador de la orden. Se conserva por compatibilidad con versiones anteriores, siempre igual a `id`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"trader","type":"string · uuid","required":true,"description":"Cuenta del trader a la que pertenece la orden.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Cuenta del trader a la que pertenece la orden.","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":"Mercado en el que se coloca la orden.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Mercado en el que se coloca la orden.","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":"Estado del ciclo de vida: `active` mientras espera, `executed` una vez ejecutada, `canceled` cuando es cancelada por el trader o la plataforma, `canceled_by_update` cuando es reemplazada por una edición, `canceled_by_position` cuando la posición a la que estaba vinculada desapareció, `canceled_by_error` cuando falló la ejecución — consulta `errorCode`.","example":"active","schema":{"type":"string · enum","types":["string"],"description":"Estado del ciclo de vida: `active` mientras espera, `executed` una vez ejecutada, `canceled` cuando es cancelada por el trader o la plataforma, `canceled_by_update` cuando es reemplazada por una edición, `canceled_by_position` cuando la posición a la que estaba vinculada desapareció, `canceled_by_error` cuando falló la ejecución — consulta `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":"Tipo de orden. `liquidation` marca una orden que el propio motor generó.","example":"market","schema":{"type":"string · enum","types":["string"],"description":"Tipo de orden. `liquidation` marca una orden que el propio motor generó.","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":"Dirección de la orden.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Dirección de la orden.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"triggerPrice","type":"string · int32","required":true,"description":"Precio al que se dispara la orden, fp9 en bruto. `0` cuando la orden no lleva disparador.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Precio al que se dispara la orden, fp9 en bruto. `0` cuando la orden no lleva disparador.","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":"Precio de activación tal como se solicitó, antes de que el motor lo desplazara hasta la distancia mínima de stop, fp9 en bruto. Nulo cuando el precio solicitado se mantuvo tal cual.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Precio de activación tal como se solicitó, antes de que el motor lo desplazara hasta la distancia mínima de stop, fp9 en bruto. Nulo cuando el precio solicitado se mantuvo tal cual.","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":"Precio de activación de una orden `stop_market` / `stop_limit`, fp9 en bruto; `0` para cualquier otro tipo.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Precio de activación de una orden `stop_market` / `stop_limit`, fp9 en bruto; `0` para cualquier otro tipo.","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":"Precio al que se coloca la orden una vez activada, fp9 en bruto: el precio stop-limit, recurriendo al precio de activación como alternativa.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Precio al que se coloca la orden una vez activada, fp9 en bruto: el precio stop-limit, recurriendo al precio de activación como alternativa.","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 asociado a la orden, fp9 en bruto. `0` cuando no hay ninguno asociado.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Stop-loss asociado a la orden, fp9 en bruto. `0` cuando no hay ninguno asociado.","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 asociado a la orden, fp9 en bruto. `0` cuando no hay ninguno asociado.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Take-profit asociado a la orden, fp9 en bruto. `0` cuando no hay ninguno asociado.","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":"Precio al que un stop móvil comienza a hacer seguimiento, fp9 sin procesar. `0` cuando hace seguimiento desde la creación.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Precio al que un stop móvil comienza a hacer seguimiento, fp9 sin procesar. `0` cuando hace seguimiento desde la creación.","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":"Distancia de seguimiento como un importe absoluto de cotización, fp9 sin procesar. `0` cuando la distancia se establece como porcentaje.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Distancia de seguimiento como un importe absoluto de cotización, fp9 sin procesar. `0` cuando la distancia se establece como porcentaje.","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":"Distancia de seguimiento como una fracción del precio, fp9 sin procesar. `0` cuando la distancia es absoluta.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Distancia de seguimiento como una fracción del precio, fp9 sin procesar. `0` cuando la distancia es absoluta.","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":"Apalancamiento de la orden, fp9 en bruto. Nulo en órdenes de cierre, que heredan el apalancamiento de la posición.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Apalancamiento de la orden, fp9 en bruto. Nulo en órdenes de cierre, que heredan el apalancamiento de la posición.","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":"Identificador de la orden. Se conserva por compatibilidad con versiones anteriores, siempre igual a `id`.","example":"string","schema":{"type":"string","types":["string"],"description":"Identificador de la orden. Se conserva por compatibilidad con versiones anteriores, siempre igual a `id`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"positionId","type":"string · nullable","required":true,"description":"Posición a la que está asociada una orden de cierre. Nulo para órdenes que abren o aumentan una posición.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Posición a la que está asociada una orden de cierre. Nulo para órdenes que abren o aumentan una posición.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"parentOrderId","type":"string · nullable","required":true,"description":"Orden de la que se generó esta: un stop o un take creado a partir de `stopTriggerPrice` / `takeTriggerPrice`, o la orden limit en la que se convirtió un `stop_limit`. Nulo cuando la orden se envió directamente.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Orden de la que se generó esta: un stop o un take creado a partir de `stopTriggerPrice` / `takeTriggerPrice`, o la orden limit en la que se convirtió un `stop_limit`. Nulo cuando la orden se envió directamente.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"expiration","type":"string · date-time · nullable","required":true,"description":"Siempre nulo. Se mantiene por compatibilidad con versiones anteriores: las órdenes no expiran por sí solas.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time · nullable","types":["string"],"description":"Siempre nulo. Se mantiene por compatibilidad con versiones anteriores: las órdenes no expiran por sí solas.","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":"Tamaño de la orden, fp9 en bruto, en la unidad que usa su clase: en una orden de incremento, un importe de cotización — la reserva mientras espera, y lo que realmente gastó una vez ejecutada; en una orden de cierre (`stop`, `take`, `trailing_stop`), el tamaño del activo base que cierra, tal como se solicitó al crearla.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Tamaño de la orden, fp9 en bruto, en la unidad que usa su clase: en una orden de incremento, un importe de cotización — la reserva mientras espera, y lo que realmente gastó una vez ejecutada; en una orden de cierre (`stop`, `take`, `trailing_stop`), el tamaño del activo base que cierra, tal como se solicitó al crearla.","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":"Precio índice al que se ejecutó la orden, fp9 en bruto. Nulo mientras la orden no se haya ejecutado.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Precio índice al que se ejecutó la orden, fp9 en bruto. Nulo mientras la orden no se haya ejecutado.","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":"Siempre `1000000000` (1.0). Se mantiene por compatibilidad con versiones anteriores.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Siempre `1000000000` (1.0). Se mantiene por compatibilidad con versiones anteriores.","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":"Cuándo se aceptó la orden.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Cuándo se aceptó la orden.","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":"Siempre null. Se mantiene por compatibilidad hacia atrás — utilice `errorCode`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Siempre null. Se mantiene por compatibilidad hacia atrás — utilice `errorCode`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"realizedPnl","type":"string · int32 · nullable","required":true,"description":"Pnl realizado por esta orden, fp9 en bruto. Se establece solo en una orden de cierre ejecutada; null mientras está pendiente y en órdenes que abren o aumentan una posición.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Pnl realizado por esta orden, fp9 en bruto. Se establece solo en una orden de cierre ejecutada; null mientras está pendiente y en órdenes que abren o aumentan una posición.","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 realizado antes del ajuste de 60 segundos, fp9 en bruto. Difiere de `realizedPnl` solo cuando se activó el ajuste.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Pnl realizado antes del ajuste de 60 segundos, fp9 en bruto. Difiere de `realizedPnl` solo cuando se activó el ajuste.","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":"Si el ajuste de 60 segundos limitó la ganancia de esta orden — dentro de un minuto de una apertura o un aumento, el pnl de la posición no puede crecer por encima de lo que era en ese momento.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Si el ajuste de 60 segundos limitó la ganancia de esta orden — dentro de un minuto de una apertura o un aumento, el pnl de la posición no puede crecer por encima de lo que era en ese momento.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"executedAfterPause","type":"boolean","required":true,"description":"Indica si la orden se ejecutó después de una pausa del mercado. No lo establece el motor actual — siempre `false`.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Indica si la orden se ejecutó después de una pausa del mercado. No lo establece el motor actual — siempre `false`.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"sizeMode","type":"string · enum","required":true,"description":"Cómo se expresó el tamaño al crearse: `quote` dimensiona la orden por `amount`, `base` la dimensiona por `baseSize`.","example":"quote","schema":{"type":"string · enum","types":["string"],"description":"Cómo se expresó el tamaño al crearse: `quote` dimensiona la orden por `amount`, `base` la dimensiona por `baseSize`.","enum":["quote","base"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"baseSize","type":"string · int32 · nullable","required":true,"description":"Tamaño de la orden en unidades del activo base, fp9 en bruto. Nulo para órdenes dimensionadas por `quote`.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Tamaño de la orden en unidades del activo base, fp9 en bruto. Nulo para órdenes dimensionadas por `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":"Importe de quote reservado cuando se creó la orden con sizeMode=base, fp9 en bruto. Se mantiene en la reserva original después de la ejecución, mientras que `amount` se reescribe a lo que se gastó. Nulo para órdenes dimensionadas por `quote`, donde `amount` es la reserva.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Importe de quote reservado cuando se creó la orden con sizeMode=base, fp9 en bruto. Se mantiene en la reserva original después de la ejecución, mientras que `amount` se reescribe a lo que se gastó. Nulo para órdenes dimensionadas por `quote`, donde `amount` es la reserva.","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":"Por qué falló la ejecución, establecido junto con el estado `canceled_by_error` — por ejemplo `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` o `slippage_tolerance`. Nulo en caso contrario.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Por qué falló la ejecución, establecido junto con el estado `canceled_by_error` — por ejemplo `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` o `slippage_tolerance`. Nulo en caso contrario.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"reason","type":"string · enum · nullable","required":true,"description":"Por qué la plataforma canceló la orden por sí misma, por ejemplo `force_close` o `weekly_session_risk_close`. Nulo para cancelaciones impulsadas por el trader.","example":"force_close","schema":{"type":"string · enum · nullable","types":["string"],"description":"Por qué la plataforma canceló la orden por sí misma, por ejemplo `force_close` o `weekly_session_risk_close`. Nulo para cancelaciones impulsadas por el trader.","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":"Número total de órdenes que coinciden con la solicitud, en todas las páginas.","example":"0","schema":{"type":"number","types":["number"],"description":"Número total de órdenes que coinciden con la solicitud, en todas las páginas.","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":"Clave de API personal, con el prefijo `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":"Qué es el prop trading","url":"https://docs.upscale.trade/es"},{"title":"Developers","url":"https://docs.upscale.trade/es/developers"},{"title":"Obtener el historial de órdenes por ticker","url":"https://docs.upscale.trade/es/developers/operations/getordershistorybyticker"}],"headings":[{"depth":2,"id":"authorization","title":"Autorización"},{"depth":2,"id":"parameters","title":"Parámetros"},{"depth":2,"id":"examples","title":"Ejemplos"},{"depth":2,"id":"responses","title":"Respuestas"}],"markdown":"# Obtener el historial de órdenes por ticker\n\n`GET /orders/{accountId}/{asset}/history`\n\nÓrdenes de la cuenta en un mercado que han alcanzado un estado final, las más recientes primero, con el recuento total para la paginación.\n\n- `status` y `errorCode` indican cómo terminó cada una: ejecutada, cancelada por el trader, por el cierre de la posición, o por un error de ejecución.\n- Las órdenes reemplazadas por una actualización se omiten — el reemplazo lleva el historial en su lugar.\n- Limitado a la fase en la que se encuentra actualmente la cuenta.\n\n<a id=\"authorization\"></a>\n\n## Autorización\n\nbearer: http · bearer (obligatorio). Clave de API personal, con el prefijo `usk_`.\n\n<a id=\"parameters\"></a>\n\n## Parámetros\n\n- path: accountId (string · uuid; obligatorio). Identificador de la cuenta del trader. Debe pertenecer al solicitante.\n\nTipo: string · uuid\n\nformat: uuid\n\n- path: asset (string; obligatorio). Ticker del activo base del mercado, tal como lo devuelve `GET /v2/markets`.\n\nTipo: string\n\nEjemplo: \"BTC\"\n\n- query: limit (integer; opcional). Tamaño de página: cuántos registros devolver.\n\nTipo: integer\n\nEjemplo: 20\n\nPredeterminado: 20\n\nminimum: 1\n\nmaximum: 100\n\n- query: offset (integer; opcional). Cuántos registros omitir antes de la página.\n\nTipo: integer\n\nEjemplo: 0\n\nPredeterminado: 0\n\nminimum: 0\n\nmaximum: 9007199254740991\n\n<a id=\"example-curl\"></a>\n\n## Ejemplo · 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## Ejemplo · 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## Ejemplo · 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## Respuesta 401\n\n**401**  — No autorizado\n\n<a id=\"response-403\"></a>\n\n## Respuesta 403\n\n**403**  — La cuenta pertenece a otro usuario (`account_access_denied`), o la solicitud se autentica con una clave de API mientras `api_trading` está deshabilitado en la cuenta (`api_trading_not_enabled`).\n\n<a id=\"response-404\"></a>\n\n## Respuesta 404\n\n**404**  — No hay ninguna cuenta con este identificador, o no hay ningún mercado para este ticker.\n\n<a id=\"response-429\"></a>\n\n## Respuesta 429\n\n**429**  — Se superó el límite de velocidad de la clave de API (`api_key_rate_limit_exceeded`). `Retry-After` indica cuándo volver; el cuerpo incluye el bucket (`read` / `write`), la ventana que se activó, su límite y `retryAt`.\n\n<a id=\"response-default-orderspaginatedresponse\"></a>\n\n## Respuesta default · OrdersPaginatedResponse\n\n**default** application/json — Respuesta\n\nEsquema: OrdersPaginatedResponse\n\nTipo: object\n\nCampos obligatorios: data, totalCount\n\nTipos de campos obligatorios: data (object[]; obligatorio), totalCount (number; obligatorio)\n\n- data (object[]; obligatorio)\n\ndata ejemplo: [\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.Tipo: object[]\n\ndata.Página solicitada de órdenes, las más recientes primero.\n\ndata.[]Tipo: object\n\ndata.[]Campos obligatorios: 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.[]Tipos de campos obligatorios: id (string · uuid; obligatorio), txId (string; obligatorio), trader (string · uuid; obligatorio), market (string · uuid; obligatorio), status (string · enum; obligatorio), type (string · enum; obligatorio), direction (string · enum; obligatorio), triggerPrice (string · int32; obligatorio), requestedTriggerPrice (string · int32 · nullable; obligatorio), stopPrice (string · int32; obligatorio), limitPrice (string · int32; obligatorio), stopTriggerPrice (string · int32; obligatorio), takeTriggerPrice (string · int32; obligatorio), trailingStopActivationPrice (string · int32; obligatorio), trailingStopOffset (string · int32; obligatorio), trailingStopOffsetPercent (string · int32; obligatorio), leverage (string · int32 · nullable; obligatorio), index (string; obligatorio), positionId (string · nullable; obligatorio), parentOrderId (string · nullable; obligatorio), expiration (string · date-time · nullable; obligatorio), amount (string · int32; obligatorio), indexPrice (string · int32 · nullable; obligatorio), settlementOraclePrice (string · int32; obligatorio), createdAt (string · date-time; obligatorio), error (string · nullable; obligatorio), realizedPnl (string · int32 · nullable; obligatorio), rawRealizedPnl (string · int32 · nullable; obligatorio), profitAdjustmentApplied (boolean; obligatorio), executedAfterPause (boolean; obligatorio), sizeMode (string · enum; obligatorio), baseSize (string · int32 · nullable; obligatorio), reservedAmount (string · int32 · nullable; obligatorio), errorCode (string · nullable; obligatorio), reason (string · enum · nullable; obligatorio)\n\n- data.[]id (string · uuid; obligatorio)\n\ndata.[]id ejemplo: 00000000-0000-4000-8000-000000000000\n\ndata.[]id.Tipo: string · uuid\n\ndata.[]id.Identificador de la orden.\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; obligatorio)\n\ndata.[]txId ejemplo: string\n\ndata.[]txId.Tipo: string\n\ndata.[]txId.Identificador de la orden. Se conserva por compatibilidad con versiones anteriores, siempre igual a `id`.\n\n- data.[]trader (string · uuid; obligatorio)\n\ndata.[]trader ejemplo: 00000000-0000-4000-8000-000000000000\n\ndata.[]trader.Tipo: string · uuid\n\ndata.[]trader.Cuenta del trader a la que pertenece la orden.\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; obligatorio)\n\ndata.[]market ejemplo: 00000000-0000-4000-8000-000000000000\n\ndata.[]market.Tipo: string · uuid\n\ndata.[]market.Mercado en el que se coloca la orden.\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; obligatorio)\n\ndata.[]status ejemplo: active\n\ndata.[]status.Tipo: string · enum\n\ndata.[]status.Estado del ciclo de vida: `active` mientras espera, `executed` una vez ejecutada, `canceled` cuando es cancelada por el trader o la plataforma, `canceled_by_update` cuando es reemplazada por una edición, `canceled_by_position` cuando la posición a la que estaba vinculada desapareció, `canceled_by_error` cuando falló la ejecución — consulta `errorCode`.\n\ndata.[]status.Valores permitidos: [\"active\",\"canceled\",\"canceled_by_update\",\"canceled_by_error\",\"canceled_by_position\",\"executed\"]\n\n- data.[]type (string · enum; obligatorio)\n\ndata.[]type ejemplo: market\n\ndata.[]type.Tipo: string · enum\n\ndata.[]type.Tipo de orden. `liquidation` marca una orden que el propio motor generó.\n\ndata.[]type.Valores permitidos: [\"market\",\"limit\",\"stop\",\"trailing_stop\",\"take\",\"stop_limit\",\"stop_market\",\"liquidation\"]\n\n- data.[]direction (string · enum; obligatorio)\n\ndata.[]direction ejemplo: long\n\ndata.[]direction.Tipo: string · enum\n\ndata.[]direction.Dirección de la orden.\n\ndata.[]direction.Valores permitidos: [\"long\",\"short\"]\n\n- data.[]triggerPrice (string · int32; obligatorio)\n\ndata.[]triggerPrice ejemplo: 1000000000\n\ndata.[]triggerPrice.Tipo: string · int32\n\ndata.[]triggerPrice.Precio al que se dispara la orden, fp9 en bruto. `0` cuando la orden no lleva disparador.\n\ndata.[]triggerPrice.format: int32\n\ndata.[]triggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]requestedTriggerPrice (string · int32 · nullable; obligatorio)\n\ndata.[]requestedTriggerPrice ejemplo: 1000000000\n\ndata.[]requestedTriggerPrice.Tipo: string · int32 · nullable\n\ndata.[]requestedTriggerPrice.Precio de activación tal como se solicitó, antes de que el motor lo desplazara hasta la distancia mínima de stop, fp9 en bruto. Nulo cuando el precio solicitado se mantuvo tal cual.\n\ndata.[]requestedTriggerPrice.format: int32\n\ndata.[]requestedTriggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]stopPrice (string · int32; obligatorio)\n\ndata.[]stopPrice ejemplo: 1000000000\n\ndata.[]stopPrice.Tipo: string · int32\n\ndata.[]stopPrice.Precio de activación de una orden `stop_market` / `stop_limit`, fp9 en bruto; `0` para cualquier otro tipo.\n\ndata.[]stopPrice.format: int32\n\ndata.[]stopPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]limitPrice (string · int32; obligatorio)\n\ndata.[]limitPrice ejemplo: 1000000000\n\ndata.[]limitPrice.Tipo: string · int32\n\ndata.[]limitPrice.Precio al que se coloca la orden una vez activada, fp9 en bruto: el precio stop-limit, recurriendo al precio de activación como alternativa.\n\ndata.[]limitPrice.format: int32\n\ndata.[]limitPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]stopTriggerPrice (string · int32; obligatorio)\n\ndata.[]stopTriggerPrice ejemplo: 1000000000\n\ndata.[]stopTriggerPrice.Tipo: string · int32\n\ndata.[]stopTriggerPrice.Stop-loss asociado a la orden, fp9 en bruto. `0` cuando no hay ninguno asociado.\n\ndata.[]stopTriggerPrice.format: int32\n\ndata.[]stopTriggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]takeTriggerPrice (string · int32; obligatorio)\n\ndata.[]takeTriggerPrice ejemplo: 1000000000\n\ndata.[]takeTriggerPrice.Tipo: string · int32\n\ndata.[]takeTriggerPrice.Take-profit asociado a la orden, fp9 en bruto. `0` cuando no hay ninguno asociado.\n\ndata.[]takeTriggerPrice.format: int32\n\ndata.[]takeTriggerPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]trailingStopActivationPrice (string · int32; obligatorio)\n\ndata.[]trailingStopActivationPrice ejemplo: 1000000000\n\ndata.[]trailingStopActivationPrice.Tipo: string · int32\n\ndata.[]trailingStopActivationPrice.Precio al que un stop móvil comienza a hacer seguimiento, fp9 sin procesar. `0` cuando hace seguimiento desde la creación.\n\ndata.[]trailingStopActivationPrice.format: int32\n\ndata.[]trailingStopActivationPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]trailingStopOffset (string · int32; obligatorio)\n\ndata.[]trailingStopOffset ejemplo: 1000000000\n\ndata.[]trailingStopOffset.Tipo: string · int32\n\ndata.[]trailingStopOffset.Distancia de seguimiento como un importe absoluto de cotización, fp9 sin procesar. `0` cuando la distancia se establece como porcentaje.\n\ndata.[]trailingStopOffset.format: int32\n\ndata.[]trailingStopOffset.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]trailingStopOffsetPercent (string · int32; obligatorio)\n\ndata.[]trailingStopOffsetPercent ejemplo: 1000000000\n\ndata.[]trailingStopOffsetPercent.Tipo: string · int32\n\ndata.[]trailingStopOffsetPercent.Distancia de seguimiento como una fracción del precio, fp9 sin procesar. `0` cuando la distancia es absoluta.\n\ndata.[]trailingStopOffsetPercent.format: int32\n\ndata.[]trailingStopOffsetPercent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]leverage (string · int32 · nullable; obligatorio)\n\ndata.[]leverage ejemplo: 1000000000\n\ndata.[]leverage.Tipo: string · int32 · nullable\n\ndata.[]leverage.Apalancamiento de la orden, fp9 en bruto. Nulo en órdenes de cierre, que heredan el apalancamiento de la posición.\n\ndata.[]leverage.format: int32\n\ndata.[]leverage.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]index (string; obligatorio)\n\ndata.[]index ejemplo: string\n\ndata.[]index.Tipo: string\n\ndata.[]index.Identificador de la orden. Se conserva por compatibilidad con versiones anteriores, siempre igual a `id`.\n\n- data.[]positionId (string · nullable; obligatorio)\n\ndata.[]positionId ejemplo: string\n\ndata.[]positionId.Tipo: string · nullable\n\ndata.[]positionId.Posición a la que está asociada una orden de cierre. Nulo para órdenes que abren o aumentan una posición.\n\n- data.[]parentOrderId (string · nullable; obligatorio)\n\ndata.[]parentOrderId ejemplo: string\n\ndata.[]parentOrderId.Tipo: string · nullable\n\ndata.[]parentOrderId.Orden de la que se generó esta: un stop o un take creado a partir de `stopTriggerPrice` / `takeTriggerPrice`, o la orden limit en la que se convirtió un `stop_limit`. Nulo cuando la orden se envió directamente.\n\n- data.[]expiration (string · date-time · nullable; obligatorio)\n\ndata.[]expiration ejemplo: 2026-05-01T12:30:00.000Z\n\ndata.[]expiration.Tipo: string · date-time · nullable\n\ndata.[]expiration.Siempre nulo. Se mantiene por compatibilidad con versiones anteriores: las órdenes no expiran por sí solas.\n\ndata.[]expiration.format: date-time\n\n- data.[]amount (string · int32; obligatorio)\n\ndata.[]amount ejemplo: 1000000000\n\ndata.[]amount.Tipo: string · int32\n\ndata.[]amount.Tamaño de la orden, fp9 en bruto, en la unidad que usa su clase: en una orden de incremento, un importe de cotización — la reserva mientras espera, y lo que realmente gastó una vez ejecutada; en una orden de cierre (`stop`, `take`, `trailing_stop`), el tamaño del activo base que cierra, tal como se solicitó al crearla.\n\ndata.[]amount.format: int32\n\ndata.[]amount.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]indexPrice (string · int32 · nullable; obligatorio)\n\ndata.[]indexPrice ejemplo: 1000000000\n\ndata.[]indexPrice.Tipo: string · int32 · nullable\n\ndata.[]indexPrice.Precio índice al que se ejecutó la orden, fp9 en bruto. Nulo mientras la orden no se haya ejecutado.\n\ndata.[]indexPrice.format: int32\n\ndata.[]indexPrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]settlementOraclePrice (string · int32; obligatorio)\n\ndata.[]settlementOraclePrice ejemplo: 1000000000\n\ndata.[]settlementOraclePrice.Tipo: string · int32\n\ndata.[]settlementOraclePrice.Siempre `1000000000` (1.0). Se mantiene por compatibilidad con versiones anteriores.\n\ndata.[]settlementOraclePrice.format: int32\n\ndata.[]settlementOraclePrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]createdAt (string · date-time; obligatorio)\n\ndata.[]createdAt ejemplo: 2026-05-01T12:30:00.000Z\n\ndata.[]createdAt.Tipo: string · date-time\n\ndata.[]createdAt.Cuándo se aceptó la orden.\n\ndata.[]createdAt.format: date-time\n\n- data.[]error (string · nullable; obligatorio)\n\ndata.[]error ejemplo: string\n\ndata.[]error.Tipo: string · nullable\n\ndata.[]error.Siempre null. Se mantiene por compatibilidad hacia atrás — utilice `errorCode`.\n\n- data.[]realizedPnl (string · int32 · nullable; obligatorio)\n\ndata.[]realizedPnl ejemplo: 1000000000\n\ndata.[]realizedPnl.Tipo: string · int32 · nullable\n\ndata.[]realizedPnl.Pnl realizado por esta orden, fp9 en bruto. Se establece solo en una orden de cierre ejecutada; null mientras está pendiente y en órdenes que abren o aumentan una posición.\n\ndata.[]realizedPnl.format: int32\n\ndata.[]realizedPnl.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rawRealizedPnl (string · int32 · nullable; obligatorio)\n\ndata.[]rawRealizedPnl ejemplo: 1000000000\n\ndata.[]rawRealizedPnl.Tipo: string · int32 · nullable\n\ndata.[]rawRealizedPnl.Pnl realizado antes del ajuste de 60 segundos, fp9 en bruto. Difiere de `realizedPnl` solo cuando se activó el ajuste.\n\ndata.[]rawRealizedPnl.format: int32\n\ndata.[]rawRealizedPnl.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]profitAdjustmentApplied (boolean; obligatorio)\n\ndata.[]profitAdjustmentApplied ejemplo: true\n\ndata.[]profitAdjustmentApplied.Tipo: boolean\n\ndata.[]profitAdjustmentApplied.Si el ajuste de 60 segundos limitó la ganancia de esta orden — dentro de un minuto de una apertura o un aumento, el pnl de la posición no puede crecer por encima de lo que era en ese momento.\n\n- data.[]executedAfterPause (boolean; obligatorio)\n\ndata.[]executedAfterPause ejemplo: true\n\ndata.[]executedAfterPause.Tipo: boolean\n\ndata.[]executedAfterPause.Indica si la orden se ejecutó después de una pausa del mercado. No lo establece el motor actual — siempre `false`.\n\n- data.[]sizeMode (string · enum; obligatorio)\n\ndata.[]sizeMode ejemplo: quote\n\ndata.[]sizeMode.Tipo: string · enum\n\ndata.[]sizeMode.Cómo se expresó el tamaño al crearse: `quote` dimensiona la orden por `amount`, `base` la dimensiona por `baseSize`.\n\ndata.[]sizeMode.Valores permitidos: [\"quote\",\"base\"]\n\n- data.[]baseSize (string · int32 · nullable; obligatorio)\n\ndata.[]baseSize ejemplo: 1000000000\n\ndata.[]baseSize.Tipo: string · int32 · nullable\n\ndata.[]baseSize.Tamaño de la orden en unidades del activo base, fp9 en bruto. Nulo para órdenes dimensionadas por `quote`.\n\ndata.[]baseSize.format: int32\n\ndata.[]baseSize.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]reservedAmount (string · int32 · nullable; obligatorio)\n\ndata.[]reservedAmount ejemplo: 1000000000\n\ndata.[]reservedAmount.Tipo: string · int32 · nullable\n\ndata.[]reservedAmount.Importe de quote reservado cuando se creó la orden con sizeMode=base, fp9 en bruto. Se mantiene en la reserva original después de la ejecución, mientras que `amount` se reescribe a lo que se gastó. Nulo para órdenes dimensionadas por `quote`, donde `amount` es la reserva.\n\ndata.[]reservedAmount.format: int32\n\ndata.[]reservedAmount.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]errorCode (string · nullable; obligatorio)\n\ndata.[]errorCode ejemplo: string\n\ndata.[]errorCode.Tipo: string · nullable\n\ndata.[]errorCode.Por qué falló la ejecución, establecido junto con el estado `canceled_by_error` — por ejemplo `insufficient_reserve_at_execution`, `order_below_min_notional`, `order_exceeds_market_depth` o `slippage_tolerance`. Nulo en caso contrario.\n\n- data.[]reason (string · enum · nullable; obligatorio)\n\ndata.[]reason ejemplo: force_close\n\ndata.[]reason.Tipo: string · enum · nullable\n\ndata.[]reason.Por qué la plataforma canceló la orden por sí misma, por ejemplo `force_close` o `weekly_session_risk_close`. Nulo para cancelaciones impulsadas por el trader.\n\ndata.[]reason.Valores permitidos: [\"force_close\",\"stop_accounts_fail\",\"stop_accounts_freeze\",\"stop_accounts_promote\",\"stop_accounts_manual\",\"weekly_session_risk_close\",null]\n\n- totalCount (number; obligatorio)\n\ntotalCount ejemplo: 0\n\ntotalCount.Tipo: number\n\ntotalCount.Número total de órdenes que coinciden con la solicitud, en todas las páginas.\n\nEjemplo\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":"Obtener el historial de órdenes por ticker Órdenes de la cuenta en un mercado que han alcanzado un estado final, las más recientes primero, con el recuento total para la paginación. - `status` y `errorCode` indican cómo terminó cada una: ejecutada, cancelada por el trader, por el cierre de la posición, o por un error de ejecución. - Las órdenes reemplazadas por una actualización se omiten — el reemplazo lleva el historial en su lugar. - Limitado a la fase en la que se encuentra actualmente la cuenta. GET /orders/{accountId}/{asset}/history Trading accountId Identificador de la cuenta del trader. Debe pertenecer al solicitante. string · uuid asset Ticker del activo base del mercado, tal como lo devuelve `GET /v2/markets`. string limit Tamaño de página: cuántos registros devolver. integer offset Cuántos registros omitir antes de la página. integer 401 No autorizado 403 La cuenta pertenece a otro usuario (`account_access_denied`), o la solicitud se autentica con una clave de API mientras `api_trading` está deshabilitado en la cuenta (`api_trading_not_enabled`). 404 No hay ninguna cuenta con este identificador, o no hay ningún mercado para este ticker. 429 Se superó el límite de velocidad de la clave de API (`api_key_rate_limit_exceeded`). `Retry-After` indica cuándo volver; el cuerpo incluye el bucket (`read` / `write`), la ventana que se activó, su límite y `retryAt`. default Respuesta data Requested page of orders, newest first. object[] totalCount Total number of orders matching the request, across all pages. number","api":{"title":"API pública de Upscale","version":"d796ac9","documentation":"https://docs.upscale.trade/es/developers","playgroundServer":"https://api.upscale.trade"}}