question

Upvotes
Accepted
1 0 0 1

Trouble getting DataApiUsageExampleTimeseriesData to run in visual studio 2015

I cannot seem to run the DataApiUsageExampleTimeseriesData solution because I'm not able to retrieve the right NuGet package, please assist

eikoneikon-data-apieikon-com-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@cvanderheijden

Can you provide any details? What exactly is the problem with downloading the NuGet package?

Upvotes
Accepted
39.2k 75 11 27
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 1

Hi Alex,

I get the below error when I press the "Manage NuGet packages for solution" Button. I've opened the solution DataApiUsageExampleTimeseriesData in Visual Studio 2015.

error.png


error.png (16.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Can you create a new solution and see if you can install one of these packages through Package Manager Console? Use the package with the right bitness for your project.https://www.nuget.org/packages/ThomsonReuters.Desktop.SDK.DataAccess.Signed/

https://www.nuget.org/packages/ThomsonReuters.Desktop.SDK.DataAccess.Signed.x64/

I also found a reference to someone having experienced the same issue as you did. Follow the link below and scroll down where the reporter mentions the error you saw and Microsoft seem to acknowledge it as a bug in VS 2015. Perhaps you need to update your VS software?
https://social.msdn.microsoft.com/Forums/vstudio/en-US/0aa34d2e-035d-4cb2-8f7b-bf6b4d5fa84f/clicking-on-mange-nuget-packages-causes-object-not-set-to-an-instance-of-an-object-and-the-nuget?forum=visualstudiogeneral

Upvotes
1 0 0 1

Hi Alex,

When I try to install the package I get the following error:

I think I have the most recent version installed. Does the above error ring a bell?


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 1

Hi Alex, Thanks I got it working.

I was wondering if you could also help me with the below query?

I would like to retrieve closing prices at a certain date (lets say yesterday, but this can change) for a list of RICs and put it in a datagridview. How would I go about this most efficiently?

Thanks,

Chris

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

You need to loop through your list of RICs, create an instance of ITimeSeriesDataRequest for each RIC, add this instance of ITimeSeriesDataRequest to a member List to keep them in memory. Use OnDataReceived event handler to output the data retrieved. You probably will want to create a member List bound to DataSource property of your DataGridView Control. You will also need event handler for OnStatusUpdated event to handle data retrieval errors (bad RICs, no data for a given RIC etc.). Finally you probably want to keep a counter of RICs retrieved to know when all data retrieval is complete.

Click below to post an Idea Post Idea