6 changed files with 108 additions and 3 deletions
@ -0,0 +1,55 @@ |
|||||||
|
|
||||||
|
[grpc] |
||||||
|
maxSendMsgSize = "8Mi" |
||||||
|
maxRecvMsgSize = "8Mi" |
||||||
|
readBufferSize = "8Ki" |
||||||
|
writeBufferSize = "8Ki" |
||||||
|
|
||||||
|
[grpc.keepalive] |
||||||
|
idleTimeout = "60s" # 空闲连接超时 |
||||||
|
keepAliveInterval = "60s" # 发送 ping 的间隔 |
||||||
|
keepAliveTimeout = "20s" # ping 超时 |
||||||
|
maxLifeTime = "2h" |
||||||
|
|
||||||
|
[etcd] |
||||||
|
endpoints = ["10.255.172.128:7079"] |
||||||
|
username = "" |
||||||
|
password = "" |
||||||
|
|
||||||
|
[consul] |
||||||
|
address = "10.255.172.128:8500" |
||||||
|
|
||||||
|
[nats] |
||||||
|
url = "nats://@10.255.172.128:7222" |
||||||
|
|
||||||
|
[database.mysql] |
||||||
|
logMode = "info" |
||||||
|
# https://gorm.io/zh_CN/docs/connecting_to_the_database.html |
||||||
|
mysql = { DSN = "root:123456@tcp(10.255.172.128:7306)/sig?charset=utf8&parseTime=True&loc=Local" } |
||||||
|
|
||||||
|
[database.postgres] |
||||||
|
logMode = "info" |
||||||
|
postgres = { DSN = "host=10.255.172.128 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 = "10.255.172.128:9000" |
||||||
|
database = "sig" |
||||||
|
username = "root" |
||||||
|
password = "123456" |
||||||
|
dial_timeout = 10 |
||||||
|
read_timeout = 20 |
||||||
|
logsql = true |
||||||
|
logsqlCk = false |
||||||
|
|
||||||
|
[database.kvrocks] |
||||||
|
addr = "10.255.172.128:7666" |
||||||
|
password = "" |
||||||
|
minIdleConns = 3 |
||||||
|
|
||||||
|
[tsdb] |
||||||
|
active = "victoriametrics" |
||||||
|
|
||||||
|
[tsdb.victoriametrics] |
||||||
|
addr = "http://10.255.172.128:8428" |
||||||
@ -0,0 +1,43 @@ |
|||||||
|
|
||||||
|
grpcReflection = true # 注册grpc反射服务 |
||||||
|
|
||||||
|
[register] |
||||||
|
nodeId = 1 # grpc服务节点id, 多实例唯一 |
||||||
|
addr = ":8011" # grpc 服务端口 |
||||||
|
attrs = { weight = 10 } # grpc 服务权重 |
||||||
|
|
||||||
|
# okx exchange |
||||||
|
[okx] |
||||||
|
apiKey = "48be46ec-30ad-4f6f-a5e2-c9ea712df9cd" |
||||||
|
secretKey = "12323BA1B411A2235650BBD784850953" |
||||||
|
passphrase = "Tm.123456789" |
||||||
|
receiveBuffer = 4096 |
||||||
|
marketSubscribeLimit = 16 |
||||||
|
consumeBatch = 1024 |
||||||
|
consumeLater = 2000 # 时间到达later或者数据累计到batch触发consume |
||||||
|
# httpProxy = "" |
||||||
|
# httpProxy = "http://192.168.1.8:7890" |
||||||
|
httpProxy = "http://10.255.183.209: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 |
||||||
|
|
||||||
|
[exchanges.okx] |
||||||
|
api_key = "your-api-key" |
||||||
|
secret_key = "your-secret-key" |
||||||
|
passphrase = "your-passphrase" |
||||||
|
|
||||||
|
[exchanges.binance] |
||||||
|
api_key = "your-api-key" |
||||||
|
secret_key = "your-secret-key" |
||||||
|
|
||||||
|
[exchanges.bitget] |
||||||
|
api_key = "your-api-key" |
||||||
|
secret_key = "your-secret-key" |
||||||
|
passphrase = "your-passphrase" |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
|
||||||
|
httpAddr = ":7001" |
||||||
|
wsAddr = ":7101" |
||||||
|
|
||||||
|
sigServer = "http://sig-admin:7009" # 后台服务 |
||||||
Loading…
Reference in new issue