curl --request GET \
--url https://api.example.com/v1/markets{
"success": true,
"data": [
{
"id": "<string>",
"event_id": "<string>",
"platform": "<string>",
"token_id": "<string>",
"ticker": "<string>",
"outcome": "<string>",
"price": 123,
"best_bid": 123,
"best_ask": 123,
"spread": 123,
"volume": 123,
"volume_24h": 123,
"liquidity": 123,
"last_updated": "<string>"
}
]
}Fetch individual prediction markets
curl --request GET \
--url https://api.example.com/v1/markets{
"success": true,
"data": [
{
"id": "<string>",
"event_id": "<string>",
"platform": "<string>",
"token_id": "<string>",
"ticker": "<string>",
"outcome": "<string>",
"price": 123,
"best_bid": 123,
"best_ask": 123,
"spread": 123,
"volume": 123,
"volume_24h": 123,
"liquidity": 123,
"last_updated": "<string>"
}
]
}GET https://api.matchr.xyz/v1/markets
polymarket, kalshi, or allyes, no, or allcurl -X GET "https://api.matchr.xyz/v1/markets?event_id=evt_123&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"
Show Market Object
{
"success": true,
"data": [
{
"id": "mkt_yes123",
"event_id": "evt_123abc",
"platform": "polymarket",
"token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
"outcome": "Yes",
"price": 0.52,
"best_bid": 0.51,
"best_ask": 0.53,
"spread": 0.02,
"volume": 8500000,
"volume_24h": 250000,
"liquidity": 150000,
"last_updated": "2024-10-15T14:30:00Z"
},
{
"id": "mkt_no123",
"event_id": "evt_123abc",
"platform": "polymarket",
"token_id": "48331043336612883890938759509493159234755048973500640163166885851047098274915",
"outcome": "No",
"price": 0.48,
"best_bid": 0.47,
"best_ask": 0.49,
"spread": 0.02,
"volume": 7500000,
"volume_24h": 200000,
"liquidity": 120000,
"last_updated": "2024-10-15T14:30:00Z"
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 2
}
}
GET https://api.matchr.xyz/v1/markets/{market_id}
curl -X GET "https://api.matchr.xyz/v1/markets/mkt_yes123" \
-H "Authorization: Bearer YOUR_API_KEY"
GET https://api.matchr.xyz/v1/markets/{market_id}/orderbook
{
"success": true,
"data": {
"market_id": "mkt_yes123",
"timestamp": "2024-10-15T14:30:00Z",
"bids": [
{ "price": 0.51, "size": 5000 },
{ "price": 0.50, "size": 12000 },
{ "price": 0.49, "size": 8000 }
],
"asks": [
{ "price": 0.53, "size": 4000 },
{ "price": 0.54, "size": 9000 },
{ "price": 0.55, "size": 15000 }
]
}
}
| Code | Description |
|---|---|
400 | Invalid query parameters |
401 | Missing or invalid API key |
404 | Market not found |
429 | Rate limit exceeded |
500 | Server error |