Esempio n. 1
0
 def test_get_open_orders(self):
     ords = coinex_api.open_orders()
     self.assertTrue(
         isinstance(
             ords,
             list
         )
     )
Esempio n. 2
0
 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
Esempio n. 3
0
 def test_get_open_orders(self):
     ords = coinex_api.open_orders()
     self.assertTrue(isinstance(ords, list))