Skip to main content

GET /v1/positions

Your current exposure per market.
  • quantity is base units, always positive; direction carries the sign.
  • notional_usd = quantity × mark_price (current value, not what you paid).
  • unrealized_pnl_usd is before fees, after funding accrual.
  • funding_usd is cumulative funding for the open position; negative means paid.
  • There is no opened_at: the venue does not report one, and inventing one from order history would be wrong after adds and partial closes.

GET /v1/positions/

Returns the bare position, or 404 not_found.position if you are flat.

POST /v1/positions//close

Returns 201 with an Order whose action is "close".
  • Closing a market with no position → 404 not_found.position.
  • usd above the current notional closes fully (clamped, not rejected).
  • “Full close” always means the entire position as it stands at execution time, including on an idempotent resubmission after a crash.