POST /v1/exchange (encrypted binary).
Read family: positions · Permission: owner or current READ agent.
Your position size, entry value and leverage. Results belong to your account. The query supports HTTP and
WebSocket, including subscriptions.
Configure
client and the example inputs using SDK integration. Examples show typed SDK values, not a plaintext HTTP JSON body.Request fields
Use the configured client and envelope. Each request suppliesid, current epoch and authentication expiresAt, as shown in the example.
Omit or use all-zero bytes to start. For another page, use the prior page’s
next under the same snapshot revision.Response fields
Examples show decoded SDK values. Absent optional fields mean unavailable, not zero. Emptyrows is valid.
Commitment to the permitted snapshot and query identity, not a global activity counter.
Behavior
The response includes configured markets with no open position (lots: 0n). Missing valuation or leverage means the value is unavailable, not zero.
Entry value and PnL
basis is the signed entry value of the remaining position. Long positions have positive size and entry value; short positions have negative size and entry value. It is not the deposited margin or an average price.
With the market’s exact conversion applied:
unrealized PnL = signed position value at the mark − remaining basis
For an illustrative conversion of one quote atom per lot per tick:
Fills, reductions and reversals update the remaining basis. The example omits funding and fees, which are recorded separately. See units for conversion and trading for the margin model.