-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.env.sample
77 lines (61 loc) · 1.83 KB
/
.env.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
API_BASE_URL="/api/v1"
SECRET_KEY=123456
# 设置安全连接密码
API_KEY_NAME=auth_token
API_KEY="12345678901234561234"
# It's also possible to declare the list as "*" (a "wildcard") to say that all are allowed.
# But that will only allow certain types of communication, excluding everything that involves credentials: Cookies, Authorization headers like those used with Bearer Tokens, etc.
# So, for everything to work correctly, it's better to specify explicitly the allowed origins.
#ALLOWED_HOSTS='"127.0.0.1", "localhost"'
# mongo数据库驱动
MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_USER=admin
MONGO_PASS=admin
MONGO_AUTHDB=paperplane
MONGO_DBNAME=paperplane
# 配置collection
SITE_CONFIGS_COLLECTION_NAME=configs
# 如果需要和sentry打通,可以设置sentry dsn
# SENTRY_DSN=''
# 账户token长度
TOKEN_LENGTH=20
# 数据精确度
POINT=2
# 模拟交易引擎模式
# simulation 不获取真实行情进行模拟交易,即时模拟成交
# realtime 获取真实行情并进行模拟交易
ENGINE_MODE=realtime
# 是否开启成交量计算模拟
# 引擎模式为SIMULATION下时,此参数失效
# TODO 暂时没有实现相关功能
VOLUME_SIMULATION=False
# 是否开启账户与持仓信息的验证
VERIFICATION=True
# 引擎撮合速度(秒)
# 引擎模式为SIMULATION下时,此参数失效
# 设置此参数时请参考行情的刷新速度
PERIOD=3
# 报告功能开关参数
REPORT_MODE=True
# mongoDB 参数
ACCOUNT_DB="pt_account"
POSITION_DB="pt_position"
TRADE_DB="pt_trade"
ORDERS_BOOK="pt_orders_book"
MARKET_NAME="中国市场"
REPORT="pt_report"
# tushare行情源参数
TUSHARE_TOKEN="12341234123513451345"
# pytdx行情参数
TDX_HOST="114.80.63.5"
TDX_PORT=7709
# 账户初始参数
# 初始资金
ASSETS=1000000.00
# 交易佣金
COST=0.0003
# 印花税
TAX=0.001
# 滑点 暂未实现
SLIPPING=0.01