Call it
curl https://api.peume.com/v1/call/polymarket-trades \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "trade",
"sort_by": "timestamp",
"limit": 50,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/polymarket-trades", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"type": "trade",
"sort_by": "timestamp",
"limit": 50,
"offset": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/polymarket-trades",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"type": "trade",
"sort_by": "timestamp",
"limit": 50,
"offset": 0
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: polymarket-trades.
Parameters
condition_idstringMarket condition identifier. Example: 0x6fefc0438c7598b23531457c8c60541990d0786bd4bd9dfc3eabc8d95c291092.
addressstringWallet address — returns trades where the address is maker or taker.
typestringFilter by activity type: trade (default, spot trades only), redemption (splits/merges/redemptions), or all (all activity). Use redemption or all to get non-trade wallet activity; address is required for these types. Defaults to "trade".
trade · redemption · all
Example: trade
outcome_labelstringFilter by outcome label: Yes or No.
Yes · No
min_amountnumberMinimum trade amount in USD.
fromstringStart of time range. Accepts Unix seconds (1704067200) or date string (2024-01-01).
tostringEnd of time range. Accepts Unix seconds (1706745600) or date string (2024-02-01).
sort_bystringField to sort results by. Example: timestamp. Defaults to "timestamp".
timestamp · notional_volume_usd
Example: timestamp
limitintegerResults per page. Example: 50. Defaults to 50.
Example: 50
offsetintegerPagination offset. Example: 0. Defaults to 0.
Example: 0
