Giter Club home page Giter Club logo

Comments (6)

zhangshuiyong avatar zhangshuiyong commented on May 24, 2024

感谢建议,以下简单回复
1.@Elric-pp editorconfig风格的config?你是说修改一下userconfig配置文件的风格吗?其他人提交代码是?
2.因为现在好像量化圈子还比较小,暂时没有开其他讨论组,个人精力有限管理
3.global变量只是用了几个,就是主程序,主引擎,策略引擎,事件分发器
4.接收的逻辑分离?具体是指?由于node.js是一个事件队列,策略耗时长是可能阻塞着tick排队在事件队列中,如果策略逻辑耗时长建议用tagg2等多线程库。接收tick逻辑现在是基于事件的会直接由strategyEngine推送到策略

from nodequant.

Elric-pp avatar Elric-pp commented on May 24, 2024
  1. 就是一些代码风格的配置,比如说缩进,tab 或者 空格,还有 js 的风格检测,这样子像我贡献代码的时候可以保证整个项目的代码风格保持一致
  2. 其实我可以开一个:D,不过这个不是特别重要啦,方便项目管理而已。
  3. 是的,但是模块化的方案会比较可读些
  4. 就是 CTP client 直接推送数据然后存到 redis 里,和策略逻辑分离开来,不然如果要怎么实现历史数据回测呢?

from nodequant.

zhangshuiyong avatar zhangshuiyong commented on May 24, 2024

刚放完假,懒洋洋的。关于第四点建议,redis数据库的数据是存在内存的,交易系统用它是非常好的。行情数据太多了,要用其他数据库做回测。回测想用ssdb数据库+cluster多进程+网页显示回测结果图形,各方面差不多准备好了,差点时间把它写了。@Elric-pp

from nodequant.

yuu2lee4 avatar yuu2lee4 commented on May 24, 2024

用eslint做代码风格的规范统一还是有必要的,另外建议升级到node 8,这样基本支持所有的es6特性了

from nodequant.

zhangshuiyong avatar zhangshuiyong commented on May 24, 2024

eslint风格之后会用工具统一,node 8会升级,因为现在node.js官网node 8还不是LTS版本,10月31日才是LTS版本,所以会在10月31日之后升级到node 8 @yuu2lee4

from nodequant.

gucong3000 avatar gucong3000 commented on May 24, 2024

建议添加 eslint , editorconfig 等代码风格 config , 比较方便其他人提交

我对这个很感兴趣,如果作者不介意,我愿意完成这项任务。

from nodequant.

Related Issues (18)

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.