basis
Calculate the difference between spot and perpetual prices for specific assets. Define a time window using symbol pairs to analyze the market basis.
Instructions
Spot against perpetual mark, ASOF-joined onto the nearest prior print.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spot_symbol": "<spot_symbol>",
"perp_symbol": "<perp_symbol>",
"start_ns": "<start_ns>",
"end_ns": "<end_ns>"
},
"name": "basis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_ns | Yes | ||
| start_ns | Yes | ||
| asset_class | No | Which market answers. Inferred from the symbol's source when omitted. | |
| perp_symbol | Yes | ||
| spot_symbol | Yes |