Get Open-High-Low-Close-Volume Candles

Gets the OHLCV candles for the specified market(s), for candles starting in the interval specified by after and before, and with candle size specified by period

Definition

Endpoint:
GET https://api.tokendatabase.com/v0.1/markets/candles
Objects per Hit:
1

Parameters

Name Required Description Available Values Default
before Required Before time. Returns candles that open before the specified time (UTC) A Time Value None
after Required After time. Returns candles that open after the specified time (UTC) A Time Value None
period Required Specifies the period or size of each candle 1min, 3min, 5min, 30min, 1hour, 12hour, 1day, 7day, 30day, 1year None
ids Required Specifies a list of market ids from which to retrieve candles A Market ID List
key Required Your API key YOUR_API_KEY

Responses

Name Type Description
id string The unique id used to reference the market on the API
exchange string The exchange id of the market
base string The asset id of the base asset for the market
quote string The asset id of the quote asset for the market
type string The market type of the market
candles list List of candles for the requested market
(candles) time A Time Value The time of the beginning of this candle
(candles) open float The open price of a candle
(candles) high float The high price of a candle
(candles) low float The low price of a candle
(candles) close float The low price of a candle
(candles) volume float The volume of a candle

Example 1

Lookup candles for market with id: poloniex_spot_btc_usdt, before: 2018-10-30, after: 2018-10-28, period: 12hour

https://api1.tokendatabase.com/v0.1/markets/ohlcv?ids=poloniex_spot_btc_usdt&before=2018-10-30&after=2018-10-28&period=12hour&key=YOUR_API_KEY

Response

    

Last Modified: 2018-11-30