def test_get_order_status(self): ords = coinex_api.orders(2) self.assertTrue( isinstance( ords, list ), 'orders should be a list' )
def get_orders(self): """ Load / get all orders for the current exchange """ # remove old ones if needed ords = coinex_api.orders(self.id) ret = [] for order in ords: o = Order(API_resp=order) registry.put(o) ret.append(o) return ret
def test_get_order_status(self): ords = coinex_api.orders(2) self.assertTrue(isinstance(ords, list), 'orders should be a list')