Just simply run following code to print price(date range 08/11/2017-08/16/2017):
context.security =symbol('ITUB')
price_history = data.history(
context.security,
fields=["high","low","close","volume","open"],
bar_count=10,
frequency='1d'
)
print price_history
=======================
close high low open volume
2017-08-14 00:00:00+00:00 12.341 12.500 12.203 12.222 7137462.0
2017-08-15 00:00:00+00:00 12.470 12.560 12.390 12.440 7846924.0
Question:
The close price of ITUB on 2017-08-14 is 12.341 But in TC2000 and other website,the correct close price is 12.45.
Actually this just one case,I find many places that the prices is quite different with TC2000.
Is there any way I can get the correct price?