---
title: "POST /v2/user/accounts/{server}/{accountId}/tracking/latency"
method: POST
path: "/v2/user/accounts/{server}/{accountId}/tracking/latency"
tags: ["Tracking (v2)"]
---

# POST /v2/user/accounts/{server}/{accountId}/tracking/latency

`POST /v2/user/accounts/{server}/{accountId}/tracking/latency`

## Request

- Base URL: `https://trading-api.oanda.com` (the document declares no server; this is the origin it was published from)
- URL: `https://trading-api.oanda.com/v2/user/accounts/{server}/{accountId}/tracking/latency`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oanda/apis/up-gateway-v1/docs/v2/user/accounts/:server/:accountId/tracking/latency/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `server` 'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1', required
- `accountId` string, required

## Request body

- object
  - `clientRoundTripDuration` number, required: Total time in **milliseconds** between submitting the order and receiving an order placement confirmation
  - `clientStartTime` number, required: UTC timestamp in **milliseconds** when the client initiated the request.
  - `clientReceivedTime` number, required: UTC timestamp in **milliseconds** when the client received the server’s response.
  - `platform` string, required: Name of the platform that client is running on.
  - `requestedPrice` number, required
  - `orderId` string, required
  - `tradingAccountType` 'OGM' | 'V20' | 'CRYPTO' | 'OTMS' | 'OEL' | 'OJ'
  - `event` 'SubmittedOrder' | 'ModifyOrder' | 'CancelOrder' | 'ClosePosition' | 'CloseNetPosition' | 'ReducePosition' | 'ReduceNetPosition' | 'PushToFavourites' | 'RemoveFromFavourites' | 'SaveChartLayout' | 'CreateChartLayout' | 'CloseOrder' | 'ReduceOrder', required
  - `userId` string, required
  - `oandaAgent` string, required
  - `engineAfterPreflightDuration` number, required: Time in **milliseconds** taken by the trading engine after preflight checks.
  - `apiVersion` string, required
  - `transactionId` string, required
  - `size` number: Quantity or size of the order.
  - `instrument` string, required
  - `vwap` string, required: Volume-weighted average price at the time of the order.
  - `type` 'MARKET' | 'STOP' | 'LIMIT'

## Response `200`

OK

## Other responses

- `400`: FAIL

---

[API](https://skmtc.dev/oanda/apis/up-gateway-v1.md) - [All operations](https://skmtc.dev/oanda/apis/up-gateway-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oanda/apis/up-gateway-v1/revisions/395d645513bf?raw)
