示例#1
0
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
示例#2
0
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
示例#3
0
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