def placeOrder(self,contract, shares,limit = None, transmit=0):
     
        action = {-1:'SELL',1:'BUY'}  
        
        
        orderId = self.nextValidOrderId
        self.nextValidOrderId += 1 # increment  
        
        o = Order()
        o.m_orderId = orderId
        o.m_action = action[cmp(shares,0)]
        o.m_totalQuantity = abs(shares)
        o.m_transmit = transmit
     
        if limit is not None:
            o.m_orderType = 'LMT'
            o.m_lmtPrice = limit
        else:
            o.m_orderType = 'MKT'
     
        # place order
        self.tws.placeOrder(orderId, contract, o) # place order     
     
     
        return orderId
    
    # ----------data retrieval
Gets the SpecialCollectionPage
dataset/ETHPy150Open sjev/trading-with-python/lib/interactiveBrokers/handlers.py/Orders.placeOrder--crossover with--dataset/ETHPy150Open OneDrive/onedrive-sdk-python/src/python2/request/special_collection.py/SpecialCollectionRequest.get