Skip to main content
GET
/
api
/
{exchange}
/
fetchPositions
curl --request GET \
  --url https://api.pmxt.dev/api/{exchange}/fetchPositions \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "error": {
    "message": "<string>"
  },
  "data": [
    {
      "marketId": "<string>",
      "outcomeId": "<string>",
      "outcomeLabel": "<string>",
      "size": 123,
      "entryPrice": 123,
      "currentPrice": 123,
      "unrealizedPnL": 123,
      "realizedPnL": 123
    }
  ]
}

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

address
string

Response

200 - application/json

Fetch Positions response

success
boolean
Example:

true

error
object
data
object[]