diff --git a/lib/poloniex.mjs b/lib/poloniex.mjs index b781ac4..6f2aefe 100644 --- a/lib/poloniex.mjs +++ b/lib/poloniex.mjs @@ -880,7 +880,7 @@ export default class Poloniex { */ cancelOrder(requestParameters) { const path = `/orders/${requestParameters.id}` - return this.#requestAuth('del', path, {}, {}, requestParameters?.getApiCallRateInfo) + return this.#requestAuth('DELETE', path, {}, {}, requestParameters?.getApiCallRateInfo) } /** @@ -895,7 +895,7 @@ export default class Poloniex { cancelBatchOrders(requestParameters) { const path = '/orders/cancelByIds' const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo']) - return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo) + return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo) } /** @@ -911,7 +911,7 @@ export default class Poloniex { cancelAllOrders(requestParameters) { const path = '/orders' const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo']) - return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo) + return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo) } /** @@ -1022,7 +1022,7 @@ export default class Poloniex { */ cancelSmartOrder(requestParameters) { const path = `/smartorders/${requestParameters.id}` - return this.#requestAuth('del', path, {}, {}, requestParameters?.getApiCallRateInfo) + return this.#requestAuth('DELETE', path, {}, {}, requestParameters?.getApiCallRateInfo) } /** @@ -1038,7 +1038,7 @@ export default class Poloniex { cancelBatchSmartOrders(requestParameters) { const path = '/smartorders/cancelByIds' const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo']) - return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo) + return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo) } /** @@ -1054,7 +1054,7 @@ export default class Poloniex { cancelAllSmartOrders(requestParameters) { const path = '/smartorders' const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo']) - return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo) + return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo) } /** diff --git a/package.json b/package.json index 335c0b7..892723f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "poloniex-api-node", - "version": "3.1.2", + "version": "3.1.3", "description": "Simple node.js wrapper for Poloniex REST and WebSocket API.", "type": "module", "main": "./dist/cjs/poloniex.cjs",