如何设置IB的组合合约

You need to set AltSymbol of the instrument using following format:

设置AltSymbol为如下格式

  1. Symbol;Leg1;Leg2;...;LegN
  2. where Leg is
  3. ConId_Ratio_Action_Exchange_OpenClose_ShortSaleSlot_DesignatedLocation

for example

例如

  1. IBM;78491274_1_SELL_SMART_0_0_;81524101_1_BUY_SMART_0_0