@authentication_required
def place_order(self, quantity, price):
    'Place an order.'
    if (price < 0):
        raise Exception('Price must be positive.')
    endpoint = 'order'
    clOrdID = (self.orderIDPrefix + base64.b64encode(uuid.uuid4().bytes).decode('utf8').rstrip('=\n'))
    postdict = {'symbol': self.symbol, 'orderQty': quantity, 'price': price, 'clOrdID': clOrdID}
    return self._curl_bitmex(path=endpoint, postdict=postdict, verb='POST')
Place an order.
@authentication_required
def place_order(self, quantity, price):
    
    if (price < 0):
        raise Exception('Price must be positive.')
    endpoint = 'order'
    clOrdID = (self.orderIDPrefix + base64.b64encode(uuid.uuid4().bytes).decode('utf8').rstrip('=\n'))
    postdict = {'symbol': self.symbol, 'orderQty': quantity, 'price': price, 'clOrdID': clOrdID}
    return self._curl_bitmex(path=endpoint, postdict=postdict, verb='POST')