Giter Club home page Giter Club logo

ftdc's Introduction

项目背景

1.CTP默认客户端适用于单一用户,多个用户同时使用一个则性能耗费增加

项目介绍

1.使用java实现ftdc协议,为代理服务性能提升提供保证

进度

  1. 完成登录接口
  2. 完成心跳
  3. 签约银行查询
  4. 完成登出接口
  5. 完成结算单信息查询
  6. 完成结算单确认
  7. 完成结算单确认查询
  8. 完成资金账户查询
  9. 完成报单功能
  10. 完成持仓查询功能
  11. 完成报单查询功能
  12. 完成成交查询功能
  13. 完成合约手续费率查询功能
  14. 完成合约保证金比例查询功能
  15. 完成报单修改功能
  16. 完成交易密码修改功能
  17. 完成银期转账功能
  18. 完成期银转账功能

Features

  1. 连接池改造完毕
  2. 支持一个服务接入多家期货公司

使用方式

mvn package

ftdc's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ftdc's Issues

多期货公司问题

概览了一下代码,有些疑问,请赐教。
FtdClientPool 中的pollMap以ip+port为key,以FixedChannelPool为value;则我认为,FtdClientPool 中的所有连接对brokerId及userId不敏感(FtdClientPool 中的acquire方法并未将brokerId及userId作为取连接的依据),每次发送登录,从整个pool中取一个连接,登录成功时与Spi及Session绑定。
如果上述未理解错误,则目前尚无法连接多家期货公司。
建议两种方案:
1:取消FtdClientPool的单例机制,每期货公司创建一实例。
2:在FtdClientPool获取连接的机制中加入brokerId与fixedChannelPool的对应关系。

关于ReqUserLogin报文

你好,有一个问题想请教作者:
ReqUserLogin.class中,有一个PADDING的常量:
private static final byte[] PADDING = new byte[] { 0x10, 0x01, 0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x06, 0x00, 0x02, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, 0x10, 0x01, 0x00, 0x06, 0x00, 0x03, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, 0x10, 0x01, 0x00, 0x06, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00 };
虽然您写了注释“猜测是控制订阅私有流、公有流”
但我在FTD的文档里都找不到。
能请问这个byte[]的具体作用和来源么?

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.