Query real-time token price
Description
Method: HTTPS POST
Encoding: UTF-8
Path: https://api.blockin.ai/v2/quot/token/price
Description: Query real-time token price
Request Header
Content-Type
Y
String
application/json
AccessKey
Y
String
1bdb01c947c54919b64d1fc6794atest
Request Parameters
address_list
Y
List
address_list that need to be queried
address_list content
address
Y
String
Token address
chain_name
N
String
Chain's name, eg:eth/Ethereum,arb/Arbitrum (Default: Ethereum)
Response
Public Response
success
Y
Boolean
Success Boolean
data
Y
List
Response object
error_code
N
String
Error code
error_msg
N
String
Error message
Data Content
address
Y
String
Token address
chain_name
Y
String
Chain's name, eg:eth/Ethereum,arb/Arbitrum (Default: Ethereum)
decimal
Y
Integer
Token price's decimal
price
Y
BigDecimal
Token price
symbol
Y
String
Symbol abbr
update_at
Y
Long
Update time
timestamp
Y
Long
Timestamp
Request Sample
curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" "https://api.blockin.ai/v2/quot/token/price" --data ' { "address_list":[{ "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "chain_name":"Ethereum" }], "user_no":"80230512587" }'
Successful Response Sample
Last updated