feat: add 'canceled-reduce-only' status to TERMINAL_ORDER_STATUSES in LighterGateway for comprehensive order status management

This commit is contained in:
discountry
2025-11-12 21:08:35 +08:00
parent 01e5ab9997
commit 9ca35584b5
+8 -1
View File
@@ -133,7 +133,14 @@ const RESOLUTION_MS: Record<string, number> = {
"1d": 86_400_000,
};
const TERMINAL_ORDER_STATUSES = new Set(["filled", "canceled", "cancelled", "expired", "canceled-post-only"]);
const TERMINAL_ORDER_STATUSES = new Set([
"filled",
"canceled",
"cancelled",
"expired",
"canceled-post-only",
"canceled-reduce-only",
]);
export interface LighterGatewayOptions {
symbol: string; // display symbol used by strategy logging