question

Upvotes
Accepted
27 2 5 9

How to subscript multiple RICs on .NET API

Hi:

I want to get more than one stock below code example:

request = timeSeries.SetupDataRequest() .WithRic("2330.TW") .WithView("BID") .WithAllFields() .WithInterval(CommonInterval.Intraday10Minutes) .WithNumberOfPoints(100) .OnDataReceived(DataReceivedCallback) .CreateAndSend();

like "2330.TW","2327.TW","2498.TW".....

eikoneikon-com-api.net
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.

1 Answer

· Write an Answer
Upvote
Accepted
78.9k 250 52 74

Each ITimeSeriesDataRequestSetup supports only one RIC.

To subscribe to multiple RICs, you need to create multiple requests.

request[0] = timeSeries.SetupDataRequest() .WithRic("2330.TW") .WithView("BID") .WithAllFields() .WithInterval(CommonInterval.Intraday10Minutes) .WithNumberOfPoints(100) .OnDataReceived(DataReceivedCallback).CreateAndSend();

request[1] = timeSeries.SetupDataRequest() .WithRic("2327.TW") .WithView("BID") .WithAllFields() .WithInterval(CommonInterval.Intraday10Minutes) .WithNumberOfPoints(100) .OnDataReceived(DataReceivedCallback).CreateAndSend();
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.

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.