Announcement

Collapse
No announcement yet.

Real-Time Quotes & multiple requests

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Real-Time Quotes & multiple requests

    Concerning Real-Time Quotes, if I wish to make multiple requests at the same time, I have the following questions:

    1) Is there a limit as to how many I can make? I have read that there is a limit to the amount of historical requests which can be made with an IESignal.Hooks object at one time.

    2) I am wondering if there is an option to send a user defined 'tag' when making a RequestSymbol() request. What I would like to accomplish is to send a unique id with my request to determine which symbol the data is for when the OnQuoteChanged() event fires. Seems that the only way to do so is use the sSymbol string to do this.

  • #2
    Hi georger,

    There is no specific limit, but the Desktop API can only efficiently process about 50-100 symbols at a time. This threshold will vary depending on the activity level of the stocks you are looking at, and the capability of the machine on which you are running the app.

    There is no way to send a user defined tag, but you can check to see if the data being returned is the data you asked for. For example, this is part of the event handler for a sample using a flexGrid:

    If sym = grdInfo.TextMatrix(R, 1) Then
    'Process data
    End if

    Essentially, you need some identifier for the data you requested, then just compare it with what is being returned.

    Comment

    Working...
    X