Portfolio (v4)

GET /v4/user/accounts/{server}/{accountId}/portfolio/orders

Request

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.

Query parameters

limitnumber
offsetnumber
type'HISTORY' | 'PENDING'

Order status type.

sort'asc' | 'desc'

Sort direction for ordering the results by date.

fromstring

Filter results starting from this timestamp. UTC timestamp in milliseconds.

tostring

Filter results up to this timestamp. UTC timestamp in milliseconds.

status'FILLED' | 'PENDING' | 'CANCELED' | 'PARTIALLY_FILLED' | 'REPLACED' | 'REJECTED' | 'EXPIRED' | 'REQUEST_ADDED' | 'REQUEST_MODIFY' | 'REQUEST_CANCEL'

filter historical orders by status.PENDING, FILLED, and CANCELED statuses are available for both MT5 and v20 orders. All other statuses are applicable to MT5 orders only.

direction'LONG' | 'SHORT'

Direction of an order

Response

response

countnumber required
limitnumber required
offsetnumber required

Example response

{
  "data": [
    {
      "status": "PENDING"
    }
  ]
}

Changes

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