Skip to content

Instantly share code, notes, and snippets.

@akhan118
Last active July 27, 2018 20:10
Show Gist options
  • Select an option

  • Save akhan118/789b2510893e911f97191a3ee90056cb to your computer and use it in GitHub Desktop.

Select an option

Save akhan118/789b2510893e911f97191a3ee90056cb to your computer and use it in GitHub Desktop.
token='xxxxxxx'
apikey ='[email protected]'
client_id = '[email protected]'
p = Td(token,client_id,apikey)
start_date = datetime.strptime('04 3 2018 1:33PM', '%m %d %Y %I:%M%p')
end_date = datetime.strptime('05 3 2018 1:33PM', '%m %d %Y %I:%M%p')
print(p.get_price_history('SNAP',p.unix_time_millis(start_date),
p.unix_time_millis(end_date)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment