Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ProAek11/160a95a9af3214f810cb7e1169d4a188 to your computer and use it in GitHub Desktop.

Select an option

Save ProAek11/160a95a9af3214f810cb7e1169d4a188 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