Giter Site home page Giter Site logo

ctpja's Introduction

CTPJA

CTP Java Adapter . for quote datafeed and trade .

开发目的: 提供Java调用接口,方便Java开发人员使用API。

设计思路: 通过Bridj开源组件调用c++编写的so。 Java接口完全和c++头文件定义一致,没有做任何自定义转换。

代码说明: 1. 包 thostmduserapi 和 thosttraderapi 是c++头文件定义转换到java类定义。 2. 依赖bridj.jar包。在lib目录下有asm,osgi,bridj jar包,项目需要引入。 3. 在package test下有TestMD.java TestMDSpi.java TestTrade.java TestTrade Spi.java是示例代码。

使用步骤: 1. 继承CThostFtdcMdSpi和CThostFtdcTraderSpi类,具体可以参考test包下示例。或者参考官方提供的代码示例。

特别说明: 此项目是DataFeed和交易执行模块中的一部分,希望对Java程序员有帮助。

免责说明: 交易有风险,入市须谨慎。 不负责由此产生的损失。

技术支持: [email protected] http://blog.sina.com.cn/hfttrade http://blog.sina.com.cn/s/articlelist_2321482330_8_1.html

ctpja's People

Contributors

tradercoder avatar

Watchers

 avatar James Cloos avatar

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.