latestOpenAPI 3.0.12026-08-16171142480.4 KB
ff1699330afa
Trading API
Get account positions
get/rest/api/v1/accounts/{accountId}/positions
Path parameters
accountIdstring uuid required
Response
OK
brokerTimeClosestring
Original time string from the broker
brokerTimeOpenstring
Original time string from the broker
closePricenumber
closeTimestring date-time
ISO 8601
commentstring
commissionnumber
dealType'DealBuy' | 'DealSell' | 'Balance' | 'Credit' | 'Charge' | 'Correction' | 'Bonus' | 'Commission' | 'DailyCommission' | 'MonthlyCommission' | 'DailyAgentCommission' | 'MonthlyAgentCommission' | 'InterestRate' | 'CanceledBuy' | 'CanceledSell' | 'Dividend' | 'FrankedDividend' | 'Tax' | 'AgentCommission' | 'SoCompensation' | 'SoCreditCompensation'
idstring
magicNumberstring
Magic number carried by the position, as a string. Absent/null when no magic number was set on the order (a magic of 0 on the broker side is reported as absent rather than as the string "0").
netProfitnumber
openPricenumber
openTimestring date-time
ISO 8601
orderType'Buy' | 'Sell' | 'BuyLimit' | 'SellLimit' | 'BuyStop' | 'SellStop'
placedType'Manually' | 'Mobile' | 'Web' | 'ByExpert' | 'OnSL' | 'OnTP' | 'OnStopOut' | 'OnRollover' | 'OnVmargin' | 'OnSplit' | 'ByDealer' | 'Gateway' | 'Signal' | 'Settlement' | 'Transfer' | 'Sync' | 'ExternalService' | 'Migration'
profitnumber
requestIdstring
statestring
stopLossnumber
swapnumber
symbolstring
takeProfitnumber
volumenumber