mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-04 09:58:22 +08:00
feat: migrate to CoinAnk API and improve chart UI
- Chart improvements: professional styling, popular symbols quick selection, simplified B/S legend - Data source migration: use CoinAnk API exclusively for all kline data - Code cleanup: remove Binance WebSocket cache and related code (websocket_client.go, combined_streams.go, monitor.go) - Log optimization: reduce hook spam, suppress 404 errors, increase P&L diff threshold - Lighter integration: add order sync functionality, fix market order precision - Remove ticker merge logic for simplicity
This commit is contained in:
+2
-3
@@ -13,7 +13,7 @@ var (
|
||||
|
||||
func HookExec[T any](key string, args ...any) *T {
|
||||
if !EnableHooks {
|
||||
log.Printf("🔌 Hooks are disabled, skip hook: %s", key)
|
||||
// Hooks are disabled, skip silently
|
||||
var zero *T
|
||||
return zero
|
||||
}
|
||||
@@ -21,9 +21,8 @@ func HookExec[T any](key string, args ...any) *T {
|
||||
log.Printf("🔌 Execute hook: %s", key)
|
||||
res := hook(args...)
|
||||
return res.(*T)
|
||||
} else {
|
||||
log.Printf("🔌 Do not find hook: %s", key)
|
||||
}
|
||||
// Hook not found, skip silently (no log spam)
|
||||
var zero *T
|
||||
return zero
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user