首页
策略
文库
社区
API文档
登录
立即注册
高频交易
交流分享
原创教程
Concurrent Strategy Execution with JavaScript Multithreading Support
Let the strategy program be executed concurrently, and add multi-thread support at the bottom of the system to the JavaScript strategy When developing
FMZ~Lydia
2023-03-07 15:12:04
0
816
让策略程序真正并发执行,给JavaScript策略增加系统底层多线程支持
让策略程序真正并发执行,给JavaScript策略增加系统底层多线程支持 在使用JavaScript语言在FMZ上开发策略时,由于策略架构是轮询的。如果有并发设计的场景是通过exchange.Go函数来进行一些接口的并发调用,从而实现一些并发场景的需求。但是如果希望真正单独创建一个线程执行一系列
发明者量化-小小梦
2023-03-02 14:19:15
3
1820
使用JavaScript实现量化策略并发执行——封装Go函数
在实现量化策略时,很多情况下,并发执行可以降低延时提升效率。以对冲机器人为例,需要获取两个币的深度,顺序执行的代码如下: var depthA = exchanges[0].GetDepth() var depthB = exchanges[1].GetDepth() 请求一次rest API存在延
小草
2019-06-29 11:24:57
3
2579