def generate_chart(data):
x = [entry['time_period_start'] for entry in data]
y = [entry['price_close'] for entry in data]
fig = go.Figure(data=go.Scatter(x=x, y=y))
fig.update_layout(title='Historical Prices', xaxis_title='Date', yaxis_title='Price')
fig.show()