Token Price
Endpoint
GET /v1/tokens/price?tokenId=<TOKEN_IDs>
Description
This endpoint returns the USD price for a given token or a comma separated list of tokenId's. The tokenId
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
tokenId
(required): A string in the format<TOKEN_CONTRACT_ADDRESS>:<NETWORK_ID>
that identifies the token to look up.
Headers
x-api-key (required): A valid API key.
Example
Response
If querying for one tokenId you will be returned a single object.
If querying for a list of tokens you will be returned an array of objects.
Response Codes
200
: Success. Returns the USD price for the given token.400
: Bad Request. ThetokenId
query string parameter is not provided.403: Forbidden. The x-api-key header is not provided or is invalid.
404
: Not Found. Thetoken_id
is not found in thetokens
collection.
Last updated