Beispiel #1
0
 def test_ticker(cls):
     ''' Method for testing ticker '''
     data = json.loads(bts.get_current_ticker())
     ok_(data["pair"] == base.CCY_DEFAULT, "shd be '%s'" % base.CCY_DEFAULT)
     ok_(data["ask"] > 0.00, "ask should not be empty")
     ok_(data["bid"] > 0.00, "bid should not be empty")
     ok_(data["bid"] <= data["ask"], "bid should be < ask")
     ok_(float(data["timestamp"]) > 0, "Timestamp should be > zero")
Beispiel #2
0
 def test_orders(cls):
     ''' Method for testing orders '''
     ok_(bts.get_current_orders() > 0.00)
Beispiel #3
0
 def test_bid(cls):
     ''' Method for testing bid prices '''
     ok_(bts.get_current_bid() > 0.00)
Beispiel #4
0
 def test_ask(cls):
     ''' Method for testing ask prices '''
     ok_(bts.get_current_ask() > 0.00)
Beispiel #5
0
 def test_price(cls):
     ''' Method for testing last price '''
     ok_(bts.get_current_price() > 0.00)