Skip to article frontmatterSkip to article content

Candlestick

import pfeed as pe
import pfund_plot as plt
from docs.utils import display_html

feed = pe.YahooFinanceFeed(data_tool='pandas')
df = feed.get_historical_data(product='AAPL_USD_STK', resolution='1d', rollback_period='1y')

fig = plt.ohlc(df, display_mode='notebook', streaming=False)
Loading...
display_html(fig)
Loading...