GET /positions for per-position detail, and GET /account for the aggregate picture across everything you hold.
Positions
GET /positions returns your open positions, aggregated per side (one line each for buy and sell).
The key line to watch is
net_margin_usd - it’s what closing right now would return to your balance.
Account
GET /account rolls everything up into one summary: free balance, margin in use, total exposure, and unrealized P&L.
Use
available_exposure_usd before opening or adding to confirm you have the headroom; an open that would exceed the cap returns 400 exposure_exceeded.
