Esempio n. 1
0
 def test_orders(cls):
     """ method for testing orders """
     orders = btx.get_current_orders(cls.TEST_CCY)
     ok_(len(orders["asks"]) > 0, "Asks array should not be empty")
     ok_(len(orders["bids"]) > 0, "Bids array should not be empty")
     ok_(orders["source"] == "BitX", "Source should be 'BitX'")
     ok_(float(orders["timestamp"]) > 0, "Timestamp should be > zero")