def _example_rt_data(quote_ctx):
    """
    获取分时数据，输出 时间，数据状态，开盘多少分钟，目前价，昨收价，平均价，成交量，成交额
    """
    stock_code_list = ["US.AAPL", "HK.00700"]

    ret_status, ret_data = quote_ctx.subscribe(stock_code_list, ft.SubType.RT_DATA)
    if ret_status != ft.RET_OK:
        print(ret_data)
        exit()

    for stk_code in stock_code_list:
        ret_status, ret_data = quote_ctx.get_rt_data(stk_code)
        if ret_status != ft.RET_OK:
            print(stk_code, ret_data)
            exit()

        print("%s RT_DATA" % stk_code)
        print(ret_data)
        print("\n\n")