REST API

Get prediction market positions with P&L

GET
/prediction/positions

Authorization

bearerAuth
AuthorizationBearer <token>

API key passed as Bearer token in Authorization header

In: header

Query Parameters

marketId?string

Response Body

application/json

curl -X GET "https://loading/api/v1/prediction/positions"
{
  "success": true,
  "data": [
    {
      "marketId": "string",
      "question": "string",
      "tokenId": "string",
      "outcome": "string",
      "size": 0,
      "avgPrice": 0,
      "currentPrice": 0,
      "unrealizedPnl": 0,
      "realizedPnl": 0
    }
  ],
  "meta": {
    "timestamp": 0,
    "remaining": 0
  }
}