用ctp官方接口写的一个简单demo,具备行情、交易、k线数据以及策略功能,可以连接simnow进行模拟交易

上传者: u012234115 | 上传时间: 2019-12-21 21:24:40 | 文件大小: 1.94MB | 文件类型: zip
本demo简单易懂,适合学习入门,vs2013及以上编译运行,主要是为了展示ctp的接口的用法以及简单的量化交易代码逻辑,不可用于实盘交易。

文件下载

资源详情

[{"title":"( 33 个子文件 1.94MB ) 用ctp官方接口写的一个简单demo,具备行情、交易、k线数据以及策略功能,可以连接simnow进行模拟交易","children":[{"title":"CTPtest-master","children":[{"title":"Debug","children":[{"title":"thosttraderapi.dll <span style='color:#111;'> 1.68MB </span>","children":null,"spread":false},{"title":"thostmduserapi.dll <span style='color:#111;'> 810.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"StrategyTrade.cpp <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"CustomMdSpi.cpp <span style='color:#111;'> 8.18KB </span>","children":null,"spread":false},{"title":"CustomTradeSpi.h <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"StrategyTrade.h <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"TickToKlineHelper.cpp <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"TickToKlineHelper.h <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"CustomMdSpi.h <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"CustomTradeSpi.cpp <span style='color:#111;'> 15.79KB </span>","children":null,"spread":false},{"title":"CTP_API","children":[{"title":"thostmduserapi.lib <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"ThostFtdcUserApiDataType.h <span style='color:#111;'> 233.26KB </span>","children":null,"spread":false},{"title":"error.dtd <span style='color:#111;'> 175B </span>","children":null,"spread":false},{"title":"thosttraderapi.dll <span style='color:#111;'> 1.68MB </span>","children":null,"spread":false},{"title":"thosttraderapi.lib <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"ThostFtdcUserApiStruct.h <span style='color:#111;'> 197.07KB </span>","children":null,"spread":false},{"title":"ThostFtdcTraderApi.h <span style='color:#111;'> 30.32KB </span>","children":null,"spread":false},{"title":"thostmduserapi.dll <span style='color:#111;'> 810.00KB </span>","children":null,"spread":false},{"title":"ThostFtdcMdApi.h <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false},{"title":"error.xml <span style='color:#111;'> 14.82KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CTPtest.sln <span style='color:#111;'> 945B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"CTPtest","children":[{"title":"CTPtest.vcxproj <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"zn1705_market_data.csv <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"CF705_market_data.csv <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"TF1706_market_data.csv <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"market_data.csv <span style='color:#111;'> 67.40KB </span>","children":null,"spread":false},{"title":"CTPtest.vcxproj.filters <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"cs1801_market_data.csv <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"al1712_market_data.csv <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"K_line_data.csv <span style='color:#111;'> 293B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • zfd819 :
    不太理解,谢谢了。
    2020-06-20
  • zfd819 :
    不太理解,谢谢了。
    2020-06-20
  • hello1203 :
    不错,代码有注释,逻辑思路清晰,很适合刚接触的小白参考学习
    2020-02-29
  • hello1203 :
    不错,代码有注释,逻辑思路清晰,很适合刚接触的小白参考学习
    2020-02-29
  • avin :
    不错,值得学习一下
    2019-09-12
  • avin :
    不错,值得学习一下
    2019-09-12
  • ajiva :
    恭喜,太棒了,谢谢
    2019-07-30
  • ajiva :
    恭喜,太棒了,谢谢
    2019-07-30
  • ku3gitxdx :
    适合小白。
    2019-04-08
  • 指尖魔术师 :
    适合小白。
    2019-04-08

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明