Skip to main content

LevelDB database adapter for vn.py quant trading framework.

Project description

VeighNa框架的LevelDB数据库接口

说明

基于plyvel开发的LevelDB数据库接口。

对于不同操作系统需要安装不通版本的plyvel。对于linux与windows会自动安装适配的plyvel与plyvel-win32。

对于macox操作系统,需要手动下载源码进行安装,并在安装前将源码setup.py中

if platform.system() == 'Darwin':
    extra_compile_args += ['-stdlib=libc++']

修改为

if platform.system() == 'Darwin':
    extra_compile_args = ['-Wall', '-g', '-x', 'c++', '-std=c++11', '-fno-rtti']

再运行

python -m pip install .

进行手动安装。方法参考自[https://github.com/wbolster/plyvel/issues/114]。

使用

在VeighNa中使用LevelDB时,需要在全局配置中填写以下字段信息:

名称 含义 必填 举例
database.name 名称 leveldb
database.database 实例 vnpy_data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnpy_leveldb-1.0.3.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

vnpy_leveldb-1.0.3-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page