Futures · Market data

Your own futures trades

Changed on

Each 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.

get/api/futures/deals/user

Request

  • Base URL
    https://api.binibit.com
  • URL
    https://api.binibit.com/api/futures/deals/user
  • Auth
    none declared

Query parameters

CurrencyPairstring

Restrict to one pair, e.g. BTC_USDT. Omit for every pair.

Pageinteger

Page number. Note this one starts at 0, unlike the orders and positions queries.

PageSizeinteger

Trades per page.

DateFromstring date-time

Include only trades at or after this moment (UTC).

DateTostring date-time

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

totalCountinteger

How many rows match the filters in total, across every page — not how many are in PublicApi.Models.Futures.FuturesPagedResult`1.Items. Divide by the page size to know how far you can page.

Changes