Beispiel #1
0
 def test_get_order_status(self):
     ords = coinex_api.orders(2)
     self.assertTrue(
         isinstance(
             ords,
             list
         ),
         'orders should be a list'
     )
Beispiel #2
0
 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
Beispiel #3
0
 def test_get_order_status(self):
     ords = coinex_api.orders(2)
     self.assertTrue(isinstance(ords, list), 'orders should be a list')