You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.9 KiB
71 lines
1.9 KiB
|
|
[grpc] |
|
maxSendMsgSize = "8Mi" |
|
maxRecvMsgSize = "8Mi" |
|
readBufferSize = "8Ki" |
|
writeBufferSize = "8Ki" |
|
|
|
[grpc.keepalive] |
|
idleTimeout = "60s" # 空闲连接超时 |
|
forceCloseWait = "20s" |
|
keepAliveInterval = "60s" # 发送 ping 的间隔 |
|
keepAliveTimeout = "20s" # ping 超时 |
|
maxLifeTime = "2h" |
|
|
|
[etcd] |
|
endpoints = ["127.0.0.1:7079"] |
|
username = "" |
|
password = "" |
|
|
|
[database.mysql] |
|
logMode = "info" |
|
# https://gorm.io/zh_CN/docs/connecting_to_the_database.html |
|
mysql = { DSN = "root:123456@tcp(127.0.0.1:7306)/sig?charset=utf8&parseTime=True&loc=Local" } |
|
|
|
[database.postgres] |
|
logMode = "info" |
|
postgres = { DSN = "host=127.0.0.1 port=5432 user=postgres password=123456 dbname=sig sslmode=disable TimeZone=Asia/Shanghai" } |
|
|
|
|
|
[database.clickhouse] |
|
# dsn = "clickhouse://user:password@192.168.0.137:9000/game?dial_timeout=10s&read_timeout=20s" |
|
addr = "127.0.0.1:7900" |
|
database = "sig" |
|
username = "root" |
|
password = "123456" |
|
dial_timeout = 10 |
|
read_timeout = 20 |
|
logsql = false |
|
|
|
[database.kvrocks] |
|
addr = "127.0.0.1:7666" |
|
password = "" |
|
minIdleConns = 3 |
|
|
|
[tsdb] |
|
active = "victoriametrics" |
|
|
|
[tsdb.victoriametrics] |
|
addr = "http://127.0.0.1:8428" |
|
|
|
[exchange.okx] |
|
# apiKey = "7273282c-90f5-498f-9fe0-140ae07f5a73" |
|
# secretKey = "47F9F373CF43827497CA2EF99E889D48" |
|
# passphrase = "Sopod.2347." |
|
apiKey = "48be46ec-30ad-4f6f-a5e2-c9ea712df9cd" |
|
secretKey = "12323BA1B411A2235650BBD784850953" |
|
passphrase = "Tm.123456789" |
|
receiveBuffer = 4096 |
|
marketSubscribeLimit = 16 |
|
consumeBatch = 1024 |
|
consumeLater = 2000 # 时间到达later或者数据累计到batch触发consume |
|
httpProxy = "http://192.168.1.5:7890" |
|
|
|
# 模拟盘API交易地址如下: |
|
# REST:https://www.okx.com |
|
# WebSocket公共频道:wss://wspap.okx.com:8443/ws/v5/public |
|
# WebSocket私有频道:wss://wspap.okx.com:8443/ws/v5/private |
|
# WebSocket业务频道:wss://wspap.okx.com:8443/ws/v5/business |
|
|
|
# binance key RYgJrvqP4iGqdRth14r0ChgWo8eg0wPEcFqDttsKzvUJDyhOKvPiz42tXxjYIMiG |
|
# secret GLTzNNYzC0AbcINPAYfuKDjkWnAMQUhsyd1ed7ubcdzIRrFZBGUrOAkubqyjekVp
|
|
|