Tracking (v4)

POST /v4/user/accounts/{server}/{accountId}/tracking/latency

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.

Request body

clientRoundTripDurationnumber required

Total time in milliseconds between submitting the order and receiving an order placement confirmation

clientStartTimenumber required

UTC timestamp in milliseconds when the client initiated the request.

clientReceivedTimenumber required

UTC timestamp in milliseconds when the client received the server’s response.

platformstring required

Name of the platform that client is running on.

requestedPricenumber required
orderIdstring required
tradingAccountType'OGM' | 'V20' | 'CRYPTO' | 'OTMS' | 'OEL' | 'OJ'
event'SubmittedOrder' | 'ModifyOrder' | 'CancelOrder' | 'ClosePosition' | 'CloseNetPosition' | 'ReducePosition' | 'ReduceNetPosition' | 'PushToFavourites' | 'RemoveFromFavourites' | 'SaveChartLayout' | 'CreateChartLayout' | 'CloseOrder' | 'ReduceOrder' required
userIdstring required
oandaAgentstring required
engineAfterPreflightDurationnumber required

Time in milliseconds taken by the trading engine after preflight checks.

apiVersionstring required
transactionIdstring required
sizenumber

Quantity or size of the order.

instrumentstring required
vwapstring required

Volume-weighted average price at the time of the order.

type'MARKET' | 'STOP' | 'LIMIT'

Example request

{
  "clientRoundTripDuration": 150.5,
  "clientStartTime": 1622547800123,
  "clientReceivedTime": 1622547800450,
  "platform": "ios",
  "engineAfterPreflightDuration": 25.3,
  "size": 100,
  "vwap": "252.30"
}

Response

OK

Changes

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