1 Star 0 Fork 23

吴海洪/future_agent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run_sac.py 825 Bytes
一键复制 编辑 原始数据 按行查看 历史
邹吉华 提交于 2023-04-04 17:20 . 1.3.1
from ctpbee import CtpBee
from runtime import CTA
from stable_baselines3 import SAC
if __name__ == '__main__':
app = CtpBee('ctp', __name__)
info = {
"CONNECT_INFO": {
"userid": "xxxx",
"password": "xxxx",
"brokerid": "xxxx",
"md_address": "tcp://112.65.158.2:51217",
"td_address": "tcp://112.65.158.2:51209",
"appid": "client_xxxx_0.9.4",
"auth_code": "0000000000000000",
"product_info": ""
},
"INTERFACE": "ctp_se",
"TD_FUNC": True, # Open trading feature
"XMIN":[1]
}
app.config.from_mapping(info) # loading config from dict object
#model = SAC.load("./best_model")
cta = CTA("cta",None,"rb2301.SHFE")
app.add_extension(cta)
app.start()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/highgodudu1982/future_agent.git
[email protected]:highgodudu1982/future_agent.git
highgodudu1982
future_agent
future_agent
master

搜索帮助