question

Upvotes
Accepted
27 2 1 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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
38.1k 71 35 53

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea