purequant集成了个人信息配置模块,加载配置文件就能够实现个人私密信息的导入;
配置文件是一个名为config.json
的文件,只需将其中参数修改为自己的即可:
config.json
集成了以下参数信息:
- 1.STATUS #运行状态参数
"STATUS": {"first_run": "true" }
- 2.MODE #回测模式切换
"MODE": { "backtest": "disabled" }
- 3.ASSISTANT #交易助手
使用交易助手可以实现自动撤单以及撤单后重发委托直至完全成交的功能,避免错过行情。
"ASSISTANT": {
"automatic_cancellation": "true",
"reissue_order": "0.1%",
"price_cancellation": "true",
"amplitude": "0.5%",
"time_cancellation": "true",
"seconds": 10 }
- 4.EXCHANGE #申明交易所
"access_key": "您的API信息",
"secret_key": "您的API信息",
"passphrase": "您的账户密码"
- 5.MYSQL #数据库启用
"authorization": "enabled",
"user_name": "root",
"password": "root"
- 6.MONGODB #数据库启用(二选1)
"MONGODB":
"authorization": "disabled",
"user_name": "root",
"password": ""
-
7.PUSH #交易信息推送
PUSH": { "sendmail": "false", "dingtalk": "true", "twilio": "false"
-
8.SYNCHRONIZE #同步
"SYNCHRONIZE": { "overprice": { "range": "0.1%"
-
9.LOG #报错信息
"LOG": { "level": "debug", "handler": "file"
-
10.MARKETS_SERVER
"MARKETS_SERVER": { "platform": { "huobi": { "console": "false", "database": "trade", "collection": "hbdata", "channels": [ ["market.BTC_NW.depth.step6"], ["market.BTC_CQ.kline.1min"]
-
11.DINGTALK #钉钉推送
"ding_talk_api": "您的DINGTALK API"
-
12.其它推送方式
"TWILIO": { "accountSID" : "账户信息", "authToken" : "账户信息", "myNumber" : "账户信息", "twilio_Number" : "账户信息" }, "SENDMAIL": { "from_addr" : "账户信息", "password" : "账户信息", "to_addr" : "账户信息", "smtp_server" : "账户信息", "port": 587
-
通过配置模块快速导入个人API信息,方便快捷。
-
更多内容可以访问:http://purequant.club
网友评论