Giter VIP home page Giter VIP logo

ftdcnet.ctp's Introduction

FtdcNet.CTP

.Net wrapper for ftdc2c_ctp. Support x86/x64/AnyCPU.

License

Licensed under the MIT License

Version

git branche => CTP version

  • v6.5.1   => CTP version is V6.5.1   (20200908)
  • v6.3.19 => CTP version is V6.3.19 (20200106)
  • v6.3.15 => CTP version is V6.3.15 (20190220)

Build from source

you need to specify --recursive to clone submodules as well.
git clone --recursive https://github.com/shawn666liu/FtdcNet.CTP.git

switch to other branch (other CTP version)
for example, switch to v6.3.15
git checkout v6.3.15
cd ftdc2c_ctp
git checkout v6.3.15

Use NuGet (recommend)

https://www.nuget.org/packages/FtdcNet.CTP

版本对应

  • FtdcNet.CTP.1.3.0.nupkg => CTP v6.5.1
  • FtdcNet.CTP.1.2.0.nupkg => CTP v6.3.19
  • FtdcNet.CTP.1.1.0.nupkg => CTP v6.3.15

按所需CTP版本安装

  • Install-Package FtdcNet.CTP -Version 1.3.0
  • Install-Package FtdcNet.CTP -Version 1.2.0
  • Install-Package FtdcNet.CTP -Version 1.1.0

使用

  • NetCore及Net5项目,使用NuGet Manager添加Package之后,会自动拷贝所需文件到可执行目录下的runtimes目录
  • Net Framework项目,如果platform是AnyCPU或者是VS2013项目,需要手动拷贝runtimes目录到可执行文件的输出目录,
    添加方法一: vs项目添加包后,会在C:\Users\????\.nuget\packages\ftdcnet.ctp 下保留ftdcnet.ctp.???.nupkg
    添加方法二: 从https://www.nuget.org/packages/FtdcNet.CTP 页面, 选中合适版本, 点击右边"Download package"下载nupkg包
    使用7zip或者winzip打开下载后的包,比如 ftdcnet.ctp.1.2.0.nupkg 文件,提取runtimes目录到你的exe所在目录
  • Net Framework项目,如果是VS2019,可以不使用AnyCPU,platform选择x86/x64时,VS会自动复制相应的dll到exe目录,而无需runtimes目录

ChangeLog

See ChangeLog.md

ftdcnet.ctp's People

Contributors

shawn666liu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ftdcnet.ctp's Issues

接受行情时使用P2S函数时,报AccessViolationException

作者您好,在订阅较多的合约时,调用OnTrnDepthMarketData时间时,使用P2S函数有可能程序会报出AccessViolationException错误。描述为: Attempted to read or write protected memory。请问有什么办法修复么?非常感谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.