Market

List asset prices by interval

GET/v1/currency/prices

Returns the current price of every crypto asset in one quote currency, plus the price one interval ago for each requested interval (for one_day, the price 24 hours earlier). time is the epoch-millisecond timestamp of each point. The service caches these results, so the live quote can be slightly behind the current time.

The outer key is the asset symbol. Each value is an array whose first entry is always the live quote, without an interval field. One entry per requested interval follows, in the order the intervals were requested, each carrying its interval. Use the pairs to compute price changes over those periods.

price is a decimal string: the price of one unit of the asset in currency. "0" means no price is available for that asset at that point, which is common for testnet symbols.

No authentication is required.

Query Parameters

currency?string

Quote currency symbol, fiat or crypto (for example EUR or USDT). Defaults to USD.

Match^[A-Z0-9]{2,10}$
interval?array<>

Historical points to add after the live quote. Repeat the parameter (interval=one_day&interval=one_week) or pass a comma-separated list (interval=one_day,one_week).

Response Body

application/json

application/json

List asset prices by interval
curl --request GET \  --url 'https://gateway.bit2me.com/v1/currency/prices?currency=EUR&interval=one_day'
{  "BTC": [    {      "price": "67800.19999999999926788638554933",      "time": 1788443700027    },    {      "interval": "one_day",      "price": "66414.8920197387747352951255467",      "time": 1788356905602    }  ],  "ETH": [    {      "price": "2088.46999999999964471649629925",      "time": 1788443700027    },    {      "interval": "one_day",      "price": "2070.3587232438828648977352965",      "time": 1788356905602    }  ]}