def test_1d_kdata_recorder(): recorder = CoinKdataRecorder(exchanges=['binance'], codes=['EOS/USDT'], level=IntervalLevel.LEVEL_1DAY, one_shot=True) try: recorder.run() except: assert False
def test_1h_kdata_recorder(): recorder = CoinKdataRecorder(exchanges=['binance'], codes=['EOS/USDT'], level=TradingLevel.LEVEL_1HOUR, one_shot=True) try: recorder.run() except: assert False
def test_1h_kdata_recorder(): recorder = CoinKdataRecorder(exchanges=['binance'], codes=['EOS/USDT'], level=IntervalLevel.LEVEL_1HOUR, real_time=False) try: recorder.run() except: assert False