CoinbaseCollector¶
- class src.boatwright.Data.Collection.Historical.CoinbaseCollector.CoinbaseCollector(quote_symbol='USD', debug=False, key=None, secret_key=None)¶
collects data from coinbase
- Parameters:
quote_symbol (str) – e.g. “USD”
debug (bool) – boolean toggle to print debugging information
key (str) – Alpaca API key, defaults to key specified config.json
secret_key (str) – Alpaca API secret key, defaults to secret key specified config.json
- collect(symbol, start, end, granularity_unit='MINUTE', verbose=False)¶
makes a series of API calls to coinbase collecting historical data, and returns it as one pd.DataFrame
- Parameters:
symbol (str) – The symbol to collect e.g. BTC
start (date) – collection start date
end (date) – collection end date
granularity_unit (str) – either “MINUTE”, “HOUR”, “DAY”
verbose (bool) – boolean toggle for printing progress to terminal