haoziwlh / ftdc Goto Github PK
View Code? Open in Web Editor NEWimplement ftdc protocol of CTP in java
License: Apache License 2.0
implement ftdc protocol of CTP in java
License: Apache License 2.0
能提供ctp的行情解析吗?
你好,有一个问题想请教作者:
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[]的具体作用和来源么?
我看ftdc的数据包和文档根本对不上,有详细的参考资料吗?
概览了一下代码,有些疑问,请赐教。
FtdClientPool 中的pollMap以ip+port为key,以FixedChannelPool为value;则我认为,FtdClientPool 中的所有连接对brokerId及userId不敏感(FtdClientPool 中的acquire方法并未将brokerId及userId作为取连接的依据),每次发送登录,从整个pool中取一个连接,登录成功时与Spi及Session绑定。
如果上述未理解错误,则目前尚无法连接多家期货公司。
建议两种方案:
1:取消FtdClientPool的单例机制,每期货公司创建一实例。
2:在FtdClientPool获取连接的机制中加入brokerId与fixedChannelPool的对应关系。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.