OHLC Candlesticks
This is the data that is shown in our charting interface.
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.

Response Format

1-minute candles are under the "60" key. 3-minute are "180", and so on.
The values are in this order:
1
[
2
CloseTime,
3
OpenPrice,
4
HighPrice,
5
LowPrice,
6
ClosePrice,
7
Volume,
8
QuoteVolume
9
]
Copied!
So for instance, we can take this string value under Coinbase Pro's BTCUSD market for time period "3600" (1-hour):
1
[
2
1474736400,
3
8744,
4
8756.1,
5
8710,
6
8753.5,
7
91.58314308,
8
799449.488966417
9
],
Copied!
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.

Period values

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 4mo ago
Copy link