def test_get_days_candles(self): upbit = PyUpbit() ret = upbit.get_days_candles(market='KRW-ETH', count=200, to='2019-03-08T03:40:00-00:00') self.assertIsNotNone(ret) logging.info(ret)
def test_get_months_candles(self): upbit = PyUpbit() ret = upbit.get_months_candles(market='KRW-BTC', count=200, to='2019-03-08T03:40:00-00:00') self.assertIsNotNone(ret) self.assertNotEqual(len(ret), 0) logging.info(ret)
def test_get_market_all(self): pyupbit = PyUpbit() ret = pyupbit.get_market_all() self.assertIsNotNone(ret) self.assertNotEqual(len(ret), 0) logging.info(ret)
def test_get_ticker(self): pyupbit = PyUpbit() ret = pyupbit.get_ticker(['KRW-BTC', 'BTC-ETH']) self.assertIsNotNone(ret) self.assertNotEqual(len(ret), 0) logging.info(ret)
def test_get_trades_ticks(self): pyupbit = PyUpbit() ret = pyupbit.get_trades_ticks('KRW-ICX') self.assertIsNotNone(ret) self.assertNotEqual(len(ret), 0) logging.info(ret)
def test_get_months_candles(self): pyupbit = PyUpbit() ret = pyupbit.get_weeks_candles('BTC-ETH') self.assertIsNotNone(ret) self.assertNotEqual(len(ret), 0) logging.info(ret)
def test_get_minutes_candles(self): pyupbit = PyUpbit() ret = pyupbit.get_minutes_candles(60, 'KRW-BTC') self.assertIsNotNone(ret) self.assertNotEqual(len(ret), 0) logging.info(ret)
def test_get_orderbook(self): upbit = PyUpbit() ret = upbit.get_orderbook(['KRW-BTC', 'KRW-ETH']) self.assertIsNotNone(ret) self.assertNotEqual(len(ret), 0) logging.info(ret)