Token
Token price and orderbook operations
Get the latest trade price and details for a specific token
Authorizations
apikeystringRequired
API key for authentication
Query parameters
token_idstringRequired
Token ID
Responses
200
Successful response
application/json
codeintegerOptionalExample:
Response code (0 for success)
0msgstringOptionalExample:
Response message
success400
Bad request - invalid parameters
application/json
get/token/latest-price
GET /openapi/token/latest-price?token_id=text HTTP/1.1
apikey: YOUR_API_KEY
Accept: */*
{
"code": 0,
"msg": "success",
"result": {
"tokenId": "text",
"price": "text",
"side": "text",
"size": "text",
"timestamp": 1
}
}Get the orderbook (market depth) for a specific token
Authorizations
apikeystringRequired
API key for authentication
Query parameters
token_idstringRequired
Token ID
Responses
200
Successful response
application/json
codeintegerOptionalExample:
Response code (0 for success)
0msgstringOptionalExample:
Response message
success400
Bad request - invalid parameters
application/json
get/token/orderbook
GET /openapi/token/orderbook?token_id=text HTTP/1.1
apikey: YOUR_API_KEY
Accept: */*
{
"code": 0,
"msg": "success",
"result": {
"market": "text",
"tokenId": "text",
"timestamp": 1,
"bids": [
{
"price": "text",
"size": "text"
}
],
"asks": [
{
"price": "text",
"size": "text"
}
]
}
}Get historical price data for a specific token (Polymarket-compatible format)
Authorizations
apikeystringRequired
API key for authentication
Query parameters
token_idstringRequired
Token ID
intervalstring · enumOptionalDefault:
Price data interval: 1m, 1h, 1d, 1w, max
1dPossible values: start_atinteger · int64Optional
Start timestamp in Unix seconds
end_atinteger · int64Optional
End timestamp in Unix seconds
Responses
200
Successful response
application/json
codeintegerOptionalExample:
Response code (0 for success)
0msgstringOptionalExample:
Response message
success400
Bad request - invalid parameters
application/json
get/token/price-history
GET /openapi/token/price-history?token_id=text HTTP/1.1
apikey: YOUR_API_KEY
Accept: */*
{
"code": 0,
"msg": "success",
"result": {
"history": [
{
"t": 1,
"p": "text"
}
]
}
}Last updated