IB API - How to update price?

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
 
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?
 
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.
 
Back
Top