Skip to content

Commit

Permalink
positions history bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qc-zakir-chalimov committed Jun 5, 2024
1 parent 607d007 commit 2913579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ export class Positions {

if (position.status === "closed") {
this.positions.delete(msg.externalId)
this.positionsIds.delete(`${msg.instrumentType}-${msg.internalId}`)
this.positionsHistory.unshift(position)
}
}
Expand Down Expand Up @@ -906,6 +907,7 @@ export class Positions {

if (position.status === "closed") {
this.positions.delete(msg.externalId)
this.positionsIds.delete(`${msg.instrumentType}-${msg.internalId}`)
this.positionsHistory.unshift(position)
}
}
Expand Down

0 comments on commit 2913579

Please sign in to comment.