history
Get Historical Hourly Derivatives Settlement
Get historical derivatives settlement.
- supports pagination
- filtering on settlementDatetime requires additional keywords, see filtering support
- On a single query request you can retrieve data over a 7 day window, with the data available for the last 90 days. By default the results are returned and sorted in descending order if specific settlement datetime is not specified.
get/v1/history/derivatives-settlement
Request
- Base URLhttps://api.exchange.bullish.com/trading-api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
tradingAccountIdstring
unique trading account ID
Example:111000000000001
Id of the trading account. tradingAccountId is mandatory in the query for users with multiple trading accounts. For users with a single trading account, it can be automatically retrieved from the login.
symbolstring
market symbol. E.g. BTC-USDC-PERP for PERPETUAL and BTC-USDC-20241201 for DATED FUTURE markets.
Example:BTC-USDC-20241201
settlementDatetime[gte]string date-time required
ISO 8601 with millisecond as string
Example:2025-05-20T01:01:01.000Z
start timestamp of window, ISO 8601 with millisecond as string
settlementDatetime[lte]string date-time required
ISO 8601 with millisecond as string
Example:2025-05-20T01:01:01.000Z
end timestamp of window, ISO 8601 with millisecond as string
Response
OK
Example response
[
{
"tradingAccountId": "111000000000001",
"symbol": "BTC-USDC-20241201",
"side": "BUY",
"settlementQuantity": "1.00000000",
"deltaTradingQuantity": "1.00000000",
"mtmPnl": "1.0000",
"fundingPnl": "1.0000",
"eventType": "settlementUpdate",
"settlementMarkPrice": "1.0000",
"settlementIndexPrice": "1.0000",
"settlementFundingRate": "10.0",
"settlementDatetime": "2025-05-20T01:01:01.000Z",
"settlementTimestamp": "1621490985000"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.