开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Adding stock to a combo order


 

Following this article: ?

Works well unless I want to add a stock to the combo. ?It lets me do this in the TWS GUI. ?I tried getting the contract ID like this:

? ? ? ? ? ? Contract Q = new Contract("QQQ", "SMART", SecurityType.Stock, "USD", null);
? ? ? ? ? ? ibAdapter.RequestContractDetails(Q, 999);

Then adding the returned contract ID to the combo, but the GUI says that I can't add that type to a combo. ?Is there some trick to get this to work?


 

Disregard. ?I tried the same thing manually and got the same message. ?Apologies. ?#newb