Your futures positions
Changed onOpen positions by default; pass isActive=false for closed ones. Unfilled orders never appear here whatever the filters say — search the orders history with status 10 for those. The response is a page { items, currentPage, pageSize, totalCount, totalPages, hasPreviousPage, hasNextPage }.
Request
- Base URLhttps://api.binibit.com
- URLhttps://api.binibit.com/api/futures/trade/positions
- Authnone declared
Query parameters
Restrict to one pair, e.g. BTC_USDT. Omit for every pair.
1-based page number; values below 1 fall back to 1.
Positions per page; values below 1 fall back to 100; capped at 1000.
Include only positions opened at or after this moment (UTC).
Include only positions opened at or before this moment (UTC).
Restrict to one Unified Trading Account. Omit to search across all of the caller's accounts.
True returns currently open positions, false returns closed ones. There is no "both": the two are separate states, so ask twice if you need each.
Headers
Your API key, verbatim. Create one at https://azbit.com/dashboard/settings/api-settings.
Signature of THIS request — lower-case hex of HMAC-SHA256 over publicKey + fullUrl + body, keyed with your private key. It changes with every request, so it cannot be set once and reused. Full algorithm and code samples are at the top of this page.
Response
OK
Changes
- info
endpoint added
- info