Price spread of two legs
spread_chartCandles of (A − B) / B between any two instruments (book mids where stored, else marks). Free: 1 h candles and longer over up to 7 days; Pro: 1 m and up, up to 365 days.
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": {
"leg_a": "<leg_a>",
"leg_b": "<leg_b>"
},
"name": "spread_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| leg_a | Yes | instrument id, e.g. binance:um:BTCUSDT | |
| leg_b | Yes | instrument id | |
| candle | No | 1h | |
| executable | No |