feat: enhance order error handling in OffsetMakerEngine and update LighterGateway order status types for improved robustness

This commit is contained in:
discountry
2025-11-12 19:35:31 +08:00
parent e7f6341961
commit 870fe2b8d7
3 changed files with 55 additions and 4 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ const RESOLUTION_MS: Record<string, number> = {
"1d": 86_400_000,
};
const TERMINAL_ORDER_STATUSES = new Set(["filled", "canceled", "cancelled", "expired"]);
const TERMINAL_ORDER_STATUSES = new Set(["filled", "canceled", "cancelled", "expired", "canceled-post-only"]);
export interface LighterGatewayOptions {
symbol: string; // display symbol used by strategy logging
+2 -2
View File
@@ -29,8 +29,8 @@ export interface LighterOrder {
time_in_force?: string;
trigger_price?: string;
reduce_only?: boolean;
status?: string;
trigger_status?: string;
status?: string | number;
trigger_status?: string | number;
trigger_time?: number;
updated_at?: number;
created_at?: number;