yep you got it.
for futures, do you know how to set a price delta for stoploss instead of inputting the absolute price?
for example,
contract=Future('HSI', '20190227', 'HKFE')
ib.qualifyContracts(contract)
order = Order()
order.action = 'BUY'
order.orderType = "MKT"
order.totalQuantity = 1
order.auxPrice =27900
stop loss is set at 27900, however, sometimes we don't know the filled price, so is it possible to set a price delta like 200 (e.g. drop more than 200 ticks) to trigger stop loss? in Hong Kong Hang Seng index futures, there is a pre-opening session, i want to set a market order in this period so that IB system will help me to fill my order right after the market open. so for this case, i don't know the filled price.
also, do you know how to mingle TimeCondition to above order, so that i can set a specific time entering a market price? actually i want to flatten my position right before market close, but i don't know what is the best way to do it. thanks!