Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.
Query Parameters
The prediction market platform (e.g., polymarket).
The platform-specific market identifier.
Filter trades to a specific outcome. If omitted, returns trades for all outcomes.
Start time. Accepts Unix timestamp in milliseconds (e.g., 1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z).
End time. Accepts Unix timestamp in milliseconds (e.g., 1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z).
Minimum trade value in USD. Filters out trades below this threshold.
Number of trades to return (1 to 500).
Pagination offset. Ignored when cursor is provided.
Cursor for keyset pagination. Use the nextCursor value from a previous response to fetch the next page. Takes precedence over offset.
Sort direction for trades by date. Possible values: asc, desc.
Response
Array of trade records. Execution price (0 to 1).
Trade timestamp in milliseconds.
Trader proxy wallet address. Available for backfilled trades, null for real-time trades.
Transaction hash. Available for backfilled trades, null for real-time trades.
Pagination metadata. Current page number (1-based).
Number of entries returned in this page.
Total number of matching trades.
Whether more trades are available.
Cursor for the next page. Null when no more results. Use this value as the cursor query parameter to fetch the next page.
Server hostname that handled the request.
Request processing time in milliseconds.
Usage Examples
curl -X GET "https://api.mobula.io/api/2/pm/market/trades?platform=polymarket&marketId=0x1234...&limit=20&minAmountUSD=100"
# First page
curl -X GET "https://api.mobula.io/api/2/pm/market/trades?platform=polymarket&marketId=0x1234...&limit=50"
# Next page (use nextCursor from previous response)
curl -X GET "https://api.mobula.io/api/2/pm/market/trades?platform=polymarket&marketId=0x1234...&limit=50&cursor=1709913600000:trade-001"
With ISO date range
curl -X GET "https://api.mobula.io/api/2/pm/market/trades?platform=polymarket&marketId=0x1234...&from=2024-03-01T00:00:00Z&to=2024-03-08T00:00:00Z&sortOrder=asc"
Example Response
{
"data" : [
{
"id" : "trade-001" ,
"marketId" : "0x1234..." ,
"outcomeId" : "71321..." ,
"platform" : "polymarket" ,
"type" : "buy" ,
"priceUSD" : 0.35 ,
"sizeToken" : 1000 ,
"amountUSD" : 350 ,
"date" : 1709913600000 ,
"swapRecipient" : "0xabc..." ,
"transactionHash" : "0xdef..."
}
],
"pagination" : {
"page" : 1 ,
"offset" : 0 ,
"limit" : 50 ,
"pageEntries" : 1 ,
"totalCount" : 1 ,
"hasMore" : false ,
"nextCursor" : null
},
"hostname" : "node-xyz" ,
"took" : 42
}