Pricing
Get Token Price for a Single Token Address
Returns all transactions involving a given address.
https://api.treehouse.finance/v1/pricing/tkn_price
?address=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
&chain=eth
&interval=1D
&start_time=1668130850
&end_time=1673314850
&access_key=yourApiKey
Token Price
GET
https://api.treehouse.finance/v1/pricing/tkn_price
Query Parameters
{
"status": "OK",
"data": [
{
"chain": string,
"interval": string,
"start_time": integer,
"end_time": integer,
"internal_id": string,
"token_address": string,
"token_symbol": string,
"token_price": [
{
"1inch": {
{
"open": float,
"high": float,
"low": float,
"close": float
}
},
"coingecko":{
{
"open": float,
"high": float,
"low": float,
"close": float
}
},
"coinmarketcap":{
{
"open": float,
"high": float,
"low": float,
"close": float
}
},
"time": string
},
],
}
],
"message": "Get token price (ID: requestId) succeed."
}
Last updated