Skip to content

Commit

Permalink
Fixed CANCELED order (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleekr authored Jun 5, 2021
1 parent c6c8e58 commit 1bbeb9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## [0.0.69] - 2021-06-05

- Fixed typo issue with CANCELED manual order handling

## [0.0.68] - 2021-06-05

- Fixed the issue with the order not found error for the manual order
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ describe('ensure-manual-buy-order.js', () => {

[
{
desc: 'with LIMIT order and CANCELLED',
desc: 'with LIMIT order and CANCELED',
symbol: 'CAKEUSDT',
lastBuyPriceDoc: {
lastBuyPrice: 30,
Expand All @@ -438,7 +438,7 @@ describe('ensure-manual-buy-order.js', () => {
orderId: 159653829,
executedQty: '1.00000000',
cummulativeQuoteQty: '19.54900000',
status: 'CANCELLED',
status: 'CANCELED',
type: 'LIMIT',
side: 'BUY'
}
Expand Down Expand Up @@ -543,7 +543,7 @@ describe('ensure-manual-buy-order.js', () => {
}
},
{
desc: 'with LIMIT order and CANCELLED',
desc: 'with LIMIT order and CANCELED',
symbol: 'CAKEUSDT',
lastBuyPriceDoc: {
lastBuyPrice: 30,
Expand All @@ -570,7 +570,7 @@ describe('ensure-manual-buy-order.js', () => {
orderId: 159653829,
executedQty: '1.00000000',
cummulativeQuoteQty: '19.54900000',
status: 'CANCELLED',
status: 'CANCELED',
type: 'LIMIT',
side: 'BUY'
}
Expand Down
2 changes: 1 addition & 1 deletion app/cronjob/trailingTrade/step/ensure-manual-buy-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const execute = async (logger, rawData) => {
return data;
}

const removeStatuses = ['CANCELLED', 'REJECTED', 'EXPIRED', 'PENDING_CANCEL'];
const removeStatuses = ['CANCELED', 'REJECTED', 'EXPIRED', 'PENDING_CANCEL'];

// Check if manual-buy-order is existing
// eslint-disable-next-line no-restricted-syntax
Expand Down

0 comments on commit 1bbeb9a

Please sign in to comment.