mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 01:08:07 +00:00
fix position
This commit is contained in:
@@ -301,11 +301,3 @@ function normalizeSymbolForms(value: string): string[] {
|
||||
if (base) forms.add(base);
|
||||
return Array.from(forms);
|
||||
}
|
||||
|
||||
function normalizeMarketType(value: string | null | undefined): "perp" | "spot" | undefined {
|
||||
if (!value) return undefined;
|
||||
const normalized = value.toLowerCase();
|
||||
if (normalized === "spot") return "spot";
|
||||
if (normalized === "perp" || normalized === "perpetual" || normalized === "futures") return "perp";
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user