BigBrotherTrade/trader

缺少config.ini文件,请问下这个文件怎么写呀?

Closed this issue · 3 comments

988c9ad9bb0f20332d9a0f7c534afe8 运行 main文件时候,报了这个错 应该是我没有config.ini配置文件,拿不到那个secret_key 请问该怎么处理呢?

@505088376 请问你解决了吗? @timercrack 上面的文件没有关于DJANGO的配置呀?

config.ini template

[MSG_CHANNEL]
request_pattern = MSG:CTP:REQ:*
request_format = MSG:CTP:REQ:{}
trade_response_prefix = MSG:CTP:RSP:TRADE:
trade_response_format = MSG:CTP:RSP:TRADE:{}:{}
market_response_prefix = MSG:CTP:RSP:MARKET:
market_response_format = MSG:CTP:RSP:MARKET:{}:{}
weixin_log = MSG:LOG:WEIXIN

[TRADE]
command_timeout = 5
ignore_inst = WH,bb,JR,RI,RS,LR,PM,im

[REDIS]
host = 127.0.0.1
port = 6379
db = 0
encoding = utf-8

[MYSQL]
host = 127.0.0.1
port = 3306
db = QuantDB
user = quant
password = 123456

[QuantDL]
api_key = 123456

[Tushare]
token = 123456

[LOG]
level = DEBUG
format = %(asctime)s %(name)s [%(levelname)s] %(message)s
weixin_format = [%(levelname)s] %(message)s

[DJANGO]
secret_key = your_secret_key_here
debug = True  # or False, depending on your environment
allowed_hosts = *