Skip to main content
POST
/
api
/
polymarket
/
markets
/
trades
/polymarket/markets/trades
curl --request POST \
  --url https://api.anysite.io/api/polymarket/markets/trades \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "market": "<string>",
  "count": 2,
  "timeout": 300,
  "user": "0xd53d94afcb32eb1db663118e5f830b48d83808ee"
}
'
[
  {
    "transaction_hash": "<string>",
    "@type": "@polymarket_trade",
    "condition_id": "<string>",
    "asset_id": "<string>",
    "side": "<string>",
    "price": 123,
    "amount": 123,
    "outcome": "<string>",
    "outcome_index": 123,
    "title": "<string>",
    "alias": "<string>",
    "event_alias": "<string>",
    "image": "<string>",
    "trader": {
      "wallet": "<string>",
      "@type": "@polymarket_trade_trader",
      "name": "<string>",
      "pseudonym": "<string>",
      "bio": "<string>",
      "image": "<string>"
    },
    "traded_at": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
market
string
required

On-chain condition id of the market (0x-prefixed 64-hex)

Pattern: ^0x[0-9a-fA-F]{64}$
Example:

"0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"

count
integer
required

Max number of trades to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
side
enum<string> | null

Only return trades on this side

Available options:
BUY,
SELL
user
string | null

Only return trades made by this trader wallet (0x… address)

Example:

"0xd53d94afcb32eb1db663118e5f830b48d83808ee"

Response

Successful Response

transaction_hash
string
required
@type
string
default:@polymarket_trade
condition_id
string | null
asset_id
string | null
side
string | null
price
number | null
amount
number | null
outcome
string | null
outcome_index
integer | null
title
string | null
alias
string | null
event_alias
string | null
image
string | null
trader
PolymarketTradeTrader · object
traded_at
integer | null