<jupyter_start><jupyter_text>YahooFinance - Candlestick chart **Tags:** yahoofinance trading yfin **Author:** [<NAME>](https://www.linkedin.com/in/carloocchiena/)  Input  Install and import libraries<jupyter_code>import datetime as dt
import pandas_datareader as pdr
try:
    import mplfinance as mpf
except:
    !pip install mplfinance
    import mplfinance as mpf
try:
    import yfinance as yfin
except:
    !pip install yfinance
    import yfinance as yfin<jupyter_output><empty_output><jupyter_text>Variablesdatefrom, dateto, the list of cryptocurrencies you need.<jupyter_code># update date range "start" as desired
start = dt.datetime(2021, 1, 1)
end = dt.datetime.now()
ticker = "ETH-USD"<jupyter_output><empty_output><jupyter_text>Modelcandlestick chart, correlation heatmap, visual chart for all the currencies.<jupyter_code># insert cryptoasset (in Yahoo format "NNN-CCC" es BTC-EUR or ETH-USD) here
yfin.pdr_override()
data = yfin.download(ticker, start, end)
data<jupyter_output><empty_output><jupyter_text>Output  Create a candlestick chart for a given asset👉 Completely customize the timeframe and asset you need<jupyter_code>mpf.plot(data, title=f"{ticker} trend",
         type="candle",
         volume=True,
         style="yahoo")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0984375, 'fraction_numerical': 0.0046875, 'mean_word_length': 5.603092783505154, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '296027', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 457, 'n_tokens_neox': 434, 'n_words': 115, 'path': 'YahooFinance/YahooFinance_Candlestick_chart.ipynb', 'repo_name': 'srini047/awesome-notebooks', 'size': '1288'}