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:
tinkle-community
2025-12-26 00:58:12 +08:00
parent 54b24167a7
commit 1744e7f38e
38 changed files with 6498 additions and 964 deletions
+2 -3
View File
@@ -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
}