{"format":"opendoc-document","version":1,"url":"https://docs.upscale.trade/ru/developers/operations/getpositionshistorybyticker","title":"Получить историю позиций по тикеру","description":"GET /positions/{accountId}/{asset}/history: История позиций счёта, ограниченная одним рынком, сначала самые новые и с пагинацией.","kind":"api-operation","locale":"ru","inLanguage":"ru","translation":{"sourceLanguage":"en","targetLanguage":"ru","status":"complete","translatedUnits":50,"totalUnits":50},"lastModified":"2026-09-28T20:14:21.334Z","revision":"4bcdb0248fec5130d7dca32f21ced4a207c71ff2d711894a920c99e4198fedd7","section":{"title":"Developers","url":"https://docs.upscale.trade/ru/developers"},"representations":{"html":"https://docs.upscale.trade/ru/developers/operations/getpositionshistorybyticker","markdown":"https://docs.upscale.trade/ru/developers/operations/getpositionshistorybyticker.md","json":"https://docs.upscale.trade/ru/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":"Получить историю позиций по тикеру","description":"История позиций счёта, ограниченная одним рынком, сначала самые новые и с пагинацией. То же правило фазы, что и для истории по всему портфелю.","tags":["Trading"],"tagLabels":{"Accounts":"Аккаунты","Config":"Конфигурация","Trading":"Торговля"},"deprecated":false,"parameters":[{"name":"accountId","location":"path","schema":{"type":"string · uuid","types":["string"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","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":"Идентификатор торгового аккаунта. Должен принадлежать вызывающей стороне.","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":"Тикер базового актива рынка, как возвращается `GET /v2/markets`.","example":"BTC"},{"name":"limit","location":"query","schema":{"type":"integer","types":["integer"],"example":20,"default":20,"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"minimum":1,"maximum":100},"properties":[],"variants":[]},"type":"integer","required":false,"description":"Размер страницы: сколько записей вернуть.","example":"20"},{"name":"offset","location":"query","schema":{"type":"integer","types":["integer"],"example":0,"default":0,"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"minimum":0,"maximum":9007199254740991},"properties":[],"variants":[]},"type":"integer","required":false,"description":"Сколько записей пропустить перед страницей.","example":"0"}],"bodies":[],"responses":[{"status":"401","description":"Неавторизовано","properties":[],"headers":[]},{"status":"403","description":"Аккаунт принадлежит другому пользователю (`account_access_denied`), или запрос аутентифицирован с помощью API-ключа, тогда как `api_trading` отключён на аккаунте (`api_trading_not_enabled`).","properties":[],"headers":[]},{"status":"404","description":"Нет аккаунта с этим идентификатором или нет рынка для этого тикера.","properties":[],"headers":[]},{"status":"429","description":"Превышен лимит частоты запросов API-ключа (`api_key_rate_limit_exceeded`). `Retry-After` указывает, когда вернуться; тело содержит бакет (`read` / `write`), окно, которое сработало, его лимит и `retryAt`.","properties":[],"headers":[]},{"status":"default","description":"Ответ","mediaType":"application/json","properties":[{"name":"data","type":"object[]","required":true,"description":"Requested page of 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":"Запрошенная страница позиций, сначала самые новые.","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":"Запрошенная страница позиций, сначала самые новые.","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":"Идентификатор позиции. То же значение, что и `txId`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Идентификатор позиции. То же значение, что и `txId`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"txId","type":"string · nullable","required":true,"description":"Идентификатор позиции. Сохранён для обратной совместимости, всегда равен `idx`.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Идентификатор позиции. Сохранён для обратной совместимости, всегда равен `idx`.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"version","type":"number","required":true,"description":"Ревизия позиции: увеличивается при каждом событии, применённом к ней.","example":"0","schema":{"type":"number","types":["number"],"description":"Ревизия позиции: увеличивается при каждом событии, применённом к ней.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"openedAt","type":"string · date-time","required":true,"description":"Когда позиция была открыта.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Когда позиция была открыта.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"lastUpdatedAt","type":"string · date-time","required":true,"description":"Когда к позиции было применено последнее событие.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Когда к позиции было применено последнее событие.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"closedAt","type":"string · date-time · nullable","required":true,"description":"Когда позиция была закрыта; null, пока она всё ещё открыта.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time · nullable","types":["string"],"description":"Когда позиция была закрыта; null, пока она всё ещё открыта.","example":"2026-05-01T12:30:00.000Z","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"type","type":"string · enum","required":true,"description":"Направление позиции. То же значение, что и `direction`.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Направление позиции. То же значение, что и `direction`.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"status","type":"string · enum","required":true,"description":"Является ли позиция всё ещё открытой, закрытой трейдером или ликвидированной.","example":"opened","schema":{"type":"string · enum","types":["string"],"description":"Является ли позиция всё ещё открытой, закрытой трейдером или ликвидированной.","enum":["opened","closed","liquidated"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"market","type":"string · uuid","required":true,"description":"Рынок, на котором удерживается позиция.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Рынок, на котором удерживается позиция.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"trader","type":"string · uuid","required":true,"description":"Счёт трейдера, которому принадлежит позиция.","example":"00000000-0000-4000-8000-000000000000","schema":{"type":"string · uuid","types":["string"],"description":"Счёт трейдера, которому принадлежит позиция.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"properties":[],"variants":[]}},{"name":"size","type":"string · int32","required":true,"description":"Размер позиции в единицах базового актива, fp9 в сыром виде.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Размер позиции в единицах базового актива, fp9 в сыром виде.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"notional","type":"string · int32","required":true,"description":"Открытый номинал позиции в валюте котировки, fp9 в сыром виде — размер по цене входа.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Открытый номинал позиции в валюте котировки, fp9 в сыром виде — размер по цене входа.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"fraction","type":"string · int32","required":true,"description":"Всегда `0`. Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `0`. Сохранено для обратной совместимости.","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":"Маржа, в настоящее время обеспечивающая позицию, fp9 в сыром виде. Изменяется вместе с pnl, финансированием и ручными изменениями маржи.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Маржа, в настоящее время обеспечивающая позицию, fp9 в сыром виде. Изменяется вместе с pnl, финансированием и ручными изменениями маржи.","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, накопленный по каждому событию позиции, fp9 в сыром виде.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Реализованный pnl, накопленный по каждому событию позиции, fp9 в сыром виде.","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":"Финансирование, уплаченное (отрицательное) или полученное (положительное) за всё время существования позиции, fp9 в необработанном виде.","example":"1000000000","schema":{"type":"string · int32 · nullable","types":["string"],"description":"Финансирование, уплаченное (отрицательное) или полученное (положительное) за всё время существования позиции, fp9 в необработанном виде.","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":"Всегда `0`. Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `0`. Сохранено для обратной совместимости.","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":"Всегда `1000000000` (1.0). Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `1000000000` (1.0). Сохранено для обратной совместимости.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"fee","type":"string · int32","required":true,"description":"Торговые комиссии, взимаемые за всё время существования позиции, fp9 в необработанном виде.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Торговые комиссии, взимаемые за всё время существования позиции, fp9 в необработанном виде.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"feeRate","type":"string · int32","required":true,"description":"Ставка комиссии, применяемая к позиции, fp9 в виде необработанной дроби (`1000000` = 0.1%).","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Ставка комиссии, применяемая к позиции, fp9 в виде необработанной дроби (`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":"Сумма в котируемой валюте, обмененная в результате последнего события, fp9 в необработанном виде.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Сумма в котируемой валюте, обмененная в результате последнего события, fp9 в необработанном виде.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"exchangedBase","type":"string · int32","required":true,"description":"Сумма в базовой валюте, обмененная в результате последнего события, fp9 в необработанном виде.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Сумма в базовой валюте, обмененная в результате последнего события, fp9 в необработанном виде.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"direction","type":"string · enum","required":true,"description":"Направление позиции.","example":"long","schema":{"type":"string · enum","types":["string"],"description":"Направление позиции.","enum":["long","short"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"eventName","type":"string · enum","required":true,"description":"Тип последнего события, применённого к позиции.","example":"addMargin","schema":{"type":"string · enum","types":["string"],"description":"Тип последнего события, применённого к позиции.","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 последнего события, fp9 в сыром виде.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Реализованный pnl последнего события, fp9 в сыром виде.","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 последнего события до 60-секундной корректировки, fp9 в сыром виде. Отличается от `pnlInEvent` только когда корректировка сработала.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Реализованный pnl последнего события до 60-секундной корректировки, fp9 в сыром виде. Отличается от `pnlInEvent` только когда корректировка сработала.","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":"Ограничила ли 60-секундная корректировка прибыль последнего события — в течение минуты после открытия или увеличения позиции pnl не может вырасти выше того, каким он был в тот момент.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Ограничила ли 60-секундная корректировка прибыль последнего события — в течение минуты после открытия или увеличения позиции pnl не может вырасти выше того, каким он был в тот момент.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"holdingTimeMs","type":"string · nullable","required":true,"description":"Как долго позиция удерживалась до самого последнего закрытия, в миллисекундах, считая от открытия или последнего увеличения. Null для событий, которые не являются закрытиями.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Как долго позиция удерживалась до самого последнего закрытия, в миллисекундах, считая от открытия или последнего увеличения. Null для событий, которые не являются закрытиями.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"feeInEvent","type":"string · int32","required":true,"description":"Комиссия, взимаемая по самому последнему событию, fp9 в сыром виде.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Комиссия, взимаемая по самому последнему событию, fp9 в сыром виде.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"fundingInEvent","type":"string · int32","required":true,"description":"Фандинг, урегулированный самым последним событием, fp9 в сыром виде.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Фандинг, урегулированный самым последним событием, fp9 в сыром виде.","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"rolloverFeeInEvent","type":"string · int32","required":true,"description":"Всегда `0`. Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `0`. Сохранено для обратной совместимости.","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":"Всегда `0`. Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `0`. Сохранено для обратной совместимости.","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":"Всегда `0`. Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `0`. Сохранено для обратной совместимости.","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":"Всегда `0`. Сохранено для обратной совместимости.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Всегда `0`. Сохранено для обратной совместимости.","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":"Временная метка самого последнего события. То же значение, что и `lastUpdatedAt`.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Временная метка самого последнего события. То же значение, что и `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":"Всегда `true`. Сохранено для обратной совместимости.","example":"true","schema":{"type":"boolean","types":["boolean"],"description":"Всегда `true`. Сохранено для обратной совместимости.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}},{"name":"roe","type":"string · int32","required":true,"description":"Рентабельность капитала позиции — реализованный pnl относительно внесённой маржи, fp9 в виде необработанной дроби.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Рентабельность капитала позиции — реализованный pnl относительно внесённой маржи, fp9 в виде необработанной дроби.","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":"Динамический множитель спреда, применённый к позиции, fp9 в необработанном виде (`1000000000` = 1.0). Выше 1, когда сделка попала в окно рыночного скальпинга.","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Динамический множитель спреда, применённый к позиции, fp9 в необработанном виде (`1000000000` = 1.0). Выше 1, когда сделка попала в окно рыночного скальпинга.","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":"Почему платформа закрыла позицию (например, `weekly_session_risk_close`). Null для позиций, закрытых трейдером, и для открытых.","example":"string","schema":{"type":"string · nullable","types":["string","null"],"description":"Почему платформа закрыла позицию (например, `weekly_session_risk_close`). Null для позиций, закрытых трейдером, и для открытых.","nullable":true,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"variants":[]},"variants":[]}},{"name":"totalCount","type":"number","required":true,"description":"Общее количество позиций, соответствующих запросу, по всем страницам.","example":"0","schema":{"type":"number","types":["number"],"description":"Общее количество позиций, соответствующих запросу, по всем страницам.","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]}}],"variants":[]},"example":"{\n  \"data\": [\n    {\n      \"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":"Персональный API-ключ с префиксом `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":"Что такое проп-трейдинг","url":"https://docs.upscale.trade/ru"},{"title":"Developers","url":"https://docs.upscale.trade/ru/developers"},{"title":"Получить историю позиций по тикеру","url":"https://docs.upscale.trade/ru/developers/operations/getpositionshistorybyticker"}],"headings":[{"depth":2,"id":"authorization","title":"Авторизация"},{"depth":2,"id":"parameters","title":"Параметры"},{"depth":2,"id":"examples","title":"Примеры"},{"depth":2,"id":"responses","title":"Ответы"}],"markdown":"# Получить историю позиций по тикеру\n\n`GET /positions/{accountId}/{asset}/history`\n\nИстория позиций счёта, ограниченная одним рынком, сначала самые новые и с пагинацией. То же правило фазы, что и для истории по всему портфелю.\n\n<a id=\"authorization\"></a>\n\n## Авторизация\n\nbearer: http · bearer (обязательно). Персональный API-ключ с префиксом `usk_`.\n\n<a id=\"parameters\"></a>\n\n## Параметры\n\n- path: accountId (string · uuid; обязательно). Идентификатор торгового аккаунта. Должен принадлежать вызывающей стороне.\n\nТип: string · uuid\n\nformat: uuid\n\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; обязательно). Тикер базового актива рынка, как возвращается `GET /v2/markets`.\n\nТип: string\n\nПример: \"BTC\"\n\nminLength: 1\n\n- query: limit (integer; необязательно). Размер страницы: сколько записей вернуть.\n\nТип: integer\n\nПример: 20\n\nПо умолчанию: 20\n\nminimum: 1\n\nmaximum: 100\n\n- query: offset (integer; необязательно). Сколько записей пропустить перед страницей.\n\nТип: integer\n\nПример: 0\n\nПо умолчанию: 0\n\nminimum: 0\n\nmaximum: 9007199254740991\n\n<a id=\"example-curl\"></a>\n\n## Пример · cURL\n\n```bash\ncurl --request GET 'https://api.upscale.trade/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## Пример · 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## Пример · 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## Ответ 401\n\n**401**  — Неавторизовано\n\n<a id=\"response-403\"></a>\n\n## Ответ 403\n\n**403**  — Аккаунт принадлежит другому пользователю (`account_access_denied`), или запрос аутентифицирован с помощью API-ключа, тогда как `api_trading` отключён на аккаунте (`api_trading_not_enabled`).\n\n<a id=\"response-404\"></a>\n\n## Ответ 404\n\n**404**  — Нет аккаунта с этим идентификатором или нет рынка для этого тикера.\n\n<a id=\"response-429\"></a>\n\n## Ответ 429\n\n**429**  — Превышен лимит частоты запросов API-ключа (`api_key_rate_limit_exceeded`). `Retry-After` указывает, когда вернуться; тело содержит бакет (`read` / `write`), окно, которое сработало, его лимит и `retryAt`.\n\n<a id=\"response-default-positionspaginatedresponse\"></a>\n\n## Ответ default · PositionsPaginatedResponse\n\n**default** application/json — Ответ\n\nСхема: PositionsPaginatedResponse\n\nТип: object\n\nОбязательные поля: data, totalCount\n\nТипы обязательных полей: data (object[]; обязательно), totalCount (number; обязательно)\n\n- data (object[]; обязательно)\n\ndata пример: [\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.Тип: object[]\n\ndata.Запрошенная страница позиций, сначала самые новые.\n\ndata.[]Тип: object\n\ndata.[]Обязательные поля: 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.[]Типы обязательных полей: idx (string · nullable; обязательно), txId (string · nullable; обязательно), version (number; обязательно), openedAt (string · date-time; обязательно), lastUpdatedAt (string · date-time; обязательно), closedAt (string · date-time · nullable; обязательно), type (string · enum; обязательно), status (string · enum; обязательно), market (string · uuid; обязательно), trader (string · uuid; обязательно), size (string · int32; обязательно), notional (string · int32; обязательно), fraction (string · int32; обязательно), margin (string · int32; обязательно), pnl (string · int32 · nullable; обязательно), funding (string · int32 · nullable; обязательно), rolloverFee (string · int32; обязательно), settlementOraclePrice (string · int32; обязательно), fee (string · int32; обязательно), feeRate (string · int32; обязательно), exchangedQuote (string · int32; обязательно), exchangedBase (string · int32; обязательно), direction (string · enum; обязательно), eventName (string · enum; обязательно), pnlInEvent (string · int32; обязательно), rawPnlInEvent (string · int32; обязательно), profitAdjustmentApplied (boolean; обязательно), holdingTimeMs (string · nullable; обязательно), feeInEvent (string · int32; обязательно), fundingInEvent (string · int32; обязательно), rolloverFeeInEvent (string · int32; обязательно), executionFeeRate (string · int32; обязательно), executionFeeInEvent (string · int32; обязательно), executionFee (string · int32; обязательно), timestamp (string · date-time; обязательно), isOnchain (boolean; обязательно), roe (string · int32; обязательно), scalpingCoefficient (string · int32; обязательно), closeReason (string · nullable; обязательно)\n\n- data.[]idx (string · nullable; обязательно)\n\ndata.[]idx пример: string\n\ndata.[]idx.Тип: string · nullable\n\ndata.[]idx.Идентификатор позиции. То же значение, что и `txId`.\n\n- data.[]txId (string · nullable; обязательно)\n\ndata.[]txId пример: string\n\ndata.[]txId.Тип: string · nullable\n\ndata.[]txId.Идентификатор позиции. Сохранён для обратной совместимости, всегда равен `idx`.\n\n- data.[]version (number; обязательно)\n\ndata.[]version пример: 0\n\ndata.[]version.Тип: number\n\ndata.[]version.Ревизия позиции: увеличивается при каждом событии, применённом к ней.\n\n- data.[]openedAt (string · date-time; обязательно)\n\ndata.[]openedAt пример: 2026-05-01T12:30:00.000Z\n\ndata.[]openedAt.Тип: string · date-time\n\ndata.[]openedAt.Когда позиция была открыта.\n\ndata.[]openedAt.format: date-time\n\n- data.[]lastUpdatedAt (string · date-time; обязательно)\n\ndata.[]lastUpdatedAt пример: 2026-05-01T12:30:00.000Z\n\ndata.[]lastUpdatedAt.Тип: string · date-time\n\ndata.[]lastUpdatedAt.Когда к позиции было применено последнее событие.\n\ndata.[]lastUpdatedAt.format: date-time\n\n- data.[]closedAt (string · date-time · nullable; обязательно)\n\ndata.[]closedAt пример: 2026-05-01T12:30:00.000Z\n\ndata.[]closedAt.Тип: string · date-time · nullable\n\ndata.[]closedAt.Когда позиция была закрыта; null, пока она всё ещё открыта.\n\ndata.[]closedAt.format: date-time\n\n- data.[]type (string · enum; обязательно)\n\ndata.[]type пример: long\n\ndata.[]type.Тип: string · enum\n\ndata.[]type.Направление позиции. То же значение, что и `direction`.\n\ndata.[]type.Допустимые значения: [\"long\",\"short\"]\n\n- data.[]status (string · enum; обязательно)\n\ndata.[]status пример: opened\n\ndata.[]status.Тип: string · enum\n\ndata.[]status.Является ли позиция всё ещё открытой, закрытой трейдером или ликвидированной.\n\ndata.[]status.Допустимые значения: [\"opened\",\"closed\",\"liquidated\"]\n\n- data.[]market (string · uuid; обязательно)\n\ndata.[]market пример: 00000000-0000-4000-8000-000000000000\n\ndata.[]market.Тип: string · uuid\n\ndata.[]market.Рынок, на котором удерживается позиция.\n\ndata.[]market.format: uuid\n\ndata.[]market.pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$\n\n- data.[]trader (string · uuid; обязательно)\n\ndata.[]trader пример: 00000000-0000-4000-8000-000000000000\n\ndata.[]trader.Тип: string · uuid\n\ndata.[]trader.Счёт трейдера, которому принадлежит позиция.\n\ndata.[]trader.format: uuid\n\ndata.[]trader.pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$\n\n- data.[]size (string · int32; обязательно)\n\ndata.[]size пример: 1000000000\n\ndata.[]size.Тип: string · int32\n\ndata.[]size.Размер позиции в единицах базового актива, fp9 в сыром виде.\n\ndata.[]size.format: int32\n\ndata.[]size.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]notional (string · int32; обязательно)\n\ndata.[]notional пример: 1000000000\n\ndata.[]notional.Тип: string · int32\n\ndata.[]notional.Открытый номинал позиции в валюте котировки, fp9 в сыром виде — размер по цене входа.\n\ndata.[]notional.format: int32\n\ndata.[]notional.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]fraction (string · int32; обязательно)\n\ndata.[]fraction пример: 1000000000\n\ndata.[]fraction.Тип: string · int32\n\ndata.[]fraction.Всегда `0`. Сохранено для обратной совместимости.\n\ndata.[]fraction.format: int32\n\ndata.[]fraction.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]margin (string · int32; обязательно)\n\ndata.[]margin пример: 1000000000\n\ndata.[]margin.Тип: string · int32\n\ndata.[]margin.Маржа, в настоящее время обеспечивающая позицию, fp9 в сыром виде. Изменяется вместе с pnl, финансированием и ручными изменениями маржи.\n\ndata.[]margin.format: int32\n\ndata.[]margin.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]pnl (string · int32 · nullable; обязательно)\n\ndata.[]pnl пример: 1000000000\n\ndata.[]pnl.Тип: string · int32 · nullable\n\ndata.[]pnl.Реализованный pnl, накопленный по каждому событию позиции, fp9 в сыром виде.\n\ndata.[]pnl.format: int32\n\ndata.[]pnl.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]funding (string · int32 · nullable; обязательно)\n\ndata.[]funding пример: 1000000000\n\ndata.[]funding.Тип: string · int32 · nullable\n\ndata.[]funding.Финансирование, уплаченное (отрицательное) или полученное (положительное) за всё время существования позиции, fp9 в необработанном виде.\n\ndata.[]funding.format: int32\n\ndata.[]funding.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rolloverFee (string · int32; обязательно)\n\ndata.[]rolloverFee пример: 1000000000\n\ndata.[]rolloverFee.Тип: string · int32\n\ndata.[]rolloverFee.Всегда `0`. Сохранено для обратной совместимости.\n\ndata.[]rolloverFee.format: int32\n\ndata.[]rolloverFee.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]settlementOraclePrice (string · int32; обязательно)\n\ndata.[]settlementOraclePrice пример: 1000000000\n\ndata.[]settlementOraclePrice.Тип: string · int32\n\ndata.[]settlementOraclePrice.Всегда `1000000000` (1.0). Сохранено для обратной совместимости.\n\ndata.[]settlementOraclePrice.format: int32\n\ndata.[]settlementOraclePrice.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]fee (string · int32; обязательно)\n\ndata.[]fee пример: 1000000000\n\ndata.[]fee.Тип: string · int32\n\ndata.[]fee.Торговые комиссии, взимаемые за всё время существования позиции, fp9 в необработанном виде.\n\ndata.[]fee.format: int32\n\ndata.[]fee.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]feeRate (string · int32; обязательно)\n\ndata.[]feeRate пример: 1000000000\n\ndata.[]feeRate.Тип: string · int32\n\ndata.[]feeRate.Ставка комиссии, применяемая к позиции, fp9 в виде необработанной дроби (`1000000` = 0.1%).\n\ndata.[]feeRate.format: int32\n\ndata.[]feeRate.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]exchangedQuote (string · int32; обязательно)\n\ndata.[]exchangedQuote пример: 1000000000\n\ndata.[]exchangedQuote.Тип: string · int32\n\ndata.[]exchangedQuote.Сумма в котируемой валюте, обмененная в результате последнего события, fp9 в необработанном виде.\n\ndata.[]exchangedQuote.format: int32\n\ndata.[]exchangedQuote.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]exchangedBase (string · int32; обязательно)\n\ndata.[]exchangedBase пример: 1000000000\n\ndata.[]exchangedBase.Тип: string · int32\n\ndata.[]exchangedBase.Сумма в базовой валюте, обмененная в результате последнего события, fp9 в необработанном виде.\n\ndata.[]exchangedBase.format: int32\n\ndata.[]exchangedBase.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]direction (string · enum; обязательно)\n\ndata.[]direction пример: long\n\ndata.[]direction.Тип: string · enum\n\ndata.[]direction.Направление позиции.\n\ndata.[]direction.Допустимые значения: [\"long\",\"short\"]\n\n- data.[]eventName (string · enum; обязательно)\n\ndata.[]eventName пример: addMargin\n\ndata.[]eventName.Тип: string · enum\n\ndata.[]eventName.Тип последнего события, применённого к позиции.\n\ndata.[]eventName.Допустимые значения: [\"addMargin\",\"removeMargin\",\"closePosition\",\"increasePosition\",\"liquidate\",\"forceClose\",\"payFunding\"]\n\n- data.[]pnlInEvent (string · int32; обязательно)\n\ndata.[]pnlInEvent пример: 1000000000\n\ndata.[]pnlInEvent.Тип: string · int32\n\ndata.[]pnlInEvent.Реализованный pnl последнего события, fp9 в сыром виде.\n\ndata.[]pnlInEvent.format: int32\n\ndata.[]pnlInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rawPnlInEvent (string · int32; обязательно)\n\ndata.[]rawPnlInEvent пример: 1000000000\n\ndata.[]rawPnlInEvent.Тип: string · int32\n\ndata.[]rawPnlInEvent.Реализованный pnl последнего события до 60-секундной корректировки, fp9 в сыром виде. Отличается от `pnlInEvent` только когда корректировка сработала.\n\ndata.[]rawPnlInEvent.format: int32\n\ndata.[]rawPnlInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]profitAdjustmentApplied (boolean; обязательно)\n\ndata.[]profitAdjustmentApplied пример: true\n\ndata.[]profitAdjustmentApplied.Тип: boolean\n\ndata.[]profitAdjustmentApplied.Ограничила ли 60-секундная корректировка прибыль последнего события — в течение минуты после открытия или увеличения позиции pnl не может вырасти выше того, каким он был в тот момент.\n\n- data.[]holdingTimeMs (string · nullable; обязательно)\n\ndata.[]holdingTimeMs пример: string\n\ndata.[]holdingTimeMs.Тип: string · nullable\n\ndata.[]holdingTimeMs.Как долго позиция удерживалась до самого последнего закрытия, в миллисекундах, считая от открытия или последнего увеличения. Null для событий, которые не являются закрытиями.\n\n- data.[]feeInEvent (string · int32; обязательно)\n\ndata.[]feeInEvent пример: 1000000000\n\ndata.[]feeInEvent.Тип: string · int32\n\ndata.[]feeInEvent.Комиссия, взимаемая по самому последнему событию, fp9 в сыром виде.\n\ndata.[]feeInEvent.format: int32\n\ndata.[]feeInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]fundingInEvent (string · int32; обязательно)\n\ndata.[]fundingInEvent пример: 1000000000\n\ndata.[]fundingInEvent.Тип: string · int32\n\ndata.[]fundingInEvent.Фандинг, урегулированный самым последним событием, fp9 в сыром виде.\n\ndata.[]fundingInEvent.format: int32\n\ndata.[]fundingInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]rolloverFeeInEvent (string · int32; обязательно)\n\ndata.[]rolloverFeeInEvent пример: 1000000000\n\ndata.[]rolloverFeeInEvent.Тип: string · int32\n\ndata.[]rolloverFeeInEvent.Всегда `0`. Сохранено для обратной совместимости.\n\ndata.[]rolloverFeeInEvent.format: int32\n\ndata.[]rolloverFeeInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]executionFeeRate (string · int32; обязательно)\n\ndata.[]executionFeeRate пример: 1000000000\n\ndata.[]executionFeeRate.Тип: string · int32\n\ndata.[]executionFeeRate.Всегда `0`. Сохранено для обратной совместимости.\n\ndata.[]executionFeeRate.format: int32\n\ndata.[]executionFeeRate.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]executionFeeInEvent (string · int32; обязательно)\n\ndata.[]executionFeeInEvent пример: 1000000000\n\ndata.[]executionFeeInEvent.Тип: string · int32\n\ndata.[]executionFeeInEvent.Всегда `0`. Сохранено для обратной совместимости.\n\ndata.[]executionFeeInEvent.format: int32\n\ndata.[]executionFeeInEvent.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]executionFee (string · int32; обязательно)\n\ndata.[]executionFee пример: 1000000000\n\ndata.[]executionFee.Тип: string · int32\n\ndata.[]executionFee.Всегда `0`. Сохранено для обратной совместимости.\n\ndata.[]executionFee.format: int32\n\ndata.[]executionFee.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]timestamp (string · date-time; обязательно)\n\ndata.[]timestamp пример: 2026-05-01T12:30:00.000Z\n\ndata.[]timestamp.Тип: string · date-time\n\ndata.[]timestamp.Временная метка самого последнего события. То же значение, что и `lastUpdatedAt`.\n\ndata.[]timestamp.format: date-time\n\n- data.[]isOnchain (boolean; обязательно)\n\ndata.[]isOnchain пример: true\n\ndata.[]isOnchain.Тип: boolean\n\ndata.[]isOnchain.Всегда `true`. Сохранено для обратной совместимости.\n\n- data.[]roe (string · int32; обязательно)\n\ndata.[]roe пример: 1000000000\n\ndata.[]roe.Тип: string · int32\n\ndata.[]roe.Рентабельность капитала позиции — реализованный pnl относительно внесённой маржи, fp9 в виде необработанной дроби.\n\ndata.[]roe.format: int32\n\ndata.[]roe.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]scalpingCoefficient (string · int32; обязательно)\n\ndata.[]scalpingCoefficient пример: 1000000000\n\ndata.[]scalpingCoefficient.Тип: string · int32\n\ndata.[]scalpingCoefficient.Динамический множитель спреда, применённый к позиции, fp9 в необработанном виде (`1000000000` = 1.0). Выше 1, когда сделка попала в окно рыночного скальпинга.\n\ndata.[]scalpingCoefficient.format: int32\n\ndata.[]scalpingCoefficient.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- data.[]closeReason (string · nullable; обязательно)\n\ndata.[]closeReason пример: string\n\ndata.[]closeReason.Тип: string · nullable\n\ndata.[]closeReason.Почему платформа закрыла позицию (например, `weekly_session_risk_close`). Null для позиций, закрытых трейдером, и для открытых.\n\n- totalCount (number; обязательно)\n\ntotalCount пример: 0\n\ntotalCount.Тип: number\n\ntotalCount.Общее количество позиций, соответствующих запросу, по всем страницам.\n\nПример\n\n\n\n```json\n{\n  \"data\": [\n    {\n      \"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":"Получить историю позиций по тикеру История позиций счёта, ограниченная одним рынком, сначала самые новые и с пагинацией. То же правило фазы, что и для истории по всему портфелю. GET /positions/{accountId}/{asset}/history Trading accountId Идентификатор торгового аккаунта. Должен принадлежать вызывающей стороне. string · uuid asset Тикер базового актива рынка, как возвращается `GET /v2/markets`. string limit Размер страницы: сколько записей вернуть. integer offset Сколько записей пропустить перед страницей. integer 401 Неавторизовано 403 Аккаунт принадлежит другому пользователю (`account_access_denied`), или запрос аутентифицирован с помощью API-ключа, тогда как `api_trading` отключён на аккаунте (`api_trading_not_enabled`). 404 Нет аккаунта с этим идентификатором или нет рынка для этого тикера. 429 Превышен лимит частоты запросов API-ключа (`api_key_rate_limit_exceeded`). `Retry-After` указывает, когда вернуться; тело содержит бакет (`read` / `write`), окно, которое сработало, его лимит и `retryAt`. default Ответ data Requested page of positions, newest first. object[] totalCount Total number of positions matching the request, across all pages. number","api":{"title":"Публичный API Upscale","version":"d796ac9","documentation":"https://docs.upscale.trade/ru/developers","playgroundServer":"https://api.upscale.trade"}}