The Derivatives API provides authenticated access to perpetual and options position data, historical settlement records, funding rate history, and borrow interest — alongside public endpoints for the option ladder and funding rate history. For information about liquidation and borrower status events, see the Private WebSocket Data for Borrowers PDF.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bullish-exchange/api-docs/llms.txt
Use this file to discover all available pages before exploring further.
GET /trading-api/v1/derivatives-positions
Returns the current open derivatives positions for the authenticated trading account. TheopenInterest for a market equals the total quantity of open long plus open short positions across all accounts.
Authentication: Required.
Query Parameters
ID of the trading account. Mandatory for users with multiple trading accounts.
Filter by market symbol. E.g.
BTC-USDC-PERP.Filter by market type. E.g.
DATED_FUTURE, PERPETUAL, OPTION.Filter by option type:
CALL or PUT.Sort results by market type or option type.
Response Fields (array of DerivativesPositionResponse)
ID of the trading account.
Derivatives market symbol. E.g.
BTC-USDC-PERP.Position side:
BUY (long) or SELL (short).Current position size in base asset units.
Notional value of the current position, calculated using the mark price.
Notional value using the average entry price.
Sum of all mark-to-market profits and losses plus realized trading P&L since the last settlement.
P&L from net price change since the last time the absolute quantity decreased. Updated with every mark-to-market; not updated during settlement or position size increases.
Sum of all funding payments received since the position was opened. Updated every time funding is paid.
Total profits realized since the trading account first opened this position. Updated only when the position’s absolute size is reduced.
Settlement asset symbol. E.g.
USDC.ISO 8601 datetime when the position was created.
Millisecond EPOCH timestamp when the position was created.
ISO 8601 datetime when the position was last updated.
Millisecond EPOCH timestamp when the position was last updated.
Example Request
Example Response
GET /trading-api/v1/history/derivatives-settlement
Returns paginated historical derivatives settlement records. Each entry represents a periodic settlement event (typically hourly). Only the last 90 days of data are available.Authentication: Required.
Query Parameters
ID of the trading account. Mandatory for users with multiple trading accounts.
Filter by market symbol. E.g.
BTC-USDC-PERP.Start of the settlement datetime window (ISO 8601 with millisecond).
End of the settlement datetime window (ISO 8601 with millisecond).
Page size. One of:
5, 25, 50, 100. Defaults to 25.Response Fields (array of DerivativesSettlementResponse)
ID of the trading account.
Market symbol. E.g.
BTC-USDC-PERP.Position side at settlement:
BUY or SELL.Position size at the time of settlement.
Change in position size due to trading activity since the last settlement.
Mark-to-market profit/loss accumulated since the last settlement.
Funding profit/loss accumulated since the last settlement (perpetuals only).
Settlement event type. E.g.
"settlementUpdate".Mark price at which the position was settled for this cycle.
Index price at which the position was settled for this cycle.
Funding rate applied at this settlement cycle (perpetuals only). E.g.
"10.0".ISO 8601 datetime of the settlement event.
Millisecond EPOCH timestamp of the settlement event.
Example Request
Example Response
GET /trading-api/v1/history/markets//funding-rate
Returns the historical hourly funding rate for a perpetual market. Only the last 90 days of data are available.Authentication: Not required.
Path Parameters
Perpetual market symbol. E.g.
BTC-USDC-PERP.Query Parameters
Start of the datetime range (ISO 8601 with millisecond).
End of the datetime range (ISO 8601 with millisecond).
Page size. One of:
5, 25, 50, 100. Defaults to 25.Response Fields (array)
The funding rate for this hour. E.g.
"0.0001".ISO 8601 datetime of the last funding rate update for the hour. E.g.
"2024-09-16T12:59:59.000Z".Example Request
Example Response
GET /trading-api/v1/history/borrow-interest
Returns paginated historical hourly borrow interest records for a specific asset. Each entry represents the hourly borrow quantities. The interest charged can be derived as:interest = totalBorrowedQuantity - borrowedQuantity. Only the last 90 days of data are available.
Authentication: Required. Rate limited: Yes.
Query Parameters
Asset symbol to query borrow interest for. E.g.
BTC.Start of the datetime range (ISO 8601 with millisecond).
End of the datetime range (ISO 8601 with millisecond).
ID of the trading account. Mandatory for users with multiple trading accounts.
Page size. One of:
5, 25, 50, 100. Defaults to 25.Response Fields (array of BorrowInterest)
Unique asset ID.
Asset symbol. E.g.
BTC.The principal borrowed quantity during the hour.
Sum of the principal borrowed quantity plus interest charged during the hour.
interest = totalBorrowedQuantity - borrowedQuantity.ISO 8601 datetime for the hour in which borrowing occurred or interest was charged. E.g.
"2020-08-21T08:00:00.000Z".Millisecond EPOCH timestamp for the hour. E.g.
"1621490985000".Example Request
Example Response
GET /trading-api/v1/option-ladder
Returns available options contracts with pricing, implied volatilities, and Greeks (delta, gamma, theta, vega). Useful for scanning the full option surface for a given underlying asset.Authentication: Not required.
Query Parameters
Base asset symbol. E.g.
BTC.Filter by option expiry date.
Filter by option type:
CALL or PUT.Sort results by option type or expiry datetime.
Example Request
GET /trading-api/v1/option-ladder/
Returns the option ladder entry for a specific option market, including pricing metrics and Greeks.Authentication: Not required.
Path Parameters
Option market symbol. Only option markets are supported. E.g.
BTC-USDC-20241004-70000-C.