Skip to content

Commit

Permalink
treat unfrozen positions as "stillOpen"
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Aug 27, 2024
1 parent b6cff8b commit d63310f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/trade-executor/state/position-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const tradingPositionInfoPrototype = {
},

get stillOpen() {
return this.closed_at == null && this.frozen_at == null;
return !this.closed && !this.frozen;
},

get frozen() {
Expand Down

0 comments on commit d63310f

Please sign in to comment.