List Trades
Retrieve trade history for all markets or a specific market.
GET
/api/trades
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| market | integer | optional | Filter trades by market ID |
| page | integer | optional | Page number |
| limit | integer | optional | Items per page |
Response
Response
200 OK
{
"success": true,
"data": [
{
"id": 5421,
"market_id": 142,
"wallet": "0x1234...abcd",
"side": "YES",
"amount": 100.00,
"price": 0.62,
"shares": 161.29,
"timestamp": "2026-02-24T14:30:00.000Z",
"tx_hash": "0xabc..."
}
],
"total": 1240
}
Example
# All recent trades
curl https://oddsforge.org/api/trades
# Trades for a specific market
curl https://oddsforge.org/api/trades?market=142
OddsForge