Polymarket
Orderbook
Gets past order book snapshots for a specific token_id during a chosen time range.
POST/v2/semantic/retrieve/parameterized
Query Parameters
token_idstring
Token ID of the associated Market.
Example:
"69435545313357346912686520645149775930858973121193492847015767460308803044235"start_timestring
Filter after this timestamp
Example:
"1769902905868"end_timestring
Filter before this timestamp
Example:
"1770034843377"Response Fields
| Field | Type | Description |
|---|---|---|
timestamp | String (ISO 8601) | Timestamp representing the time of the data |
token_id | String | Blockchain token identifier for the specific market outcome |
asks | String (List) | asks data |
bids | String (List) | bids data |
Orderbook
curl --request POST \
--url https://narrative.agent.heisenberg.so/api/v2/semantic/retrieve/parameterized \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": 572,
"params": {
"token_id": "69435545313357346912686520645149775930858973121193492847015767460308803044235",
"start_time": "1769902905868",
"end_time": "1770034843377"
},
"pagination": {
"limit": 10,
"offset": 0
},
"formatter_config": {
"format_type": "raw"
}
}'200Example response
{
"timestamp": "",
"params": {
"end_time": "1770034843377",
"start_time": "1769902905868",
"token_id": "69435545313357346912686520645149775930858973121193492847015767460308803044235"
},
"pagination": {
"limit": 200,
"offset": 0,
"has_more": true
},
"data": {
"results": [
{
"asks": "[{\"size\": \"60\", \"price\": \"0.99\"}, {\"size\": \"723.17\", \"price\": \"0.93\"}, {\"size\": \"12\", \"price\": \"0.91\"}]",
"bids": "[{\"size\": \"60\", \"price\": \"0.01\"}, {\"size\": \"25\", \"price\": \"0.02\"}, {\"size\": \"5.63\", \"price\": \"0.03\"}, {\"size\": \"12\", \"price\": \"0.09\"}, {\"size\": \"12\", \"price\": \"0.19\"}, {\"size\": \"200\", \"price\": \"0.28\"}, {\"size\": \"29.48\", \"price\": \"0.29\"}]",
"timestamp": "2026-02-02T12:01:20.885Z",
"token_id": "69435545313357346912686520645149775930858973121193492847015767460308803044235"
},
{
"asks": "[{\"size\": \"60\", \"price\": \"0.99\"}, {\"size\": \"5\", \"price\": \"0.98\"}, {\"size\": \"723.17\", \"price\": \"0.93\"}, {\"size\": \"12\", \"price\": \"0.91\"}]",
"bids": "[{\"size\": \"60\", \"price\": \"0.01\"}, {\"size\": \"30\", \"price\": \"0.02\"}, {\"size\": \"5.63\", \"price\": \"0.03\"}, {\"size\": \"12\", \"price\": \"0.09\"}, {\"size\": \"12\", \"price\": \"0.19\"}, {\"size\": \"200\", \"price\": \"0.28\"}, {\"size\": \"29.48\", \"price\": \"0.29\"}]",
"timestamp": "2026-02-02T10:29:08.324Z",
"token_id": "69435545313357346912686520645149775930858973121193492847015767460308803044235"
}
]
}
}