修改Kline获取方式为Websocket缓存。

This commit is contained in:
yuanshi2016
2025-11-02 17:59:19 +08:00
parent 3b1db6f64f
commit 95c32fcb2e
8 changed files with 21 additions and 495 deletions

View File

@@ -265,6 +265,7 @@ func main() {
// 启动流行情数据 - 默认使用所有交易员设置的币种 如果没有设置币种 则优先使用系统默认
go market.NewWSMonitor(150).Start(database.GetCustomCoins())
//go market.NewWSMonitor(150).Start([]string{}) //这里是一个使用方式 传入空的话 则使用market市场的所有币种
// 设置优雅退出
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)