From d63310f14234c7210484c9a8c9ea3ffc714ea075 Mon Sep 17 00:00:00 2001 From: Ken Kunz Date: Tue, 27 Aug 2024 15:02:15 -0500 Subject: [PATCH] treat unfrozen positions as "stillOpen" --- src/lib/trade-executor/state/position-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/trade-executor/state/position-info.ts b/src/lib/trade-executor/state/position-info.ts index 4c27befd5..16f3d7919 100644 --- a/src/lib/trade-executor/state/position-info.ts +++ b/src/lib/trade-executor/state/position-info.ts @@ -106,7 +106,7 @@ const tradingPositionInfoPrototype = { }, get stillOpen() { - return this.closed_at == null && this.frozen_at == null; + return !this.closed && !this.frozen; }, get frozen() {