Portfolio (v2)

GET /v2/user/accounts/{server}/{accountId}/portfolio/trades/{tradeId}

Request

  • Base URL
    https://trading-api.oanda.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

server'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1' required

Account trading server.

accountIdstring required

The user's account identifier.

tradeIdstring required

Trade identifier.

Response

response

accountIdstring required
idstring required
instrumentstring required
direction'LONG' | 'SHORT' required
pricenumber required
quantitynumber required
stopLossnumber

Stop Loss price

takeProfitnumber

Take profit price

creationTimenumber required
trailingStopnumber

Trailing Stop distance value

trailingStopValuenumber

Trailing Stop price value

guaranteedStopLossnumber
swapnumber

The swap size for a position in deposit currency.

Changes

No recorded changes to this operation across all 1 revision of this API.