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