Access Fidelity Economic Data in WealthScript
Author: pfelix
Creation Date: 2/7/2013 12:20 AM
profile picture

pfelix

#1
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.
profile picture

Eugene

#2
Please see FundamentalDataSeries in the QuickRef. It's that simple.
profile picture

pfelix

#3
Thanks, Eugene. I was using the wrong overload. That works great.

CODE:
Please log in to see this code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).