@icgio/icg-exchanges-wrapper 1.9.178 → 1.9.180
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 +2 -2
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -297,7 +297,7 @@ module.exports = class Orders {
|
|
|
297
297
|
},
|
|
298
298
|
order_type + ' n-filled'
|
|
299
299
|
)
|
|
300
|
-
} else if (res.error === 'amount-too-small' || res.error === 'insufficient-funds') {
|
|
300
|
+
} else if (res.error === 'amount-too-small' || res.error === 'insufficient-funds' || res.error === 'connection-error') {
|
|
301
301
|
this.delete_order_info(exchange, pair, method, id, order_type + ' limit-trade-' + res.error)
|
|
302
302
|
} else {
|
|
303
303
|
if (order_type.startsWith('self') || order_type.startsWith('maker_2')) {
|
|
@@ -1262,7 +1262,7 @@ module.exports = class Orders {
|
|
|
1262
1262
|
for (let pair of exchange_pairs[exchange]) {
|
|
1263
1263
|
setInterval(() => {
|
|
1264
1264
|
Exchanges[exchange].rate_with_routes(pair, (res) => {
|
|
1265
|
-
rates_handler(exchange, pair, res,
|
|
1265
|
+
rates_handler(exchange, pair, res, true)
|
|
1266
1266
|
})
|
|
1267
1267
|
}, interval_dict[exchange].rates)
|
|
1268
1268
|
}
|