vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 5
声望: 0

vt_setting.json文件在哪里?全局配置的数据库设置在里面?请教了。

Member
avatar
加入于:
帖子: 5
声望: 0

终于找到了。

description

{
"font.family": "Arial",
"font.size": 12,
"log.active": true,
"log.level": 50,
"log.console": true,
"log.file": true,
"email.server": "smtp.qq.com",
"email.port": 465,
"email.username": "",
"email.password": "",
"email.sender": "",
"email.receiver": "",
"rqdata.username": "",
"rqdata.password": "",
"database.driver": "MySQL80",
"database.database": "vnpy",
"database.host": "localhost",
"database.port": 3306,
"database.user": "root",
"database.password": "XXXXXXXXX",
"database.authentication_source": "admin"
}

Member
avatar
加入于:
帖子: 5
声望: 0

坑太多了,"database.driver": "MySQL80",,竟然认大小写,只能是这样:"database.driver": "mysql",

Member
avatar
加入于:
帖子: 5
声望: 0

成功了。
description

Administrator
avatar
加入于:
帖子: 4208
声望: 239

【vnpy-community】公众号中有详细的文章介绍。。。

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