? ? ? ? contract = Contract()
? ? ? ? contract.symbol = "AAPL"
? ? ? ? contract.secType = "STK"
? ? ? ? contract.exchange = "SMART"
? ? ? ? contract.currency = "USD"
?
? ? ? ? order = Order()
? ? ? ? order.orderId = orderId
? ? ? ? order.orderType = "LMT"
? ? ? ? order.lmtPrice = 200
? ? ? ? order.action = "SELL"
? ? ? ? order.totalQuantity = 10
? ? ? ? order.transmit = False
?
? ? ? ? order.eTradeOnly = False
? ? ? ? order.firmQuoteOnly = False
?
? ? ? ? # you need to transmit to get whatif response. In this case, it does NOT transmit the order to the market!
? ? ? ? order.transmit = True
? ? ? ? order.WhatIf = True? ??
?
? ? ? ? self.placeOrder(order.orderId, contract, order)
openOrder: 3, contract: 265598,AAPL,STK,,0.0,?,,SMART,,USD,AAPL,NMS,False,,combo:, order: 3,1000,984843980: LMT SELL 10@... DAY, Maintenance Margin: 1.7976931348623157E308
orderStatus. orderId: 3, status:? PreSubmitted, filled: 0.0, remaining: 10.0, avgFillPrice: 0.0, permId: 984843980, parentId: 0, lastFillPrice: 0.0, clientId: 1000, whyHeld: , mktCapPrice: 0.0
openOrder: 3, contract: 265598,AAPL,STK,,0.0,?,,SMART,,USD,AAPL,NMS,False,,combo:, order: 3,1000,984843980: LMT SELL 10@... DAY, Maintenance Margin: 1.7976931348623157E308
orderStatus. orderId: 3, status:? PreSubmitted, filled: 0.0, remaining: 10.0, avgFillPrice: 0.0, permId: 984843980, parentId: 0, lastFillPrice: 0.0, clientId: 1000, whyHeld: , mktCapPrice: 0.0
?