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