def setUp(self): self.client = SURBTC.Auth(API_KEY, API_SECRET, TEST)
def test_key_secret(self): self.assertRaises(ValueError, lambda: SURBTC.Auth())
def setUp(self): self.client = SURBTC.Auth('BAD_KEY', 'BAD_SECRET')
def setUp(self): self.client = SURBTC.Public(TEST)
from surbtc import SURBTC client = SURBTC.Public() jsonBTC = client.ticker("BTC_CLP") ticker_btc = client.ticker('BTC_CLP')[0][1] print(str(ticker_btc)) print(jsonBTC)