REST API
Get price history
Authorization
bearerAuth AuthorizationBearer <token>
API key passed as Bearer token in Authorization header
In: header
Path Parameters
marketId*string
Length
1 <= lengthQuery Parameters
period?string
Default
"7d"Value in
"1h" | "24h" | "7d" | "30d" | "all"Response Body
application/json
curl -X GET "https://loading/api/v1/prediction/markets/string/history"{
"success": true,
"data": {
"marketId": "string",
"history": [
{
"timestamp": 0,
"price": 0
}
]
},
"meta": {
"timestamp": 0,
"remaining": 0
}
}