PostgreSQL database adapter for VeighNa quant trading framework.
Project description
VeighNa框架的PostgreSQL数据库接口
说明
基于peewee开发的PostgreSQL数据库接口。
使用
全局配置
在VeighNa中使用PostgreSQL时,需要在全局配置中填写以下字段信息:
| 名称 | 含义 | 必填 | 举例 |
|---|---|---|---|
| database.name | 名称 | 是 | postgresql |
| database.host | 地址 | 是 | localhost |
| database.port | 端口 | 是 | 5432 |
| database.database | 实例 | 是 | vnpy |
| database.user | 用户名 | 是 | postgres |
| database.password | 密码 | 是 | 123456 |
请注意,VeighNa不会主动为关系型数据库创建数据库,所以请确保你所填的database.database字段对应的数据库已经创建好了。若未创建数据库,请手动连上数据库并创建。
创建实例
VeighNa不会主动为PostgreSQL数据库创建实例,所以使用前请确保database.database字段中填写的的数据库实例已经创建了。
若实例尚未创建,可以使用【pgAdmin 4】客户端的【Create Database】进行操作。
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vnpy_postgresql-1.1.1.tar.gz.
File metadata
- Download URL: vnpy_postgresql-1.1.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbe5265b087cb37312fc479690973b03b4870d3a18993bf92d7a71737c9b7b3d
|
|
| MD5 |
6c337a631f24816b2b54b0e5e2343ee2
|
|
| BLAKE2b-256 |
14c564131906800d681d9c206a618e6c7ed9caf2fe57201afbaad1710cc4a6f0
|
File details
Details for the file vnpy_postgresql-1.1.1-py3-none-any.whl.
File metadata
- Download URL: vnpy_postgresql-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a29090489f6707d00ba8d2cff90da7fd9e1bdc6a18a3aac528d580cc6187ffd
|
|
| MD5 |
7123422d94fdc5eb81f74ef933c5a533
|
|
| BLAKE2b-256 |
2f849ed13ed34916c7d42b06a128b4ca516cc45dd8c36fc91b7de8545fa488dc
|