shinnytech / tqsdk-js Goto Github PK
View Code? Open in Web Editor NEW期货行情/历史数据/交易 开发包
Home Page: http://www.shinnytech.com/diff
期货行情/历史数据/交易 开发包
Home Page: http://www.shinnytech.com/diff
能否在发布release时打包文件中包含编译好的tqsdk.js,想要直接使用还要去装个nodejs来编译。
多谢。
需要调整连接交易网关的流程:
只需nodejs版,web端可有可无,期待ctp完整的功能能被实现
this.clientSystemInfo = clientSystemInfo
this.clientAppIds = clientAppId
// 登录
login (payload) {
this.trade_accounts[payload.user_id].ws.send({
aid: 'req_login',
bid: payload.bid,
user_name: payload.user_id,
password: payload.password,
client_system_info: this.clientSystemInfo,
client_app_id: this.clientAppId
})
}
client_app_id: this.clientAppId
应该为
client_app_id: this.clientAppIds
或者同步上方变量名。
虽然:insert_order已经deprecated了,但是现在好像已经不能正常调用了。
在 shinny-futures-web 项目中使用的tqsdk.js 是1.0.12的还可以正常使用。
之后多账户版本无法正常调用insert_order
调用完ws的send会有个close event,
close CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: "", type: "close", …}
然后会重开一个websocket连接在新连接中才会发送数据,没大明白原因,麻烦看一下谢谢。
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.