Beispiel #1
0
 async def fetch_order(self, id, symbol=None, params={}):
     orders = await self.fetch_orders(symbol, params)
     for i in range(0, len(orders)):
         if orders[i]['id'] == id:
             return orders[i]
     raise OrderNotCached(self.id + ' order id ' + str(id) +
                          ' not found in cache')
Beispiel #2
0
 def fetch_order(self, id, symbol=None, params={}):
     id = str(id)
     orders = self.fetch_orders(symbol, None, None, params)
     for i in range(0, len(orders)):
         if orders[i]['id'] == id:
             return orders[i]
     raise OrderNotCached(self.id + ' order ' + id + ' not found in cached .orders, fetchOrder requires .orders(de)serialization implemented for self method to work properly')
Beispiel #3
0
 async def fetch_order(self, id, symbol=None, params={}):
     since = self.safe_value(params, 'since')
     limit = self.safe_value(params, 'limit')
     request = self.omit(params, ['since', 'limit'])
     orders = await self.fetch_orders(symbol, since, limit, request)
     for i in range(0, len(orders)):
         if orders[i]['id'] == id:
             return orders[i]
     raise OrderNotCached(self.id + ' order id ' + str(id) + ' is not in "open" state and not found in cache')