Example #1
0
 def test_get_last_trades(self):
     trds = coinex_api.last_trades(2)
     self.assertTrue(
         isinstance(
             trds,
             list
         ),
         'last trades should be a list'
     )
Example #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
Example #3
0
 def test_get_last_trades(self):
     trds = coinex_api.last_trades(2)
     self.assertTrue(isinstance(trds, list), 'last trades should be a list')