REST API
Get markets closing soon
Authorization
bearerAuth AuthorizationBearer <token>
API key passed as Bearer token in Authorization header
In: header
Query Parameters
hoursUntilClose?number
Default
24Range
1 <= value <= 720limit?number
Default
10Range
1 <= value <= 50closed?string
Default
"false"Value in
"true" | "false"order?string
Value in
"volumeNum" | "volume24hr" | "liquidityNum"ascending?string
Value in
"true" | "false"offset?number
Default
0Range
0 <= valueResponse 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
}
}
}