Skip to content

Commit

Permalink
improve trading
Browse files Browse the repository at this point in the history
  • Loading branch information
peterszombati committed Nov 2, 2023
1 parent 07f579b commit df6db96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/v2/core/Trading/Trading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export class Trading {
Object.values(this.pendingOrders).forEach(order => {
if (order.createdAt.elapsedMs() > 90000) {
order?.reject(new Error('timeout: 90000ms'))
delete this.pendingOrders[order.order]
return
}
if (order.createdAt.elapsedMs() > 5000 && order.resolve !== undefined && order.reject !== undefined) {
Expand Down

0 comments on commit df6db96

Please sign in to comment.