Skip to main content
GET
/
api
/
{exchange}
/
fetchTrades
curl --request GET \
  --url https://api.pmxt.dev/api/{exchange}/fetchTrades \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "error": {
    "message": "<string>"
  },
  "data": [
    {
      "id": "<string>",
      "timestamp": 123,
      "price": 123,
      "amount": 123,
      "side": "buy",
      "outcomeId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.

Path Parameters

exchange
enum<string>
required

The prediction market exchange to target.

Available options:
polymarket,
kalshi,
kalshi-demo,
limitless,
probable,
baozi,
myriad,
opinion,
metaculus,
smarkets,
polymarket_us

Query Parameters

id
string
required
start
string<date-time>

Start of the time range

end
string<date-time>

End of the time range

limit
number

Maximum number of results to return

Response

200 - application/json

Fetch Trades response

success
boolean
Example:

true

error
object
data
object[]