I'm trying to access economic data provided by Fidelity programmatically. In some cases all works as expected, but in other cases I'm getting errors.
This works so I am confident that the data exists. I'm also able to plot ppi on my chart without any issues.
CODE:
Please log in to see this code.
This does not work when I try to get ppi close value. I've tried with Open, High, Low, Close, & Volume.
CODE:
Please log in to see this code.
This does work when I try to get cpi close value.
CODE:
Please log in to see this code.
I've also tried using SetContext with similar results. Some of the Fidelity economic items are accessible and others are not.
I guess I could write a bunch of code to synchronize the fundamental item to the in context Bars, but that seems like a long way around this problem.
Thank you in advance for the advice.