Loading the API reference…

Browse the API reference

Live position for one symbol

get https://trading-gateway-api.prod.thinkalpha.io/accounts/{accountId}/positions/{symbol}
Authentication
Bearer token or Client credentials (HTTP Basic)

Path parameters

  • accountId string required

    The ID of the account to get the live position for.

  • symbol string required

    The raw FIX symbol of the position to get.

Responses

A live position for one (account, symbol) pair. Invariant: `quantity = sodQuantity + boughtQuantity - soldQuantity`. `version` is strictly increasing per (account, symbol). Broadcast ordering across concurrent writers is not guaranteed: clients must drop payloads whose `version` is at or below the last seen for the same key, and should treat a REST snapshot the same way when merging with the live stream.

  • accountId string<uuid> required
  • boughtNotional number<double> required
  • boughtQuantity number<double> required
  • executorId string<uuid> required
  • firmId string<uuid> required
  • quantity number<double> required
  • sodPrice number<double> required
  • sodQuantity number<double> required
  • soldNotional number<double> required
  • soldQuantity number<double> required
  • symbol string required
  • tradingDay string<date>
  • updatedAt string<date-time> required
  • version integer<int64> required

    The write sequence of this (account, symbol) position; never negative.

    >= 0