VeighNa量化社区
你的开源社区量化交易平台 | vn.py | vnpy
Member
avatar
加入于:
帖子: 37
声望: 0

地址: https://github.com/siaosing/vnpy_arctic/tree/Dev
由于arctic不再支持python3.7之后的版本,其官方团队切换至ArcticDB项目(目前支持python3.6~3.11),VeighNa官方团队的vnpy_arctic在VNStudio 3.0系列之后不再维护更新。 本项目基于ArcticDB文档和vnpy_arctic代码重新开发,供大家参考使用。

ArcticDB支持多进程同时读取同一数据表,默认不支持同时写入同一数据表(Arctic libraries support concurrent writes and reads to multiple symbols as well as concurrent reads to a single symbol. However, concurrent writers to a single symbol are not supported other than for primitives that explicitly state support for single-symbol concurrent writes.)同时写入同一数据表需要用使用stage参数(Note that write is not designed for multiple concurrent writers over a single symbol unless the staged keyword argument is set to True. If staged is True, written segments will be staged and left in an "incomplete" stage, unable to be read until they are finalized. This enables multiple writers to a single symbol - all writing staged data at the same time - with one process able to later finalize all staged data rendering the data readable by clients. To finalize staged data, see finalize_staged_data.)

测试了一下 读取47475个bar 耗时在0.39s左右,相比之下sqlite耗时2.48s左右
(vt_setting.json中需配置
"database.timezone": "Asia/Shanghai",
"database.name": "arcticdb")

description
description

Member
avatar
加入于:
帖子: 268
声望: 4

希望VeighNa官方团队在VNStudio 3.0系列之后基于ArcticDB维护更新一版就好了,多次反馈没有回音。

Member
加入于:
帖子: 4
声望: 0

本来想自己撸发现论坛已经有老哥干了,感谢

Member
avatar
加入于:
帖子: 118
声望: 2

ranjianlin wrote:

希望VeighNa官方团队在VNStudio 3.0系列之后基于ArcticDB维护更新一版就好了,多次反馈没有回音。
晓优好像说这个Arcticdb 协议好像不太允许商用,4.0版本已经打算移除了

Member
avatar
加入于:
帖子: 1824
声望: 138

具体协议可以看这里:https://github.com/man-group/ArcticDB/blob/master/LICENSE.txt

确实不是个OSI批准的开源协议

Member
avatar
加入于:
帖子: 268
声望: 4

王野 wrote:

ranjianlin wrote:

希望VeighNa官方团队在VNStudio 3.0系列之后基于ArcticDB维护更新一版就好了,多次反馈没有回音。
晓优好像说这个Arcticdb 协议好像不太允许商用,4.0版本已经打算移除了

3.0版本本来就没有支持,4.0版本说移除,我就没看懂了。

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】