跳到正文
PTrade
PTrade指标、日志与工具

get_research_path

该接口用于获取研究界面根目录路径。

原型

get_research_path()

适用环境

该函数可在回测、交易模块使用

释义

该接口用于获取研究界面根目录路径。

注意事项

无

参数

无

返回值

返回一个字符串类型对象(str)

示例

def initialize(context):
    g.security = "600570.SS"
    set_universe(g.security)
    path = get_research_path()

def handle_data(context, data):
    pass

本页目录