Trading API

Get account history positions

The history is not updated in real-time. There may be a delay of up to 3 minutes

get/rest/api/v1/accounts/{accountId}/history/positions

Path parameters

accountIdstring uuid required

Query parameters

startstring required

ISO 8601

stopstring required

ISO 8601

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