mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 01:08:07 +00:00
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:
@@ -135,6 +135,7 @@ export function MakerPointsApp({ onExit }: MakerPointsAppProps) {
|
||||
? t("offset.imbalance.sell")
|
||||
: t("offset.imbalance.balanced");
|
||||
const quoteMode = snapshot.quoteStatus.closeOnly ? t("makerPoints.mode.closeOnly") : t("makerPoints.mode.normal");
|
||||
const formatDepth = (value: number | null) => (value == null ? "-" : formatNumber(value, 4));
|
||||
|
||||
return (
|
||||
<Box flexDirection="column" paddingX={1}>
|
||||
@@ -164,6 +165,15 @@ export function MakerPointsApp({ onExit }: MakerPointsAppProps) {
|
||||
status: imbalanceLabel,
|
||||
})}
|
||||
</Text>
|
||||
{snapshot.bandDepths.map((band) => (
|
||||
<Text key={band.band} color={band.enabled ? undefined : "gray"}>
|
||||
{t("makerPoints.bandDepthLine", {
|
||||
band: band.band,
|
||||
buy: formatDepth(band.buyDepth),
|
||||
sell: formatDepth(band.sellDepth),
|
||||
})}
|
||||
</Text>
|
||||
))}
|
||||
<Text>
|
||||
{t("maker.dataStatus")}
|
||||
{feedEntries.map((entry, index) => (
|
||||
|
||||
Reference in New Issue
Block a user