getTokenPrices
GET https://api.covalenthq.com/v1/pricing/historical_by_addresses_v2/:chainName/:quoteCurrency/:contractAddress/?from=&to=&prices-at-asc=
Returns: TokenPricesResponse
{
"contract_decimals" : "{{INTEGER}}",
"contract_name" : "{{STRING}}",
"contract_ticker_symbol" : "{{STRING}}",
"contract_address" : "{{STRING}}",
"supports_erc" : [ "{{STRING}}" ],
"logo_url" : "{{STRING}}",
"update_at" : "{{DATETIME}}",
"quote_currency" : "{{STRING}}",
"prices" : [ {
"contract_metadata" : {
"contract_decimals" : "{{INTEGER}}",
"contract_name" : "{{STRING}}",
"contract_ticker_symbol" : "{{STRING}}",
"contract_address" : "{{STRING}}",
"supports_erc" : [ "{{STRING}}" ],
"logo_url" : "{{STRING}}"
},
"date" : "{{DATETIME}}",
"price" : "{{DOUBLE}}",
"pretty_price" : "{{STRING}}"
} ],
"items" : [ "{{Price}}" ]
}
Request Params
Key | Datatype | Required | Description |
---|
from | null | | |
to | null | | |
prices-at-asc | null | | |
Key | Datatype | Required | Description |
---|
Content-Type | string | | |