add sma ema macd

This commit is contained in:
王性驊 2025-08-23 18:09:41 +08:00
parent e36950e6b3
commit dcb570c75a
3 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -13,7 +13,8 @@ import (
)
type GetHistoryKlineDataLogic struct {
ctx context.Context
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}

View File

@ -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)
}