Get OHLC and average price for one asset
/v1/currency/ohlca/{symbol}Returns open, high, low, close and average USD prices for one asset over a window that
ends at time and spans timeframe backwards. With timeframe=1D and no time, the
window is the last 24 hours.
The symbol can be a crypto or a fiat currency. All prices are decimal strings in USD,
derived from the stored rates against the dollar. average is the inverse of the mean
rate over the window, which is a harmonic mean of the price rather than an arithmetic
one. A value of "0" means the stored rate was zero.
404 means the service has no rates for that asset inside the window.
No authentication is required.
Path Parameters
Asset symbol, such as BTC or EUR. Case-sensitive.
^[A-Z0-9]{1,10}$Query Parameters
Length of the window, counted backwards from time.
Value in
- "1H"
- "4H"
- "12H"
- "1D"
- "1W"
- "1M"
- "1Y"
End of the window, as an ISO 8601 datetime. Defaults to the current time.
date-timeResponse Body
application/json
application/json
application/json
curl --request GET \ --url 'https://gateway.bit2me.com/v1/currency/ohlca/BTC?timeframe=1D&time=2024-09-24T00%3A00%3A00.000Z'{ "average": "77577.56473380463", "close": "78823.60190245666", "high": "78997.7573705082", "low": "76739.54602946785", "open": "76863.33264249183"}List currency symbols GET
Returns every supported currency symbol mapped to its display name. This replaces the deprecated `GET /v1/type`. The response is a flat object whose keys are symbols and whose values are names. The crypto catalogue includes testnet symbols such as `BTCTEST`; use `GET /v2/currency/assets` when you need to tell them apart. `type` is mandatory. Omitting it fails validation with `400`. No authentication is required.
List asset prices by interval GET
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.