Stock dataname format in Visual Chart?
rastegarr last edited by
Do you know what the format for dataname in visual chart for a stock such as 'YHOO' is?
data = vcstore.getdata(dataname='YHOO', fromdate=datetime(2016, 5, 15))
The data feeds have a code which refers to the exchange/market in which they are traded.
You need to see the ticker on-screen or find the file on-disk (seems easier to check the screen)
Quoting from the docs
Instantiating the data:
Pass the symbol seen on the top-left side of VisualChart without spaces. For example:
ES-Mini is displayed as 001 ES. Instantiate it as:
data = vcstore.getdata(dataname='001ES', ...)
EuroStoxx 50 is displayed as 015 ES. Instantiate it as:
data = vcstore.getdata(dataname='015ES', ...)
Note backtrader will make an effort and clear out a whitespace located at the fourth position if the name is directly pasted from Visual Chart
After checking with plaftorm:
003 YHOO. Where
003is obviously the code for Nasdaq.