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