Polymarket Price History
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/pricesimport requests
url = "https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"timestamp": 123,
"side_a": {
"label": "<string>",
"price": 123,
"token_id": "<string>"
},
"side_b": {
"label": "<string>",
"price": 123,
"token_id": "<string>"
}
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponsePolymarketPricePoint.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Prediction Market
Polymarket Price History
GET
/
gateway
/
v1
/
prediction-market
/
polymarket
/
prices
Polymarket Price History
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/pricesimport requests
url = "https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"timestamp": 123,
"side_a": {
"label": "<string>",
"price": 123,
"token_id": "<string>"
},
"side_b": {
"label": "<string>",
"price": 123,
"token_id": "<string>"
}
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponsePolymarketPricePoint.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}