IB API - How to update price?

Discussion in 'Interactive Brokers' started by qtmspin, Dec 2, 2008.

  1. qtmspin

    qtmspin

    I would like to track 400 securities. For this reason it seems I must use a snapshot or historical data. If I do this in a timer

    Call Tws1.reqMktDataEx(ContractID, Contract, "", 1)

    I get a "Duplicate ticker id"

    Is there a way to request a new price for a specific contract id?

    Thanks,
    matt
     
  2. Don't you have to have a unique ticker ID for each security? So your call becomes:

    int n = 1
    Call Tws1.reqMktDataEx(ContractID, Contract, "", n++)

    Will they even let you track 400 tickers though?
     
  3. qtmspin

    qtmspin

    Thats the problemo - the max amount of tickers you can track is the $$ commissions you paid last month and min amount is 40...

    So.... I can not use tickers to track prices. I have to use realtime bars or a snapshot. The "1" at the end of the command means snapshot.