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

outcomeId
string

filter to specific outcome/ticker

marketId
string

filter to specific market

since
string<date-time>

Only return records after this date

until
string<date-time>

Only return records before this date

limit
number

Maximum number of results to return

cursor
string

for Kalshi cursor pagination

Response

200 - application/json

Fetch My Trades response

success
boolean
Example:

true

error
object
data
object[]