Get Futures Basis
Retrieves historical futures basis data showing the spot-futures price differential. Positive basis indicates futures trading at premium, negative indicates discount. Ideal for: cash-and-carry arbitrage, market sentiment analysis, identifying funding opportunities.
Catalog action Blockchain Data
Retrieves historical futures basis data showing the spot-futures price differential. Positive basis indicates futures trading at premium, negative indicates discount. Ideal for: cash-and-carry arbitrage, market sentiment analysis, identifying funding opportunities.
At a Glance
| Field | Value |
|---|---|
| Action ID | coinglass-indicator-get-futures-basis |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | coinglass, indicator, futures, basis, arbitrage, read |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
exchange | string | Yes | Futures exchange name (e.g., Binance, OKX, Bybit). |
symbol | string | Yes | Trading pair symbol (e.g., BTCUSDT, ETHUSDT). |
interval | string | Yes | Time interval for data aggregation. |
limit | number | No | Maximum number of results (default: 1000). |
startTime | number | No | Start timestamp in milliseconds. |
endTime | number | No | End timestamp in milliseconds. |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
exchange | string | Yes | Exchange name. |
symbol | string | Yes | Trading pair symbol. |
interval | string | Yes | Time interval. |
dataPoints | array | Yes | Array of futures basis data points. |
Examples
json{ "type": "coinglass-indicator-get-futures-basis", "payload": { "exchange": "example-exchange", "symbol": "ETH", "interval": "1m" }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/coinglass-indicator-get-futures-basis/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "exchange": "example-exchange", "symbol": "ETH", "interval": "1m" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
