Enhance MakerPoints functionality and configuration

- Updated `filterMinDepth` in `config.ts` from 1 to 50 to improve depth filtering logic.
- Added new translation entries for band depth display in `i18n/index.ts`.
- Introduced `bandDepths` to `MakerPointsSnapshot` in `maker-points-engine.ts` to track depth across different bands.
- Enhanced `BinanceDepthTracker` to support dynamic depth levels and speed settings.
- Updated `MakerPointsApp` to display band depth information, improving user interface clarity.
This commit is contained in:
discountry
2026-01-22 02:27:45 +08:00
parent ed855f6859
commit 24339929dc
5 changed files with 52 additions and 5 deletions
+4 -1
View File
@@ -65,6 +65,7 @@ export class BinanceDepthTracker {
baseUrl?: string;
levels?: number;
ratio?: number;
speedMs?: number;
logger?: (context: string, error: unknown) => void;
}
) {}
@@ -229,7 +230,9 @@ export class BinanceDepthTracker {
private buildUrl(): string {
const base = this.options?.baseUrl ?? DEFAULT_BASE_URL;
const stream = `${this.symbol.toLowerCase()}@depth10@100ms`;
const levels = this.options?.levels ?? 10;
const speed = this.options?.speedMs ?? 100;
const stream = `${this.symbol.toLowerCase()}@depth${levels}@${speed}ms`;
return `${base}/${stream}`;
}