Polymarket Trades
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/tradesimport requests
url = "https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"amount_usd": 123,
"block_number": 123,
"block_time": 123,
"condition_id": "<string>",
"evt_index": 123,
"exchange_address": "<string>",
"fee_usd": 123,
"maker_address": "<string>",
"neg_risk": true,
"outcome_label": "<string>",
"outcome_token_id": "<string>",
"price": 123,
"question": "<string>",
"shares": 123,
"taker_address": "<string>",
"tx_hash": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponsePolymarketTrade.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Prediction Market
Polymarket Trades
GET
/
gateway
/
v1
/
prediction-market
/
polymarket
/
trades
Polymarket Trades
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/tradesimport requests
url = "https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/prediction-market/polymarket/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"amount_usd": 123,
"block_number": 123,
"block_time": 123,
"condition_id": "<string>",
"evt_index": 123,
"exchange_address": "<string>",
"fee_usd": 123,
"maker_address": "<string>",
"neg_risk": true,
"outcome_label": "<string>",
"outcome_token_id": "<string>",
"price": 123,
"question": "<string>",
"shares": 123,
"taker_address": "<string>",
"tx_hash": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponsePolymarketTrade.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}