This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Reference https://interactivebrokers.github.io/tws-api/basic_orders.html#limitordercombolegprices | |
def build_combo_contract(info): | |
contract = Contract() | |
contract.symbol = 'ACN' | |
contract.secType = "BAG" | |
contract.currency = "USD" | |
contract.exchange = "BOX" | |
leg1 = ComboLeg() | |
leg1.conId = info['contractId_0'] |