question

Upvotes
Accepted
1 0 1 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 512.0 KiB each and 1.0 MiB total.

@cvanderheijden

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

Hello @cvanderheijden,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

@cvanderheijden

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
39.4k 77 11 27
icon clock
10 |1500

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

Upvotes
1 0 1 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 512.0 KiB each and 1.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 1 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 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 1 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 512.0 KiB each and 1.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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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