(self)
return [o for o in orders if str(o['clOrdID']).startswith(self.orderIDPrefix)]
Get open orders via HTTP. Used on close to ensure we catch them all.
Get open orders via HTTP. Used on close to ensure we catch them all.
Get open orders via HTTP . Used on close to ensure we catch them all .
def http_open_orders(self):
        """Get open orders via HTTP. Used on close to ensure we catch them all."""
        api = "order"
        orders = self._curl_bitmex(
            api=api,
            query={'filter': json.dumps({'ordStatus.isTerminated': False, 'symbol': self.symbol})},
            verb="GET"
        )
        # Only return orders that start with our clOrdID prefix.
        return [o for o in orders if str(o['clOrdID']).startswith(self.orderIDPrefix)]
def http_open_orders ( self ) : api = "order" orders = self . _curl_bitmex ( api = api , query = { 'filter' : json . dumps ( { 'ordStatus.isTerminated' : False , 'symbol' : self . symbol } ) } , verb = "GET" ) # Only return orders that start with our clOrdID prefix. return [ o for o in orders if str ( o [ 'clOrdID' ] ) . startswith ( self . orderIDPrefix ) ]