{"format":"opendoc-document","version":1,"url":"https://docs.upscale.trade/es/developers/operations/getpositionshistorybyticker","title":"Obtener el historial de posiciones por ticker","description":"GET /positions/{accountId}/{asset}/history: El historial de posiciones de la cuenta acotado a un mercado, del más reciente al más antiguo y paginado.","kind":"api-operation","locale":"es","inLanguage":"es","translation":{"sourceLanguage":"en","targetLanguage":"es","status":"complete","translatedUnits":50,"totalUnits":50},"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/getpositionshistorybyticker","markdown":"https://docs.upscale.trade/es/developers/operations/getpositionshistorybyticker.md","json":"https://docs.upscale.trade/es/developers/operations/getpositionshistorybyticker.json"},"translations":{"en":"https://docs.upscale.trade/developers/operations/getpositionshistorybyticker","ru":"https://docs.upscale.trade/ru/developers/operations/getpositionshistorybyticker","es":"https://docs.upscale.trade/es/developers/operations/getpositionshistorybyticker"},"operation":{"id":"getPositionsHistoryByTicker","method":"GET","path":"/positions/{accountId}/{asset}/history","summary":"Obtener el historial de posiciones por ticker","description":"El historial de posiciones de la cuenta acotado a un mercado, del más reciente al más antiguo y paginado. La misma regla de fase que el historial de toda la cartera.","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","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":[]},"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":{"minLength":1},"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 positions, newest first.","example":"[\n  {\n    \"idx\": \"string\",\n    \"txId\": \"string\",\n    \"version\": 0,\n    \"openedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"lastUpdatedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"closedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"type\": \"long\",\n    \"status\": \"opened\",\n    \"market\": \"00000000-0000-4000-8000-000000000000\",\n    \"trader\": \"00000000-0000-4000-8000-000000000000\",\n    \"size\": \"1000000000\",\n    \"notional\": \"1000000000\",\n    \"fraction\": \"1000000000\",\n    \"margin\": \"1000000000\",\n    \"pnl\": \"1000000000\",\n    \"funding\": \"1000000000\",\n    \"rolloverFee\": \"1000000000\",\n    \"settlementOraclePrice\": \"1000000000\",\n    \"fee\": \"1000000000\",\n    \"feeRate\": \"1000000000\",\n    \"exchangedQuote\": \"1000000000\",\n    \"exchangedBase\": \"1000000000\",\n    \"direction\": \"long\",\n    \"eventName\": \"addMargin\",\n    \"pnlInEvent\": \"1000000000\",\n    \"rawPnlInEvent\": \"1000000000\",\n    \"profitAdjustmentApplied\": true,\n    \"holdingTimeMs\": \"string\",\n    \"feeInEvent\": \"1000000000\",\n    \"fundingInEvent\": \"1000000000\",\n    \"rolloverFeeInEvent\": \"1000000000\",\n    \"executionFeeRate\": \"1000000000\",\n    \"executionFeeInEvent\": \"1000000000\",\n    \"executionFee\": \"1000000000\",\n    \"timestamp\": \"2026-05-01T12:30:00.000Z\",\n    \"isOnchain\": true,\n    \"roe\": \"1000000000\",\n    \"scalpingCoefficient\": \"1000000000\",\n    \"closeReason\": \"string\"\n  }\n]","schema":{"type":"object[]","types":["array"],"description":"Requested page of positions, newest first.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"items":{"type":"object","types":["object"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[{"name":"idx","type":"string · nullable","required":true,"description":"Position identifier. Same value as `txId`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Position identifier. Same value as `txId`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"txId","type":"string · nullable","required":true,"description":"Position identifier. Kept for backward compatibility, always equal to `idx`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Position identifier. Kept for backward compatibility, always equal to `idx`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"version","type":"number","required":true,"description":"Revision of the position: incremented by every event applied to it.","example":"0","schema":{"type":"number","types":["number"],"description":"Revision of the position: incremented by every event applied to it.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"openedAt","type":"string · date-time","required":true,"description":"When the position was opened.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"When the position was opened.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"lastUpdatedAt","type":"string · date-time","required":true,"description":"When the last event was applied to the position.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"When the last event was applied to the position.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"closedAt","type":"string · date-time · nullable","required":true,"description":"When the position was closed; null while it is still open.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time · nullable","types":["string"],"description":"When the position was closed; null while it is still open.","example":"2026-05-01T12:30:00.000Z","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"type","type":"string · enum","required":true,"description":"Direction of the position. Same value as `direction`.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Direction of the position. Same value as `direction`.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"status","type":"string · enum","required":true,"description":"Whether the position is still open, closed by the trader, or liquidated.","example":"opened","schema":{"type":"string · enum","types":["string"],"description":"Whether the position is still open, closed by the trader, or liquidated.","enum":["opened","closed","liquidated"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"market","type":"string · uuid","required":true,"description":"Market the position is held on.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Market the position is held 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":"trader","type":"string · uuid","required":true,"description":"Trader account the position belongs to.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Trader account the position 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":"size","type":"string · int32","required":true,"description":"Position size in base asset units, fp9 raw.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Position size in base asset units, fp9 raw.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"notional","type":"string · int32","required":true,"description":"Open notional of the position in quote currency, fp9 raw — size at entry price.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Open notional of the position in quote currency, fp9 raw — size at entry price.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"fraction","type":"string · int32","required":true,"description":"Always `0`. Kept for backward compatibility.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Always `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":"margin","type":"string · int32","required":true,"description":"Margin currently backing the position, fp9 raw. Moves with pnl, funding and manual margin changes.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Margin currently backing the position, fp9 raw. Moves with pnl, funding and manual margin changes.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"pnl","type":"string · int32 · nullable","required":true,"description":"Realised pnl accumulated over every event of the position, fp9 raw.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Realised pnl accumulated over every event of the position, fp9 raw.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"funding","type":"string · int32 · nullable","required":true,"description":"Funding paid (negative) or received (positive) over the life of the position, fp9 raw.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Funding paid (negative) or received (positive) over the life of the position, fp9 raw.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rolloverFee","type":"string · int32","required":true,"description":"Always `0`. Kept for backward compatibility.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Always `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":"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":"fee","type":"string · int32","required":true,"description":"Trading fees charged over the life of the position, fp9 raw.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Trading fees charged over the life of the position, fp9 raw.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"feeRate","type":"string · int32","required":true,"description":"Fee rate applied to the position, fp9 raw fraction (`1000000` = 0.1%).","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Fee rate applied to the position, fp9 raw fraction (`1000000` = 0.1%).","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"exchangedQuote","type":"string · int32","required":true,"description":"Quote amount exchanged by the most recent event, fp9 raw.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Quote amount exchanged by the most recent event, fp9 raw.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"exchangedBase","type":"string · int32","required":true,"description":"Base amount exchanged by the most recent event, fp9 raw.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Base amount exchanged by the most recent event, fp9 raw.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"direction","type":"string · enum","required":true,"description":"Direction of the position.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Direction of the position.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"eventName","type":"string · enum","required":true,"description":"Type of the most recent event applied to the position.","example":"addMargin","schema":{"type":"string · enum","types":["string"],"description":"Type of the most recent event applied to the position.","enum":["addMargin","removeMargin","closePosition","increasePosition","liquidate","forceClose","payFunding"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"pnlInEvent","type":"string · int32","required":true,"description":"Realised pnl of the most recent event, fp9 raw.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Realised pnl of the most recent event, fp9 raw.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rawPnlInEvent","type":"string · int32","required":true,"description":"Realised pnl of the most recent event before the 60-second adjustment, fp9 raw. Differs from `pnlInEvent` only when the adjustment fired.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Realised pnl of the most recent event before the 60-second adjustment, fp9 raw. Differs from `pnlInEvent` only when the adjustment fired.","example":"1000000000","nullable":false,"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 the most recent event — 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 the most recent event — 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":"holdingTimeMs","type":"string · nullable","required":true,"description":"How long the position was held before the most recent close, in milliseconds, counted from the open or the last increase. Null on events that are not closes.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"How long the position was held before the most recent close, in milliseconds, counted from the open or the last increase. Null on events that are not closes.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"feeInEvent","type":"string · int32","required":true,"description":"Fee charged by the most recent event, fp9 raw.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Fee charged by the most recent event, fp9 raw.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"fundingInEvent","type":"string · int32","required":true,"description":"Funding settled by the most recent event, fp9 raw.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Funding settled by the most recent event, fp9 raw.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rolloverFeeInEvent","type":"string · int32","required":true,"description":"Always `0`. Kept for backward compatibility.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Always `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":"executionFeeRate","type":"string · int32","required":true,"description":"Always `0`. Kept for backward compatibility.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Always `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":"executionFeeInEvent","type":"string · int32","required":true,"description":"Always `0`. Kept for backward compatibility.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Always `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":"executionFee","type":"string · int32","required":true,"description":"Always `0`. Kept for backward compatibility.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Always `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":"timestamp","type":"string · date-time","required":true,"description":"Timestamp of the most recent event. Same value as `lastUpdatedAt`.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Timestamp of the most recent event. Same value as `lastUpdatedAt`.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"isOnchain","type":"boolean","required":true,"description":"Always `true`. Kept for backward compatibility.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Always `true`. Kept for backward compatibility.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"roe","type":"string · int32","required":true,"description":"Return on equity of the position — realised pnl over the margin put up, fp9 raw fraction.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Return on equity of the position — realised pnl over the margin put up, fp9 raw fraction.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"scalpingCoefficient","type":"string · int32","required":true,"description":"Dynamic spread multiplier the position was charged, fp9 raw (`1000000000` = 1.0). Above 1 when the trade fell inside the market scalping window.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Dynamic spread multiplier the position was charged, fp9 raw (`1000000000` = 1.0). Above 1 when the trade fell inside the market scalping window.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"closeReason","type":"string · nullable","required":true,"description":"Why the platform closed the position (for example `weekly_session_risk_close`). Null for positions closed by the trader and for open ones.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Why the platform closed the position (for example `weekly_session_risk_close`). Null for positions closed by the trader and for open ones.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"variants":[]},"variants":[]}},{"name":"totalCount","type":"number","required":true,"description":"Total number of positions matching the request, across all pages.","example":"0","schema":{"type":"number","types":["number"],"description":"Total number of positions matching the request, across all pages.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"schema":{"type":"object","types":["object"],"reference":"#/components/schemas/PositionsPaginatedResponse","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[{"name":"data","type":"object[]","required":true,"description":"Página solicitada de posiciones, las más recientes primero.","example":"[\n  {\n    \"idx\": \"string\",\n    \"txId\": \"string\",\n    \"version\": 0,\n    \"openedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"lastUpdatedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"closedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"type\": \"long\",\n    \"status\": \"opened\",\n    \"market\": \"00000000-0000-4000-8000-000000000000\",\n    \"trader\": \"00000000-0000-4000-8000-000000000000\",\n    \"size\": \"1000000000\",\n    \"notional\": \"1000000000\",\n    \"fraction\": \"1000000000\",\n    \"margin\": \"1000000000\",\n    \"pnl\": \"1000000000\",\n    \"funding\": \"1000000000\",\n    \"rolloverFee\": \"1000000000\",\n    \"settlementOraclePrice\": \"1000000000\",\n    \"fee\": \"1000000000\",\n    \"feeRate\": \"1000000000\",\n    \"exchangedQuote\": \"1000000000\",\n    \"exchangedBase\": \"1000000000\",\n    \"direction\": \"long\",\n    \"eventName\": \"addMargin\",\n    \"pnlInEvent\": \"1000000000\",\n    \"rawPnlInEvent\": \"1000000000\",\n    \"profitAdjustmentApplied\": true,\n    \"holdingTimeMs\": \"string\",\n    \"feeInEvent\": \"1000000000\",\n    \"fundingInEvent\": \"1000000000\",\n    \"rolloverFeeInEvent\": \"1000000000\",\n    \"executionFeeRate\": \"1000000000\",\n    \"executionFeeInEvent\": \"1000000000\",\n    \"executionFee\": \"1000000000\",\n    \"timestamp\": \"2026-05-01T12:30:00.000Z\",\n    \"isOnchain\": true,\n    \"roe\": \"1000000000\",\n    \"scalpingCoefficient\": \"1000000000\",\n    \"closeReason\": \"string\"\n  }\n]","schema":{"type":"object[]","types":["array"],"description":"Página solicitada de posiciones, 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":"idx","type":"string · nullable","required":true,"description":"Identificador de la posición. Mismo valor que `txId`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Identificador de la posición. Mismo valor que `txId`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"txId","type":"string · nullable","required":true,"description":"Identificador de la posición. Se mantiene por compatibilidad hacia atrás, siempre igual a `idx`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Identificador de la posición. Se mantiene por compatibilidad hacia atrás, siempre igual a `idx`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"version","type":"number","required":true,"description":"Revisión de la posición: incrementada por cada evento que se le aplica.","example":"0","schema":{"type":"number","types":["number"],"description":"Revisión de la posición: incrementada por cada evento que se le aplica.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"openedAt","type":"string · date-time","required":true,"description":"Cuándo se abrió la posición.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Cuándo se abrió la posición.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"lastUpdatedAt","type":"string · date-time","required":true,"description":"Cuándo se aplicó el último evento a la posición.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Cuándo se aplicó el último evento a la posición.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"closedAt","type":"string · date-time · nullable","required":true,"description":"Cuándo se cerró la posición; null mientras sigue abierta.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time · nullable","types":["string"],"description":"Cuándo se cerró la posición; null mientras sigue abierta.","example":"2026-05-01T12:30:00.000Z","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"type","type":"string · enum","required":true,"description":"Dirección de la posición. Mismo valor que `direction`.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Dirección de la posición. Mismo valor que `direction`.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"status","type":"string · enum","required":true,"description":"Si la posición sigue abierta, fue cerrada por el trader o fue liquidada.","example":"opened","schema":{"type":"string · enum","types":["string"],"description":"Si la posición sigue abierta, fue cerrada por el trader o fue liquidada.","enum":["opened","closed","liquidated"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"market","type":"string · uuid","required":true,"description":"Mercado en el que se mantiene la posición.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Mercado en el que se mantiene la posición.","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":"trader","type":"string · uuid","required":true,"description":"Cuenta del trader a la que pertenece la posición.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Cuenta del trader a la que pertenece la posición.","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":"size","type":"string · int32","required":true,"description":"Tamaño de la posición en unidades del activo base, fp9 sin procesar.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Tamaño de la posición en unidades del activo base, fp9 sin procesar.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"notional","type":"string · int32","required":true,"description":"Nocional abierto de la posición en moneda de cotización, fp9 sin procesar — tamaño al precio de entrada.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Nocional abierto de la posición en moneda de cotización, fp9 sin procesar — tamaño al precio de entrada.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"fraction","type":"string · int32","required":true,"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"margin","type":"string · int32","required":true,"description":"Margen que actualmente respalda la posición, fp9 sin procesar. Cambia con pnl, financiación y cambios manuales de margen.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Margen que actualmente respalda la posición, fp9 sin procesar. Cambia con pnl, financiación y cambios manuales de margen.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"pnl","type":"string · int32 · nullable","required":true,"description":"Pnl realizado acumulado a lo largo de cada evento de la posición, fp9 sin procesar.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Pnl realizado acumulado a lo largo de cada evento de la posición, fp9 sin procesar.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"funding","type":"string · int32 · nullable","required":true,"description":"Financiación pagada (negativa) o recibida (positiva) durante la vida de la posición, fp9 en bruto.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Financiación pagada (negativa) o recibida (positiva) durante la vida de la posición, fp9 en bruto.","example":"1000000000","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rolloverFee","type":"string · int32","required":true,"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","nullable":false,"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":"fee","type":"string · int32","required":true,"description":"Comisiones de trading cobradas durante la vida de la posición, fp9 en bruto.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Comisiones de trading cobradas durante la vida de la posición, fp9 en bruto.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"feeRate","type":"string · int32","required":true,"description":"Tasa de comisión aplicada a la posición, fp9 fracción en bruto (`1000000` = 0.1%).","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Tasa de comisión aplicada a la posición, fp9 fracción en bruto (`1000000` = 0.1%).","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"exchangedQuote","type":"string · int32","required":true,"description":"Importe de cotización intercambiado por el evento más reciente, fp9 en bruto.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Importe de cotización intercambiado por el evento más reciente, fp9 en bruto.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"exchangedBase","type":"string · int32","required":true,"description":"Importe base intercambiado por el evento más reciente, fp9 en bruto.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Importe base intercambiado por el evento más reciente, fp9 en bruto.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"direction","type":"string · enum","required":true,"description":"Dirección de la posición.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Dirección de la posición.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"eventName","type":"string · enum","required":true,"description":"Tipo del evento más reciente aplicado a la posición.","example":"addMargin","schema":{"type":"string · enum","types":["string"],"description":"Tipo del evento más reciente aplicado a la posición.","enum":["addMargin","removeMargin","closePosition","increasePosition","liquidate","forceClose","payFunding"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"pnlInEvent","type":"string · int32","required":true,"description":"Pnl realizado del evento más reciente, fp9 en bruto.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Pnl realizado del evento más reciente, fp9 en bruto.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rawPnlInEvent","type":"string · int32","required":true,"description":"Pnl realizado del evento más reciente antes del ajuste de 60 segundos, fp9 en bruto. Difiere de `pnlInEvent` solo cuando se activó el ajuste.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Pnl realizado del evento más reciente antes del ajuste de 60 segundos, fp9 en bruto. Difiere de `pnlInEvent` solo cuando se activó el ajuste.","example":"1000000000","nullable":false,"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 del evento más reciente — dentro de un minuto de una apertura o un aumento de la posición, 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 del evento más reciente — dentro de un minuto de una apertura o un aumento de la posición, 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":"holdingTimeMs","type":"string · nullable","required":true,"description":"Cuánto tiempo se mantuvo la posición antes del cierre más reciente, en milisegundos, contado desde la apertura o el último incremento. Nulo en eventos que no son cierres.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Cuánto tiempo se mantuvo la posición antes del cierre más reciente, en milisegundos, contado desde la apertura o el último incremento. Nulo en eventos que no son cierres.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"feeInEvent","type":"string · int32","required":true,"description":"Comisión cobrada por el evento más reciente, fp9 en bruto.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Comisión cobrada por el evento más reciente, fp9 en bruto.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"fundingInEvent","type":"string · int32","required":true,"description":"Financiación liquidada por el evento más reciente, fp9 en bruto.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Financiación liquidada por el evento más reciente, fp9 en bruto.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rolloverFeeInEvent","type":"string · int32","required":true,"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"executionFeeRate","type":"string · int32","required":true,"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"executionFeeInEvent","type":"string · int32","required":true,"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"executionFee","type":"string · int32","required":true,"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Siempre `0`. Se mantiene por compatibilidad hacia atrás.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"timestamp","type":"string · date-time","required":true,"description":"Marca de tiempo del evento más reciente. Mismo valor que `lastUpdatedAt`.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Marca de tiempo del evento más reciente. Mismo valor que `lastUpdatedAt`.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"isOnchain","type":"boolean","required":true,"description":"Siempre `true`. Se mantiene por compatibilidad con versiones anteriores.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Siempre `true`. Se mantiene por compatibilidad con versiones anteriores.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"roe","type":"string · int32","required":true,"description":"Rentabilidad sobre el capital de la posición — pnl realizado sobre el margen aportado, fp9 fracción sin procesar.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Rentabilidad sobre el capital de la posición — pnl realizado sobre el margen aportado, fp9 fracción sin procesar.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"scalpingCoefficient","type":"string · int32","required":true,"description":"Multiplicador dinámico de spread que se aplicó a la posición, fp9 sin procesar (`1000000000` = 1.0). Por encima de 1 cuando la operación quedó dentro de la ventana de scalping del mercado.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Multiplicador dinámico de spread que se aplicó a la posición, fp9 sin procesar (`1000000000` = 1.0). Por encima de 1 cuando la operación quedó dentro de la ventana de scalping del mercado.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"closeReason","type":"string · nullable","required":true,"description":"Por qué la plataforma cerró la posición (por ejemplo, `weekly_session_risk_close`). Nulo para las posiciones cerradas por el trader y para las abiertas.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Por qué la plataforma cerró la posición (por ejemplo, `weekly_session_risk_close`). Nulo para las posiciones cerradas por el trader y para las abiertas.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"variants":[]},"variants":[]}},{"name":"totalCount","type":"number","required":true,"description":"Número total de posiciones que coinciden con la solicitud, en todas las páginas.","example":"0","schema":{"type":"number","types":["number"],"description":"Número total de posiciones 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      \"idx\": \"string\",\n      \"txId\": \"string\",\n      \"version\": 0,\n      \"openedAt\": \"2026-05-01T12:30:00.000Z\",\n      \"lastUpdatedAt\": \"2026-05-01T12:30:00.000Z\",\n      \"closedAt\": \"2026-05-01T12:30:00.000Z\",\n      \"type\": \"long\",\n      \"status\": \"opened\",\n      \"market\": \"00000000-0000-4000-8000-000000000000\",\n      \"trader\": \"00000000-0000-4000-8000-000000000000\",\n      \"size\": \"1000000000\",\n      \"notional\": \"1000000000\",\n      \"fraction\": \"1000000000\",\n      \"margin\": \"1000000000\",\n      \"pnl\": \"1000000000\",\n      \"funding\": \"1000000000\",\n      \"rolloverFee\": \"1000000000\",\n      \"settlementOraclePrice\": \"1000000000\",\n      \"fee\": \"1000000000\",\n      \"feeRate\": \"1000000000\",\n      \"exchangedQuote\": \"1000000000\",\n      \"exchangedBase\": \"1000000000\",\n      \"direction\": \"long\",\n      \"eventName\": \"addMargin\",\n      \"pnlInEvent\": \"1000000000\",\n      \"rawPnlInEvent\": \"1000000000\",\n      \"profitAdjustmentApplied\": true,\n      \"holdingTimeMs\": \"string\",\n      \"feeInEvent\": \"1000000000\",\n      \"fundingInEvent\": \"1000000000\",\n      \"rolloverFeeInEvent\": \"1000000000\",\n      \"executionFeeRate\": \"1000000000\",\n      \"executionFeeInEvent\": \"1000000000\",\n      \"executionFee\": \"1000000000\",\n      \"timestamp\": \"2026-05-01T12:30:00.000Z\",\n      \"isOnchain\": true,\n      \"roe\": \"1000000000\",\n      \"scalpingCoefficient\": \"1000000000\",\n      \"closeReason\": \"string\"\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/positions/{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/positions/{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/positions/{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 posiciones por ticker","url":"https://docs.upscale.trade/es/developers/operations/getpositionshistorybyticker"}],"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 posiciones por ticker\n\n`GET /positions/{accountId}/{asset}/history`\n\nEl historial de posiciones de la cuenta acotado a un mercado, del más reciente al más antiguo y paginado. La misma regla de fase que el historial de toda la cartera.\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\npattern: ^([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- path: asset (string; obligatorio). Ticker del activo base del mercado, tal como lo devuelve `GET /v2/markets`.\n\nTipo: string\n\nEjemplo: \"BTC\"\n\nminLength: 1\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/positions/{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/positions/{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/positions/{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-positionspaginatedresponse\"></a>\n\n## Respuesta default · PositionsPaginatedResponse\n\n**default** application/json — Respuesta\n\nEsquema: PositionsPaginatedResponse\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    \"idx\": \"string\",\n    \"txId\": \"string\",\n    \"version\": 0,\n    \"openedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"lastUpdatedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"closedAt\": \"2026-05-01T12:30:00.000Z\",\n    \"type\": \"long\",\n    \"status\": \"opened\",\n    \"market\": \"00000000-0000-4000-8000-000000000000\",\n    \"trader\": \"00000000-0000-4000-8000-000000000000\",\n    \"size\": \"1000000000\",\n    \"notional\": \"1000000000\",\n    \"fraction\": \"1000000000\",\n    \"margin\": \"1000000000\",\n    \"pnl\": \"1000000000\",\n    \"funding\": \"1000000000\",\n    \"rolloverFee\": \"1000000000\",\n    \"settlementOraclePrice\": \"1000000000\",\n    \"fee\": \"1000000000\",\n    \"feeRate\": \"1000000000\",\n    \"exchangedQuote\": \"1000000000\",\n    \"exchangedBase\": \"1000000000\",\n    \"direction\": \"long\",\n    \"eventName\": \"addMargin\",\n    \"pnlInEvent\": \"1000000000\",\n    \"rawPnlInEvent\": \"1000000000\",\n    \"profitAdjustmentApplied\": true,\n    \"holdingTimeMs\": \"string\",\n    \"feeInEvent\": \"1000000000\",\n    \"fundingInEvent\": \"1000000000\",\n    \"rolloverFeeInEvent\": \"1000000000\",\n    \"executionFeeRate\": \"1000000000\",\n    \"executionFeeInEvent\": \"1000000000\",\n    \"executionFee\": \"1000000000\",\n    \"timestamp\": \"2026-05-01T12:30:00.000Z\",\n    \"isOnchain\": true,\n    \"roe\": \"1000000000\",\n    \"scalpingCoefficient\": \"1000000000\",\n    \"closeReason\": \"string\"\n  }\n]\n\ndata.Tipo: object[]\n\ndata.Página solicitada de posiciones, las más recientes primero.\n\ndata.[]Tipo: object\n\ndata.[]Campos obligatorios: idx, txId, version, openedAt, lastUpdatedAt, closedAt, type, status, market, trader, size, notional, fraction, margin, pnl, funding, rolloverFee, settlementOraclePrice, fee, feeRate, exchangedQuote, exchangedBase, direction, eventName, pnlInEvent, rawPnlInEvent, profitAdjustmentApplied, holdingTimeMs, feeInEvent, fundingInEvent, rolloverFeeInEvent, executionFeeRate, executionFeeInEvent, executionFee, timestamp, isOnchain, roe, scalpingCoefficient, closeReason\n\ndata.[]Tipos de campos obligatorios: idx (string · nullable; obligatorio), txId (string · nullable; obligatorio), version (number; obligatorio), openedAt (string · date-time; obligatorio), lastUpdatedAt (string · date-time; obligatorio), closedAt (string · date-time · nullable; obligatorio), type (string · enum; obligatorio), status (string · enum; obligatorio), market (string · uuid; obligatorio), trader (string · uuid; obligatorio), size (string · int32; obligatorio), notional (string · int32; obligatorio), fraction (string · int32; obligatorio), margin (string · int32; obligatorio), pnl (string · int32 · nullable; obligatorio), funding (string · int32 · nullable; obligatorio), rolloverFee (string · int32; obligatorio), settlementOraclePrice (string · int32; obligatorio), fee (string · int32; obligatorio), feeRate (string · int32; obligatorio), exchangedQuote (string · int32; obligatorio), exchangedBase (string · int32; obligatorio), direction (string · enum; obligatorio), eventName (string · enum; obligatorio), pnlInEvent (string · int32; obligatorio), rawPnlInEvent (string · int32; obligatorio), profitAdjustmentApplied (boolean; obligatorio), holdingTimeMs (string · nullable; obligatorio), feeInEvent (string · int32; obligatorio), fundingInEvent (string · int32; obligatorio), rolloverFeeInEvent (string · int32; obligatorio), executionFeeRate (string · int32; obligatorio), executionFeeInEvent (string · int32; obligatorio), executionFee (string · int32; obligatorio), timestamp (string · date-time; obligatorio), isOnchain (boolean; obligatorio), roe (string · int32; obligatorio), scalpingCoefficient (string · int32; obligatorio), closeReason (string · nullable; obligatorio)\n\n- data.[]idx (string · nullable; obligatorio)\n\ndata.[]idx ejemplo: string\n\ndata.[]idx.Tipo: string · nullable\n\ndata.[]idx.Identificador de la posición. Mismo valor que `txId`.\n\n- data.[]txId (string · nullable; obligatorio)\n\ndata.[]txId ejemplo: string\n\ndata.[]txId.Tipo: string · nullable\n\ndata.[]txId.Identificador de la posición. Se mantiene por compatibilidad hacia atrás, siempre igual a `idx`.\n\n- data.[]version (number; obligatorio)\n\ndata.[]version ejemplo: 0\n\ndata.[]version.Tipo: number\n\ndata.[]version.Revisión de la posición: incrementada por cada evento que se le aplica.\n\n- data.[]openedAt (string · date-time; obligatorio)\n\ndata.[]openedAt ejemplo: 2026-05-01T12:30:00.000Z\n\ndata.[]openedAt.Tipo: string · date-time\n\ndata.[]openedAt.Cuándo se abrió la posición.\n\ndata.[]openedAt.format: date-time\n\n- data.[]lastUpdatedAt (string · date-time; obligatorio)\n\ndata.[]lastUpdatedAt ejemplo: 2026-05-01T12:30:00.000Z\n\ndata.[]lastUpdatedAt.Tipo: string · date-time\n\ndata.[]lastUpdatedAt.Cuándo se aplicó el último evento a la posición.\n\ndata.[]lastUpdatedAt.format: date-time\n\n- data.[]closedAt (string · date-time · nullable; obligatorio)\n\ndata.[]closedAt ejemplo: 2026-05-01T12:30:00.000Z\n\ndata.[]closedAt.Tipo: string · date-time · nullable\n\ndata.[]closedAt.Cuándo se cerró la posición; null mientras sigue abierta.\n\ndata.[]closedAt.format: date-time\n\n- data.[]type (string · enum; obligatorio)\n\ndata.[]type ejemplo: long\n\ndata.[]type.Tipo: string · enum\n\ndata.[]type.Dirección de la posición. Mismo valor que `direction`.\n\ndata.[]type.Valores permitidos: [\"long\",\"short\"]\n\n- data.[]status (string · enum; obligatorio)\n\ndata.[]status ejemplo: opened\n\ndata.[]status.Tipo: string · enum\n\ndata.[]status.Si la posición sigue abierta, fue cerrada por el trader o fue liquidada.\n\ndata.[]status.Valores permitidos: [\"opened\",\"closed\",\"liquidated\"]\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 mantiene la posición.\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.[]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 posición.\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.[]size (string · int32; obligatorio)\n\ndata.[]size ejemplo: 1000000000\n\ndata.[]size.Tipo: string · int32\n\ndata.[]size.Tamaño de la posición en unidades del activo base, fp9 sin procesar.\n\ndata.[]size.format: int32\n\ndata.[]size.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]notional (string · int32; obligatorio)\n\ndata.[]notional ejemplo: 1000000000\n\ndata.[]notional.Tipo: string · int32\n\ndata.[]notional.Nocional abierto de la posición en moneda de cotización, fp9 sin procesar — tamaño al precio de entrada.\n\ndata.[]notional.format: int32\n\ndata.[]notional.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]fraction (string · int32; obligatorio)\n\ndata.[]fraction ejemplo: 1000000000\n\ndata.[]fraction.Tipo: string · int32\n\ndata.[]fraction.Siempre `0`. Se mantiene por compatibilidad hacia atrás.\n\ndata.[]fraction.format: int32\n\ndata.[]fraction.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]margin (string · int32; obligatorio)\n\ndata.[]margin ejemplo: 1000000000\n\ndata.[]margin.Tipo: string · int32\n\ndata.[]margin.Margen que actualmente respalda la posición, fp9 sin procesar. Cambia con pnl, financiación y cambios manuales de margen.\n\ndata.[]margin.format: int32\n\ndata.[]margin.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]pnl (string · int32 · nullable; obligatorio)\n\ndata.[]pnl ejemplo: 1000000000\n\ndata.[]pnl.Tipo: string · int32 · nullable\n\ndata.[]pnl.Pnl realizado acumulado a lo largo de cada evento de la posición, fp9 sin procesar.\n\ndata.[]pnl.format: int32\n\ndata.[]pnl.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]funding (string · int32 · nullable; obligatorio)\n\ndata.[]funding ejemplo: 1000000000\n\ndata.[]funding.Tipo: string · int32 · nullable\n\ndata.[]funding.Financiación pagada (negativa) o recibida (positiva) durante la vida de la posición, fp9 en bruto.\n\ndata.[]funding.format: int32\n\ndata.[]funding.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rolloverFee (string · int32; obligatorio)\n\ndata.[]rolloverFee ejemplo: 1000000000\n\ndata.[]rolloverFee.Tipo: string · int32\n\ndata.[]rolloverFee.Siempre `0`. Se mantiene por compatibilidad hacia atrás.\n\ndata.[]rolloverFee.format: int32\n\ndata.[]rolloverFee.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.[]fee (string · int32; obligatorio)\n\ndata.[]fee ejemplo: 1000000000\n\ndata.[]fee.Tipo: string · int32\n\ndata.[]fee.Comisiones de trading cobradas durante la vida de la posición, fp9 en bruto.\n\ndata.[]fee.format: int32\n\ndata.[]fee.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]feeRate (string · int32; obligatorio)\n\ndata.[]feeRate ejemplo: 1000000000\n\ndata.[]feeRate.Tipo: string · int32\n\ndata.[]feeRate.Tasa de comisión aplicada a la posición, fp9 fracción en bruto (`1000000` = 0.1%).\n\ndata.[]feeRate.format: int32\n\ndata.[]feeRate.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]exchangedQuote (string · int32; obligatorio)\n\ndata.[]exchangedQuote ejemplo: 1000000000\n\ndata.[]exchangedQuote.Tipo: string · int32\n\ndata.[]exchangedQuote.Importe de cotización intercambiado por el evento más reciente, fp9 en bruto.\n\ndata.[]exchangedQuote.format: int32\n\ndata.[]exchangedQuote.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]exchangedBase (string · int32; obligatorio)\n\ndata.[]exchangedBase ejemplo: 1000000000\n\ndata.[]exchangedBase.Tipo: string · int32\n\ndata.[]exchangedBase.Importe base intercambiado por el evento más reciente, fp9 en bruto.\n\ndata.[]exchangedBase.format: int32\n\ndata.[]exchangedBase.pattern: ^(?:-?[1-9][0-9]*|0)$\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 posición.\n\ndata.[]direction.Valores permitidos: [\"long\",\"short\"]\n\n- data.[]eventName (string · enum; obligatorio)\n\ndata.[]eventName ejemplo: addMargin\n\ndata.[]eventName.Tipo: string · enum\n\ndata.[]eventName.Tipo del evento más reciente aplicado a la posición.\n\ndata.[]eventName.Valores permitidos: [\"addMargin\",\"removeMargin\",\"closePosition\",\"increasePosition\",\"liquidate\",\"forceClose\",\"payFunding\"]\n\n- data.[]pnlInEvent (string · int32; obligatorio)\n\ndata.[]pnlInEvent ejemplo: 1000000000\n\ndata.[]pnlInEvent.Tipo: string · int32\n\ndata.[]pnlInEvent.Pnl realizado del evento más reciente, fp9 en bruto.\n\ndata.[]pnlInEvent.format: int32\n\ndata.[]pnlInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rawPnlInEvent (string · int32; obligatorio)\n\ndata.[]rawPnlInEvent ejemplo: 1000000000\n\ndata.[]rawPnlInEvent.Tipo: string · int32\n\ndata.[]rawPnlInEvent.Pnl realizado del evento más reciente antes del ajuste de 60 segundos, fp9 en bruto. Difiere de `pnlInEvent` solo cuando se activó el ajuste.\n\ndata.[]rawPnlInEvent.format: int32\n\ndata.[]rawPnlInEvent.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 del evento más reciente — dentro de un minuto de una apertura o un aumento de la posición, el pnl de la posición no puede crecer por encima de lo que era en ese momento.\n\n- data.[]holdingTimeMs (string · nullable; obligatorio)\n\ndata.[]holdingTimeMs ejemplo: string\n\ndata.[]holdingTimeMs.Tipo: string · nullable\n\ndata.[]holdingTimeMs.Cuánto tiempo se mantuvo la posición antes del cierre más reciente, en milisegundos, contado desde la apertura o el último incremento. Nulo en eventos que no son cierres.\n\n- data.[]feeInEvent (string · int32; obligatorio)\n\ndata.[]feeInEvent ejemplo: 1000000000\n\ndata.[]feeInEvent.Tipo: string · int32\n\ndata.[]feeInEvent.Comisión cobrada por el evento más reciente, fp9 en bruto.\n\ndata.[]feeInEvent.format: int32\n\ndata.[]feeInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]fundingInEvent (string · int32; obligatorio)\n\ndata.[]fundingInEvent ejemplo: 1000000000\n\ndata.[]fundingInEvent.Tipo: string · int32\n\ndata.[]fundingInEvent.Financiación liquidada por el evento más reciente, fp9 en bruto.\n\ndata.[]fundingInEvent.format: int32\n\ndata.[]fundingInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rolloverFeeInEvent (string · int32; obligatorio)\n\ndata.[]rolloverFeeInEvent ejemplo: 1000000000\n\ndata.[]rolloverFeeInEvent.Tipo: string · int32\n\ndata.[]rolloverFeeInEvent.Siempre `0`. Se mantiene por compatibilidad hacia atrás.\n\ndata.[]rolloverFeeInEvent.format: int32\n\ndata.[]rolloverFeeInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]executionFeeRate (string · int32; obligatorio)\n\ndata.[]executionFeeRate ejemplo: 1000000000\n\ndata.[]executionFeeRate.Tipo: string · int32\n\ndata.[]executionFeeRate.Siempre `0`. Se mantiene por compatibilidad hacia atrás.\n\ndata.[]executionFeeRate.format: int32\n\ndata.[]executionFeeRate.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]executionFeeInEvent (string · int32; obligatorio)\n\ndata.[]executionFeeInEvent ejemplo: 1000000000\n\ndata.[]executionFeeInEvent.Tipo: string · int32\n\ndata.[]executionFeeInEvent.Siempre `0`. Se mantiene por compatibilidad hacia atrás.\n\ndata.[]executionFeeInEvent.format: int32\n\ndata.[]executionFeeInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]executionFee (string · int32; obligatorio)\n\ndata.[]executionFee ejemplo: 1000000000\n\ndata.[]executionFee.Tipo: string · int32\n\ndata.[]executionFee.Siempre `0`. Se mantiene por compatibilidad hacia atrás.\n\ndata.[]executionFee.format: int32\n\ndata.[]executionFee.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]timestamp (string · date-time; obligatorio)\n\ndata.[]timestamp ejemplo: 2026-05-01T12:30:00.000Z\n\ndata.[]timestamp.Tipo: string · date-time\n\ndata.[]timestamp.Marca de tiempo del evento más reciente. Mismo valor que `lastUpdatedAt`.\n\ndata.[]timestamp.format: date-time\n\n- data.[]isOnchain (boolean; obligatorio)\n\ndata.[]isOnchain ejemplo: true\n\ndata.[]isOnchain.Tipo: boolean\n\ndata.[]isOnchain.Siempre `true`. Se mantiene por compatibilidad con versiones anteriores.\n\n- data.[]roe (string · int32; obligatorio)\n\ndata.[]roe ejemplo: 1000000000\n\ndata.[]roe.Tipo: string · int32\n\ndata.[]roe.Rentabilidad sobre el capital de la posición — pnl realizado sobre el margen aportado, fp9 fracción sin procesar.\n\ndata.[]roe.format: int32\n\ndata.[]roe.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]scalpingCoefficient (string · int32; obligatorio)\n\ndata.[]scalpingCoefficient ejemplo: 1000000000\n\ndata.[]scalpingCoefficient.Tipo: string · int32\n\ndata.[]scalpingCoefficient.Multiplicador dinámico de spread que se aplicó a la posición, fp9 sin procesar (`1000000000` = 1.0). Por encima de 1 cuando la operación quedó dentro de la ventana de scalping del mercado.\n\ndata.[]scalpingCoefficient.format: int32\n\ndata.[]scalpingCoefficient.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]closeReason (string · nullable; obligatorio)\n\ndata.[]closeReason ejemplo: string\n\ndata.[]closeReason.Tipo: string · nullable\n\ndata.[]closeReason.Por qué la plataforma cerró la posición (por ejemplo, `weekly_session_risk_close`). Nulo para las posiciones cerradas por el trader y para las abiertas.\n\n- totalCount (number; obligatorio)\n\ntotalCount ejemplo: 0\n\ntotalCount.Tipo: number\n\ntotalCount.Número total de posiciones que coinciden con la solicitud, en todas las páginas.\n\nEjemplo\n\n\n\n```json\n{\n  \"data\": [\n    {\n      \"idx\": \"string\",\n      \"txId\": \"string\",\n      \"version\": 0,\n      \"openedAt\": \"2026-05-01T12:30:00.000Z\",\n      \"lastUpdatedAt\": \"2026-05-01T12:30:00.000Z\",\n      \"closedAt\": \"2026-05-01T12:30:00.000Z\",\n      \"type\": \"long\",\n      \"status\": \"opened\",\n      \"market\": \"00000000-0000-4000-8000-000000000000\",\n      \"trader\": \"00000000-0000-4000-8000-000000000000\",\n      \"size\": \"1000000000\",\n      \"notional\": \"1000000000\",\n      \"fraction\": \"1000000000\",\n      \"margin\": \"1000000000\",\n      \"pnl\": \"1000000000\",\n      \"funding\": \"1000000000\",\n      \"rolloverFee\": \"1000000000\",\n      \"settlementOraclePrice\": \"1000000000\",\n      \"fee\": \"1000000000\",\n      \"feeRate\": \"1000000000\",\n      \"exchangedQuote\": \"1000000000\",\n      \"exchangedBase\": \"1000000000\",\n      \"direction\": \"long\",\n      \"eventName\": \"addMargin\",\n      \"pnlInEvent\": \"1000000000\",\n      \"rawPnlInEvent\": \"1000000000\",\n      \"profitAdjustmentApplied\": true,\n      \"holdingTimeMs\": \"string\",\n      \"feeInEvent\": \"1000000000\",\n      \"fundingInEvent\": \"1000000000\",\n      \"rolloverFeeInEvent\": \"1000000000\",\n      \"executionFeeRate\": \"1000000000\",\n      \"executionFeeInEvent\": \"1000000000\",\n      \"executionFee\": \"1000000000\",\n      \"timestamp\": \"2026-05-01T12:30:00.000Z\",\n      \"isOnchain\": true,\n      \"roe\": \"1000000000\",\n      \"scalpingCoefficient\": \"1000000000\",\n      \"closeReason\": \"string\"\n    }\n  ],\n  \"totalCount\": 0\n}\n```","text":"Obtener el historial de posiciones por ticker El historial de posiciones de la cuenta acotado a un mercado, del más reciente al más antiguo y paginado. La misma regla de fase que el historial de toda la cartera. GET /positions/{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 positions, newest first. object[] totalCount Total number of positions 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"}}