Giter VIP home page Giter VIP logo

tqsdk-js's People

Contributors

dependabot[bot] avatar shinny-mayanqiong avatar shinny-yangyang 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  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  avatar  avatar  avatar  avatar  avatar

tqsdk-js's Issues

关于多账户版本后insert_order无法正常使用

   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连接在新连接中才会发送数据,没大明白原因,麻烦看一下谢谢。

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.