add sma ema macd
This commit is contained in:
parent
e36950e6b3
commit
dcb570c75a
|
@ -13,15 +13,15 @@ Binance:
|
|||
|
||||
RedisCluster:
|
||||
Host: localhost:6379
|
||||
Type: node
|
||||
Type: nodeda
|
||||
|
||||
Cassandra:
|
||||
Hosts:
|
||||
- localhost
|
||||
- 10.0.0.13
|
||||
Port: 9042
|
||||
Keyspace: kline
|
||||
Keyspace: digimon
|
||||
UseAuth: true
|
||||
Username: cassandra
|
||||
Username: cassdandra
|
||||
Password: cassandra
|
||||
ConnectTimeoutSec: 10
|
||||
NumConns: 2
|
||||
|
|
|
@ -14,6 +14,7 @@ import (
|
|||
|
||||
type GetHistoryKlineDataLogic struct {
|
||||
ctx context.Context
|
||||
|
||||
svcCtx *svc.ServiceContext
|
||||
logx.Logger
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
|||
KeySpace: c.Cassandra.Keyspace,
|
||||
})
|
||||
|
||||
wp, err := ants.NewPool(1024)
|
||||
wp, err := ants.NewPool(4096)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue