获取特定时间戳的代币价格
cURL
curl --request GET \ --url https://api.chainstream.io/v1/token/{chain}/{tokenAddress}/price \ --header 'Authorization: Bearer <token>'
{ "tokenAddress": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN", "priceInUsd": "1000", "priceInNative": "1000", "timestamp": 1754055151000 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
支持网络中列出的区块链名称
sol
bsc
eth
代币地址
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
价格查询时间戳(Unix纪元秒)
1763461274000
代币合约地址
代币美元价格
"1000"
代币原生货币价格(如SOL)
价格时间戳(Unix纪元秒)
1754055151000
此页面对您有帮助吗?