Loading...
Loading...
Auxiliary development skill for Tongda Xin quantitative platform (TdxQuant). Use this skill when users mention "Tongda Xin", "TDX", "TdxQuant", "quantitative trading" or ask about the usage of the `tqcenter` module. It can help with environment setup, API calling, market data acquisition and trading strategy implementation.
npx skill4agent add wzcxbg/develop-agent-skills tdx-quant-devtqcentertqcenterPYPlugins/userC:/new_tdx64/PYPlugins/usersys.pathimport sys
sys.path.append('C:/new_tdx64/PYPlugins/user')
from tqcenter import tq
if __name__ == '__main__':
#所有策略连接通达信客户端都必须调用此函数进行初始化
tq.initialize(__file__)
#获取平安银行日线前复权收盘数据
df = tq.get_market_data(
field_list = ['Close'],
stock_list = ["000001.SZ"],
start_time = '20251219',
end_time = '20251225',
dividend_type='front',
period='1d',
)
print(df)C:/new_tdx64https://data.tdx.com.cn/vipdoc/hsjday.zipC:/new_tdx64/vipdochttps://data.tdx.com.cn/vipdoc/tdxfin.zipC:/new_tdx64/vipdoc/cwPYPlugins/usersys.pathFileNotFoundError: Could not find module ... TPythClient.dlltdxrpcx64.dll../PYPlugins/count