Polymarket OHLCV
polymarket_ohlcvHistorical OHLCV candles for ONE Polymarket outcome token, from the recorded L2 tape. token_id is the ERC-1155 outcome token id — a market's condition_id will NOT work here; read the token ids off clob_token_ids from polymarket_market_detail. Prices are probabilities in [0, 1]. Returns bars OLDEST first as {ts (epoch ms, UTC), open, high, low, close, volume, trades}. There is no cursor, so a window wider than limit is truncated at the OLD end — raise from to reach the recent end. With to and no from, limit keeps the bars nearest to (to=X, limit=1 is the last bar at or before X).
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": {
"token_id": "<token_id>",
"interval": "<interval>"
},
"name": "polymarket_ohlcv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Epoch MILLISECONDS, INCLUSIVE upper bound. Omit for no upper bound. | |
| from | No | Epoch MILLISECONDS, inclusive lower bound. Omit for no lower bound. | |
| limit | No | Max candles (default 500, hard max 1000). | |
| interval | Yes | Candle width. Required. | |
| token_id | Yes | ERC-1155 outcome token id. Required. |