REST API

Get markets by category

GET
/prediction/markets/category

Authorization

bearerAuth
AuthorizationBearer <token>

API key passed as Bearer token in Authorization header

In: header

Query Parameters

category*string
Length1 <= length
limit?number
Default10
Range1 <= value <= 50
active?string
Default"true"
Value in"true" | "false"
archived?string
Default"false"
Value in"true" | "false"
closed?string
Default"false"
Value in"true" | "false"
order?string
Default"volume24hr"
Value in"volume24hr" | "volume" | "liquidity" | "startDate" | "endDate" | "createdAt" | "competitive" | "commentCount"
ascending?string
Default"false"
Value in"true" | "false"
offset?number
Default0
Range0 <= value

Response Body

application/json

curl -X GET "https://loading/api/v1/prediction/markets/category?category=string"
{
  "success": true,
  "data": [
    {
      "id": "string",
      "conditionId": "string",
      "question": "string",
      "slug": "string",
      "outcomes": [
        "string"
      ],
      "outcomePrices": [
        0
      ],
      "tokens": [
        {
          "tokenId": "string",
          "outcome": "string",
          "price": 0,
          "winner": true
        }
      ],
      "volume": 0,
      "liquidity": 0,
      "endDate": "string",
      "category": "string",
      "status": "active",
      "negRisk": true
    }
  ],
  "meta": {
    "timestamp": 0,
    "remaining": 0,
    "pagination": {
      "total": 0,
      "offset": 0,
      "limit": 0,
      "hasMore": true
    }
  }
}