Skip to content

Instantly share code, notes, and snippets.

@lamres
Last active March 9, 2020 11:05
Show Gist options
  • Select an option

  • Save lamres/e8b2c92ee371f7ee6b2db1c5caf44bed to your computer and use it in GitHub Desktop.

Select an option

Save lamres/e8b2c92ee371f7ee6b2db1c5caf44bed to your computer and use it in GitHub Desktop.
start_date_string = '2014-04-01'
asset = 'BITFINEX/BTCUSD'
column_price = 'Last'
column_high = 'High'
column_low = 'Low'
column_volume = 'Volume'
quandl.ApiConfig.api_key = YOUR_QUANDL_API
dataset = quandl.get(asset, collapse = 'daily',
trim_start = start_date_string)
dataset = dataset.shift(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment