Skip to main content
GET
/
trades
Get trades for a market
curl --request GET \
  --url https://api-v2.polyrouter.io/trades \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api-v2.polyrouter.io/trades"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api-v2.polyrouter.io/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api-v2.polyrouter.io/trades"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
{
  "trades": [
    {
      "trade_id": "0x123abc...",
      "market_id": "524153",
      "platform": "polymarket",
      "side": "buy",
      "price": 0.65,
      "size": 100,
      "timestamp": 1704067200,
      "outcome": "Yes",
      "taker": true,
      "transaction_hash": "0x456def...",
      "user": {
        "name": "trader123",
        "pseudonym": "Anonymous Trader",
        "profile_image": "<string>"
      },
      "metadata": {}
    }
  ],
  "pagination": {
    "total": 50,
    "limit": 50,
    "has_more": true,
    "next_cursor": "WzMsW1swLDEsM11dXQ"
  },
  "meta": {
    "request_time": 150,
    "market_id": "524153",
    "platform": "polymarket",
    "data_freshness": "2025-01-01T00:00:00.000Z"
  }
}
{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Query Parameters

market_id
string
required

Market ID to fetch trades for

Example:

"524153"

limit
string

Number of trades to return (max 1000)

Example:

"100"

cursor
string

Pagination cursor from previous response

takerOnly
enum<string>

Filter to taker-only trades (Polymarket only)

Available options:
true,
false
Example:

"true"

Response

List of trades

trades
object[]
required
pagination
object
required
meta
object
required