OHLC Candlesticks
get
https://api.cryptowat.ch
/markets/:exchange/:pair/ohlc
Market OHLC
Querying OHLC data within a specific time-range, it is better to define both the after and before parameters for more accurate results.
When both after and before parameters are defined, the command will query and fetch OHLC data for the defined range. When only after has been specified, the before parameter will be updated to the current date (now) and the results will be within the range: after until now. Supplying before without an after relies on cached data and returns variable results.
1-minute candles are under the
"60"
key. 3-minute are "180"
, and so on.The values are in this order:
[
CloseTime,
OpenPrice,
HighPrice,
LowPrice,
ClosePrice,
Volume,
QuoteVolume
]
So for instance, we can take this string value under Coinbase Pro's BTCUSD market for time period
"3600"
(1-hour):[
1474736400,
8744,
8756.1,
8710,
8753.5,
91.58314308,
799449.488966417
],
This represents a 1-hour candle starting at
1474732800
(Sat, 24 Sep 2016 16:00:00 UTC
) and ending at 1474736400
(Sat, 24 Sep 2016 17:00:00 UTC
).The open price for this candle is
8744
, the high price 8756.1
, the low price 8710
, and the close price 8753.5
. The volume for this candle was 91.58314308
denominated in BTC, and 799449.488966417
denominated in USD.Value | Label |
60 | 1m |
180 | 3m |
300 | 5m |
900 | 15m |
1800 | 30m |
3600 | 1h |
7200 | 2h |
14400 | 4h |
21600 | 6h |
43200 | 12h |
86400 | 1d |
259200 | 3d |
604800 | 1w |
604800_Monday | 1w (weekly start Monday) |
Last modified 1yr ago