API
Python functions for phBot Crypto
get_bars(exchange, pair, granularity)
This function retrieves historical bars for a given pair from an exchange. Granularity is in seconds.
Usage
get_bars(EX_COINBASE, 'BTC-USD', 60)
Returns
None
or a list
containing the historical bars in JSON.
Last updated