Assets
Endpoint
GET /api/v1/assets
Description
This endpoint returns the USD price for a given token or a comma-separated list of asset IDs. The asset_ids
parameter is required and should be a string in the format <TOKEN_CONTRACT_ADDRESS>:<NETWORK_ID>
. The TOKEN_CONTRACT_ADDRESS
is the address of the token contract on the specified network, and the NETWORK_ID
is the ID of the network the token is on. See supported networks for more info.
Query String Parameters
asset_ids
(required): A comma-separated string in the format<TOKEN_CONTRACT_ADDRESS>:<NETWORK_ID>
that identifies the tokens to look up.
Headers
x-api-key (required): A valid API key.
Example
Response
Response Codes
200
: Success. Returns the USD price for the given token.400
: Bad Request. Theasset_ids
query string parameter is not provided.403: Forbidden. The x-api-key header is not provided or is invalid.
Last updated