Skip to content

Instantly share code, notes, and snippets.

@rezonn
Created May 2, 2021 02:11
Show Gist options
  • Select an option

  • Save rezonn/080b3128198af10c716c178affa64980 to your computer and use it in GitHub Desktop.

Select an option

Save rezonn/080b3128198af10c716c178affa64980 to your computer and use it in GitHub Desktop.
YFinance basic
import yfinance as yf
import matplotlib.pyplot as plt
close = yf.Ticker("BTC-USD").history(period="max").Close
print(close)
plt.figure(figsize=(8, 6))
plt.plot(close)
plt.title("BTC-USD")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment