How to display Fundamental data from a script
Author: abegy
Creation Date: 4/25/2012 1:19 PM
profile picture

abegy

#1
Hello,

I create a new FundamentalProvider which contains four types : Dividends, Earnings, Splits and Webcasts.

I use this script to try display the saved data :

CODE:
Please log in to see this code.


When i set string item = "Dividends" a get the results in a new DebugLog. I get the results from this method :
CODE:
Please log in to see this code.


But a don't get any results from other types. The call of RequestedItems() method will never be reached.
How to display other types?


Thanks for help.
profile picture

Eugene

#2
Chart the four items. Will all of them display, or only Dividends? The latter may indicate that they haven't been downloaded and/or are not being properly retrieved. Double check that the item names are unique and the provider has no trouble "finding" them.

It's hardly possible to tell what you did wrong in an unseen code, but chances are you'll find the misbehaving method if you set more breakpoints in your projects.
profile picture

abegy

#3
I can only display Dividends in the chart. All the names are correct.

The call of the method only work when i select Dividends, in other cases Wealth Lab don't call this method :
public override IList<FundamentalItem> RequestItems(string symbol, string itemName)
{
var items = _dataStore.RequestSymbolItems(symbol, itemName);
return items;
}

When i check saved data, i can access to all the types with Visual Studio debugger, here an example of code :
_dataStore.RequestSymbolItems(symbol, "Webcasts")

All informations are properly saved.
profile picture

Eugene

#4
OK, but how am I supposed to help you? It's not a Wealth-Lab fault, there's an error in your provider that we can't remotely diagnose.

If your solution was derived from MS123 Extra Fundamental/News Providers*, compare the functioning code with your project to find the difference which ultimately led to what you're experiencing.

*Although right now, analyst rating downloads are broken due to a data feed change - to be fixed by upcoming update.
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).