Collect a live window
ws_collectSubscribe to live market data for specified symbols, collect matching ticks up to a duration or maximum count, then return them. Ideal for quick samples of real-time feeds.
Instructions
One-shot: subscribe, wait up to duration_ms collecting matching ticks (or until max reached), then return them. Subscriptions this call newly creates are removed afterwards. Use this for a quick 'sample N seconds of live data' request.
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": {
"product": "<product>",
"symbols": "<symbols>"
},
"name": "ws_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Stop early after this many frames. Default 50. | |
| product | Yes | Channel: cex (crypto), dex (DEX trades), fx (forex), us (US stocks), tvl (DEX pool TVL). | |
| symbols | Yes | Symbols to (un)subscribe, e.g. ['BTCUSD','ETHUSD']. | |
| duration_ms | No | How long to collect, in ms. Default 3000, max 15000. |