Skip to content

Commit 203848c

Browse files
committed
fix methods for canceling orders
1 parent f88ec9b commit 203848c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/poloniex.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ export default class Poloniex {
880880
*/
881881
cancelOrder(requestParameters) {
882882
const path = `/orders/${requestParameters.id}`
883-
return this.#requestAuth('del', path, {}, {}, requestParameters?.getApiCallRateInfo)
883+
return this.#requestAuth('DELETE', path, {}, {}, requestParameters?.getApiCallRateInfo)
884884
}
885885

886886
/**
@@ -895,7 +895,7 @@ export default class Poloniex {
895895
cancelBatchOrders(requestParameters) {
896896
const path = '/orders/cancelByIds'
897897
const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo'])
898-
return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo)
898+
return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo)
899899
}
900900

901901
/**
@@ -911,7 +911,7 @@ export default class Poloniex {
911911
cancelAllOrders(requestParameters) {
912912
const path = '/orders'
913913
const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo'])
914-
return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo)
914+
return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo)
915915
}
916916

917917
/**
@@ -1022,7 +1022,7 @@ export default class Poloniex {
10221022
*/
10231023
cancelSmartOrder(requestParameters) {
10241024
const path = `/smartorders/${requestParameters.id}`
1025-
return this.#requestAuth('del', path, {}, {}, requestParameters?.getApiCallRateInfo)
1025+
return this.#requestAuth('DELETE', path, {}, {}, requestParameters?.getApiCallRateInfo)
10261026
}
10271027

10281028
/**
@@ -1038,7 +1038,7 @@ export default class Poloniex {
10381038
cancelBatchSmartOrders(requestParameters) {
10391039
const path = '/smartorders/cancelByIds'
10401040
const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo'])
1041-
return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo)
1041+
return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo)
10421042
}
10431043

10441044
/**
@@ -1054,7 +1054,7 @@ export default class Poloniex {
10541054
cancelAllSmartOrders(requestParameters) {
10551055
const path = '/smartorders'
10561056
const body = Poloniex.#cloneObjectExceptKeys(requestParameters, ['getApiCallRateInfo'])
1057-
return this.#requestAuth('del', path, {}, body, requestParameters?.getApiCallRateInfo)
1057+
return this.#requestAuth('DELETE', path, {}, body, requestParameters?.getApiCallRateInfo)
10581058
}
10591059

10601060
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "poloniex-api-node",
3-
"version": "3.1.2",
3+
"version": "3.1.3",
44
"description": "Simple node.js wrapper for Poloniex REST and WebSocket API.",
55
"type": "module",
66
"main": "./dist/cjs/poloniex.cjs",

0 commit comments

Comments
 (0)