List markets
polytest_list_marketsLists Up/Down markets of one market_type for one coin. Use it to find a market_id before reading snapshots or a price series. Returns market rows, newest first by start time, each with its window, opening and closing spot price, winner, volume, and status. Use status, not winner, to tell whether a market is still running. coin is btc, eth, or sol, and 4hr and 24hr markets exist for btc only. start_time and end_time filter on the market start time. PolyTest loads new markets in batches, and note says so when the newest market is hours old. Costs 1 API request. To continue, call again with offset set to next_offset while stop is "more". stop "tier_window" means the plan does not cover the requested markets. If truncated is true, rows were cut to keep the result small and next_offset points at the first cut row.
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": {
"market_type": "<market_type>"
},
"name": "polytest_list_markets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | No | Coin symbol in lowercase: btc, eth, or sol. 4hr and 24hr markets exist for btc only. | btc |
| limit | No | Rows per page. | |
| offset | No | Rows to skip. Pass next_offset from the previous page. | |
| end_time | No | ISO 8601. Keeps markets that start at or before this time. No zone means UTC. | |
| start_time | No | ISO 8601. Keeps markets that start at or after this time. No zone means UTC. | |
| market_type | Yes | Window length. One of 5m, 15m, 1hr, 4hr, 24hr. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| stop | Yes | ||
| count | Yes | Rows in this result. | |
| markets | Yes | ||
| truncated | Yes | True when rows were cut to keep the result small. | |
| next_offset | Yes | Offset of the next page when stop is more. |