コード例 #1
0
ファイル: test_coinex_api.py プロジェクト: robmcl4/Coinex
 def test_get_order_status(self):
     ords = coinex_api.orders(2)
     self.assertTrue(
         isinstance(
             ords,
             list
         ),
         'orders should be a list'
     )
コード例 #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
コード例 #3
0
ファイル: test_coinex_api.py プロジェクト: ynzheng/Coinex
 def test_get_order_status(self):
     ords = coinex_api.orders(2)
     self.assertTrue(isinstance(ords, list), 'orders should be a list')