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".....

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    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();

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.