REST API

Get markets closing soon

GET
/prediction/markets/closing-soon

Authorization

bearerAuth
AuthorizationBearer <token>

API key passed as Bearer token in Authorization header

In: header

Query Parameters

hoursUntilClose?number
Default24
Range1 <= value <= 720
limit?number
Default10
Range1 <= value <= 50
closed?string
Default"false"
Value in"true" | "false"
order?string
Value in"volumeNum" | "volume24hr" | "liquidityNum"
ascending?string
Value in"true" | "false"
offset?number
Default0
Range0 <= value

Response Body

application/json

curl -X GET "https://loading/api/v1/prediction/markets/closing-soon"
{
  "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
    }
  }
}