API ReferenceGuidesChangelog
Prices

Get price

GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.

GET
/v1/prices

Authorization

api-key<token>

In: header

Query Parameters

timestamp?string

The timestamp we request the price at. Note, the price service may not have the price at the exact timestamp, in which case it will return the price at the closest timestamp.

Formatdate-time
coinId.symbol?string
coinId.address.address?string
coinId.address.chain?string
source?string
experimentalFlag.enablePythSource?boolean

Response Body

application/json

curl -X GET "https://example.com/v1/prices"
{  "price": 0.1,  "source": "string",  "timestamp": "2019-08-24T14:15:22Z"}