Skip to content

Instantly share code, notes, and snippets.

@evanaze
Created August 21, 2020 16:34
Show Gist options
  • Save evanaze/1a54d0689fa9952bd4b7619d94050abb to your computer and use it in GitHub Desktop.
Save evanaze/1a54d0689fa9952bd4b7619d94050abb to your computer and use it in GitHub Desktop.
# The S&P 500 Index
spy = pdr.get_data_yahoo("SPY", start, end)
# Gold futures
gold = pdr.get_data_yahoo("GC=F", start, end)
# Apple Stock
aapl = pdr.get_data_yahoo("AAPL", start, end)
# Bond index
bond = pdr.get_data_yahoo("BND", start, end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment