Example #1
0
def test_MacdTransformer():
    df = get_kdata(entity_id='stock_sz_000338',
                   start_timestamp='2019-01-01',
                   provider='joinquant')

    t = MacdTransformer()

    result_df = t.transform(df)

    print(result_df)
Example #2
0
def test_MacdTransformer():
    df = get_kdata(region=Region.CHN, entity_id='stock_sz_000338',
                   start_timestamp='2019-01-01',
                   provider=Provider.JoinQuant,
                   index=['entity_id', 'timestamp'])

    t = MacdTransformer()

    result_df = t.transform(df)

    print(result_df)
Example #3
0
def test_MacdTransformer():
    df = get_kdata(
        entity_id="stock_sz_000338",
        start_timestamp="2019-01-01",
        provider="joinquant",
        index=["entity_id", "timestamp"],
    )

    t = MacdTransformer()

    result_df = t.transform(df)

    print(result_df)