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.
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. |