Skip to main content
GET
/
v2
/
polymarket
/
trades
Get Trades
curl --request GET \
  --url https://api.predexon.com/v2/polymarket/trades \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.predexon.com/v2/polymarket/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.predexon.com/v2/polymarket/trades', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.predexon.com/v2/polymarket/trades",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-api-key: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

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

func main() {

	url := "https://api.predexon.com/v2/polymarket/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))

}
HttpResponse<String> response = Unirest.get("https://api.predexon.com/v2/polymarket/trades")
  .header("x-api-key", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.predexon.com/v2/polymarket/trades")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "trades": [
    {
      "token_id": "<string>",
      "market_slug": "<string>",
      "condition_id": "<string>",
      "shares": 123,
      "shares_normalized": 123,
      "price": 123,
      "amount_usd": 123,
      "tx_hash": "<string>",
      "title": "<string>",
      "timestamp": 123,
      "order_hash": "<string>",
      "user": "<string>",
      "taker": "<string>",
      "is_yes_side": true,
      "outcome_label": "",
      "fee_usd": 0,
      "exchange_version": 1,
      "builder": "",
      "metadata": ""
    }
  ],
  "pagination": {
    "limit": 123,
    "count": 123,
    "has_more": true,
    "pagination_key": "<string>"
  }
}
{
  "error": "<string>",
  "message": "<string>"
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}
{
  "error": "<string>",
  "message": "<string>"
}
Query historical trade data with flexible filtering by market, token, wallet, and time range. All filters are optional - omit them to browse the global trade feed.
All trades mode (no filters) only supports order=desc (newest first). Using order=asc without a market or wallet filter returns HTTP 400.
Free & Unlimited. This endpoint does not count toward your monthly usage limits on any plan.

V2 fields

Every trade row now carries Polymarket exchange version metadata:
  • exchange_version - 1 (V1 CTF/NegRiskCTF) or 2 (V2). Defaults to 1.
  • builder - V2 builder attribution tag (bytes32 hex). Empty for V1 fills or V2 fills with no builder.
  • metadata - V2 opaque metadata tag (bytes32 hex). Empty for V1 fills or V2 fills with no metadata.
Use the builder query parameter to filter to fills attributed to a specific builder tag.

Multi-wallet filtering

The wallet parameter accepts a single address or a comma-separated list of up to 50 addresses:
GET /v2/polymarket/trades?wallet=0xabc...,0xdef...,0x123...&limit=100
Returns one merged feed of all listed wallets’ trades, time-ordered, with standard cursor pagination — designed for tracking a list of followed wallets. Address order doesn’t matter and duplicates are ignored: the same list in any order returns identical results and pagination keys. Trades match on the maker side, same as the single-wallet filter, and the list combines with all other parameters.

Point lookups by hash

Two optional parameters (each 0x + 64 hex chars) support full-history point lookups, back to October 2022:
ParameterReturns
tx_hashall fills executed in that transaction
order_hashall fills of that order (an order can fill across multiple transactions)
Usable standalone or combined with each other and with any wallet/market/time filters. Invalid hash format returns HTTP 400.
ConstraintValue
limit1–500 (default 100)
walletup to 50 comma-separated addresses (>50 or any invalid address returns HTTP 400, identifying which one)

Authorizations

x-api-key
string
header
required

Query Parameters

market_slug
string | null

Filter by market slug

condition_id
string | null

Filter by condition ID

token_id
string | null

Filter by token ID

start_time
integer | null

Unix timestamp (seconds) for start

end_time
integer | null

Unix timestamp (seconds) for end

min_total
number | null

Minimum trade amount in USD

Required range: x >= 0
limit
integer
default:100

Number of trades to return

Required range: 1 <= x <= 500
wallet
string | null

Filter by wallet address(es) — single address or comma-separated list (max 50)

builder
string | null

Filter by V2 builder attribution tag (bytes32 hex, 0x + 64 hex chars)

order_hash
string | null

Filter by order hash (bytes32 hex, 0x + 64 hex chars)

tx_hash
string | null

Filter by transaction hash (bytes32 hex, 0x + 64 hex chars)

order
enum<string>
default:desc

Sort order: asc or desc

Available options:
asc,
desc
pagination_key
string | null

Cursor for pagination

Response

Successful Response

Trades endpoint response.

trades
Trade · object[]
required
pagination
CursorPagination · object
required

Cursor-based pagination for endpoints that don't support offset.