Skip to content

Instantly share code, notes, and snippets.

@dkav6
Created November 5, 2021 09:07
Show Gist options
  • Save dkav6/b5783e6344a00c05eb2fac6f45a6918b to your computer and use it in GitHub Desktop.
Save dkav6/b5783e6344a00c05eb2fac6f45a6918b to your computer and use it in GitHub Desktop.
def get_data(pair):
ticker = Ticker(pair)
df = ticker.history(period='3y', rounding=True)[['Open','High','Low','Close']]
return df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment