-
Notifications
You must be signed in to change notification settings - Fork 14
Candles
TaylorFacen edited this page Sep 19, 2020
·
3 revisions
Enhanced Methods
get_candles - Returns aggregated open, high, low, close, and volume information for Nomics currencies. If only currency is provided then OHLCV values are returned in USD. If both base and quote are provided, then OHLC values are returned in the quote currency and volume is returned in base currency. If exchange and market are provided, candles are provided for only that exchange. This method is a combination of Aggregated OHLCV Candles, Aggregated Pair OHLCV Candles, and Exchange OHLCV Candles
# Aggregated OHLCV Candles
nomics.Candles.get_aggregated_candles(interval = '1d', currency = 'BTC')
# Aggregated Pair OHLCV Candles
nomics.Candles.get_aggregated_candles(interval = '1d', base = 'BTC', quote = 'USDT')
# Exchange OHLCV Candles
nomics.Candles.get_aggregated_candles(interval = '1d', exchange = 'binance', market = "BTCUSDT")