Example #1
0
 def test_orders(cls):
     ''' Method for testing orders '''
     body = '{"pair":"XXBTZJPY", "count":"10"}'
     orders = kraken.get_current_orders(None, None, body, 25)
     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"] == "Kraken", "Source should be 'Kraken'")
     ok_(float(orders["timestamp"]) > 0, "Timestamp should be > zero")