Skip to main content

Endpoint

Returns open derivative positions for an account.

Required path parameters

  • accountId — Trading account ID.

Response fields

  • s (string) — Request status. Always returns ok.
  • d (array) — Open position rows.

Open position fields

  • dtacctno (string) — Trading account.
  • codeid (string) — Instrument code ID.
  • symbol (string) — Instrument symbol.
  • qtty (number) — Position quantity.
  • isclose (string) — Whether the position can be closed.
  • isnet (string) — Whether netting is enabled.
  • pendinglqtty (number) — Pending long quantity.
  • pendingsqtty (number) — Pending short quantity.
  • rdsp (number) — DSP price.
  • nonrplamt (number) — Unrealized P/L for the day.
  • position (string) — Position side or type.
  • custodycd (string) — Margin account.
  • price_secured (number) — Market price.
  • nvalue (number) — Contract multiplier.
  • vwap (number) — Average cost price.
  • pecentnonrplamt (number) — Percentage unrealized P/L.
  • vrdebtvmamt (number) — Realized P/L.
  • totalplamt (number) — Total profit or loss value.
  • last_change (string) — Last update timestamp.
  • vrimamt (number) — Total margin value.
  • diff (number) — Point difference.
  • vm (number) — VM loss.
Your field notes use pricesecured and lastchange. The sample response returns price_secured and last_change. Document the response using the exact keys returned by the API.

cURL

Example response

Replace BASE_URL, ACCOUNT_ID, and ACCESS_TOKEN with your values.
  • accountId — Trading account ID.

Response fields

  • s (string) — Request status. Always returns ok.
  • d (array) — Open position rows.

Open position fields

  • dtacctno (string) — Trading account.
  • codeid (string) — Instrument code ID.
  • symbol (string) — Instrument symbol.
  • qtty (number) — Position quantity.
  • isclose (string) — Whether the position can be closed.
  • isnet (string) — Whether netting is enabled.
  • pendinglqtty (number) — Pending long quantity.
  • pendingsqtty (number) — Pending short quantity.
  • rdsp (number) — DSP price.
  • nonrplamt (number) — Unrealized P/L for the day.
  • position (string) — Position side or type.
  • custodycd (string) — Margin account.
  • price_secured (number) — Market price.
  • nvalue (number) — Contract multiplier.
  • vwap (number) — Average cost price.
  • pecentnonrplamt (number) — Percentage unrealized P/L.
  • vrdebtvmamt (number) — Realized P/L.
  • totalplamt (number) — Total profit or loss value.
  • last_change (string) — Last update timestamp.
  • vrimamt (number) — Total margin value.
  • diff (number) — Point difference.
  • vm (number) — VM loss.
Your field notes use pricesecured and lastchange. The sample response returns price_secured and last_change. Document the response using the exact keys returned by the API.

cURL

Example response

Replace BASE_URL, ACCOUNT_ID, and ACCESS_TOKEN with your values.