Skip to main content
GET
/
2
/
pm
/
market
/
trades
Get prediction market trades
curl --request GET \
  --url https://demo-api.mobula.io/api/2/pm/market/trades
{
  "data": [
    {
      "id": "<string>",
      "marketId": "<string>",
      "outcomeId": "<string>",
      "platform": "<string>",
      "type": "buy",
      "priceUSD": 123,
      "sizeToken": 123,
      "amountUSD": 123,
      "date": 123,
      "swapRecipient": "<string>",
      "transactionHash": "<string>"
    }
  ],
  "pagination": {
    "page": 123,
    "offset": 123,
    "limit": 123,
    "pageEntries": 123,
    "totalCount": 123,
    "hasMore": true,
    "nextCursor": "<string>"
  },
  "hostname": "<string>",
  "took": 123
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Query Parameters

platform
string
required
marketId
string
required
outcomeId
string
from

Start time (Unix ms timestamp or ISO 8601 string)

to

End time (Unix ms timestamp or ISO 8601 string)

minAmountUSD
number
default:0
limit
number
default:50
Required range: 1 <= x <= 500
offset
number
default:0

Pagination offset. Ignored when cursor is provided.

Required range: x >= 0
cursor
string

Cursor for keyset pagination. Use nextCursor from previous response.

sortOrder
enum<string>
default:desc

Sort direction for trades by date.

Available options:
asc,
desc

Response

200 - application/json

Trade history

data
object[]
pagination
object
hostname
string
took
number