def test_get_last_trades(self): trds = coinex_api.last_trades(2) self.assertTrue( isinstance( trds, list ), 'last trades should be a list' )
def get_recent_trades(self): """ Load / get all recent trades for this exchange """ ords = coinex_api.last_trades(self.id) ret = [] for order in ords: o = Order(API_resp=order) registry.put(o) ret.append(o) return ret
def test_get_last_trades(self): trds = coinex_api.last_trades(2) self.assertTrue(isinstance(trds, list), 'last trades should be a list')