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:
So for instance, we can take this string value under Coinbase Pro's BTCUSD market for time period
This represents a 1-hour candle starting at
Sat, 24 Sep 2016 16:00:00 UTC) and ending at
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.58314308denominated in BTC, and
799449.488966417denominated in USD.