Your own futures trades
Changed onEach fill you were party to, with the fee it cost and the PnL it booked. One order can produce several rows — one per fill — and only closing fills carry a non-zero realized PnL.
Request
- Base URLhttps://api.binibit.com
- URLhttps://api.binibit.com/api/futures/deals/user
- Authnone declared
Query parameters
Restrict to one pair, e.g. BTC_USDT. Omit for every pair.
Page number. Note this one starts at 0, unlike the orders and positions queries.
Trades per page.
Include only trades at or after this moment (UTC).
Include only trades at or before this moment (UTC).
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