diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ead2d13..a15f1449 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/cronjob/trailingTrade/step/__tests__/ensure-manual-buy-order.test.js b/app/cronjob/trailingTrade/step/__tests__/ensure-manual-buy-order.test.js index 69b15eaf..f1ef4b01 100644 --- a/app/cronjob/trailingTrade/step/__tests__/ensure-manual-buy-order.test.js +++ b/app/cronjob/trailingTrade/step/__tests__/ensure-manual-buy-order.test.js @@ -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, @@ -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' } @@ -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, @@ -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' } diff --git a/app/cronjob/trailingTrade/step/ensure-manual-buy-order.js b/app/cronjob/trailingTrade/step/ensure-manual-buy-order.js index 7f059ef3..73da2bd9 100644 --- a/app/cronjob/trailingTrade/step/ensure-manual-buy-order.js +++ b/app/cronjob/trailingTrade/step/ensure-manual-buy-order.js @@ -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