@icgio/icg-exchanges-wrapper 1.21.2 → 1.21.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/middleware/orders.js +4 -0
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -479,6 +479,10 @@ module.exports = class Orders {
|
|
|
479
479
|
})
|
|
480
480
|
}
|
|
481
481
|
cancel_order(exchange, pair, order, decision_context = null) {
|
|
482
|
+
if (!order.order_id) {
|
|
483
|
+
console.error('cancel_order: order_id missing %s %s %s %j', exchange, pair, order.type, order)
|
|
484
|
+
return
|
|
485
|
+
}
|
|
482
486
|
let original_status = order.status
|
|
483
487
|
const cancel_decision_context = public_decision_context(decision_context) || _.cloneDeep(order.decision_context) || null
|
|
484
488
|
this.update_order_info(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@icgio/icg-exchanges": "^1.45.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.45.4",
|
|
21
21
|
"@icgio/icg-utils": "^1.9.61",
|
|
22
22
|
"lodash": "^4.17.23",
|
|
23
23
|
"pg": "^8.17.2"
|