Example #1
0
def test_1d_kdata_recorder():
    recorder = JqChinaStockKdataRecorder(codes=SAMPLE_STOCK_CODES,
                                         sleeping_time=0,
                                         level=IntervalLevel.LEVEL_1DAY,
                                         real_time=False)
    try:
        recorder.run()
    except:
        assert False
Example #2
0
def test_5m_kdata_recorder():
    recorder = JqChinaStockKdataRecorder(codes=['000338'],
                                         sleeping_time=0,
                                         level=IntervalLevel.LEVEL_5MIN,
                                         real_time=False,
                                         start_timestamp='2019-01-01')
    try:
        recorder.run()
    except:
        assert False
Example #3
0
def test_1d_hfq_kdata_recorder():
    recorder = JqChinaStockKdataRecorder(codes=['000338'],
                                         sleeping_time=0,
                                         level=IntervalLevel.LEVEL_1DAY,
                                         real_time=False,
                                         adjust_type='hfq')
    try:
        recorder.run()
    except:
        assert False
Example #4
0
def test_1h_kdata_recorder():
    recorder = JqChinaStockKdataRecorder(
        codes=["000338"],
        sleeping_time=0,
        level=IntervalLevel.LEVEL_1HOUR,
        real_time=False,
        start_timestamp="2019-01-01",
    )
    try:
        recorder.run()
    except:
        assert False