REST API
Get markets by category
Authorization
bearerAuth AuthorizationBearer <token>
API key passed as Bearer token in Authorization header
In: header
Query Parameters
category*string
Length
1 <= lengthlimit?number
Default
10Range
1 <= value <= 50active?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
Default
0Range
0 <= valueResponse 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
}
}
}