def test_get_open_orders(self): ords = coinex_api.open_orders() self.assertTrue( isinstance( ords, list ) )
def get_own(cls): """ Get all own orders """ ords = coinex_api.open_orders() ret = [] for ordr in ords: exc = Exchange.get(ordr['trade_pair_id']) amt = Decimal(ordr['amount']) / pow(10, 8) rate = Decimal(ordr['rate']) / pow(10, 8) ret.append( Order( API_resp=ordr ) ) return ret
def test_get_open_orders(self): ords = coinex_api.open_orders() self.assertTrue(isinstance(ords, list))