get_oi_history
Retrieve hourly open interest snapshots for any Polymarket market using its conditionId, enabling analysis and charting of OI trends over time.
Instructions
Get hourly open interest snapshots for a specific Polymarket market. Use this to chart OI trends over time. The conditionId can be obtained from get_market_open_interest or the main subgraph.
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": {
"conditionId": "<conditionId>"
},
"name": "get_oi_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first | No | Number of hourly snapshots to return (default 168 = 1 week) | |
| conditionId | Yes | The conditionId (hex string) of the market | |
| orderDirection | No | Sort direction by timestamp | desc |