import matplotlib.pyplot as pltbars = client.chart.get_historical_bars( symbol="AAPL", from_date="2024-01-01", to_date="2025-01-01", resolution="1D")dates = [bar.timestamp for bar in bars]closes = [bar.close for bar in bars]plt.plot(dates, closes)plt.title("AAPL Price History")plt.show()