question

Upvotes
Accepted
27 2 3 7

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

Upvote
Accepted
47.2k 109 44 60

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.