@icgio/icg-exchanges-wrapper 1.15.37 → 1.16.1
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 +3 -3
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -282,7 +282,7 @@ module.exports = class Orders {
|
|
|
282
282
|
update_non_initial_from_balances(balances) {
|
|
283
283
|
this.account?.update_non_initial_from_balances(balances)
|
|
284
284
|
}
|
|
285
|
-
limit_trade(exchange, pair, method, price, amount, id = uuid(), order_type = '', limiter_on = true, api_key_index) {
|
|
285
|
+
limit_trade(exchange, pair, method, price, amount, id = uuid(), order_type = '', limiter_on = true, api_key_index, order_options = {}) {
|
|
286
286
|
price = round_price(exchange, pair, price)
|
|
287
287
|
amount = round_amount(exchange, pair, amount)
|
|
288
288
|
// console.log('%s %s %s %s %s %s at %s', limiter_on, order_type, exchange, pair, method, amount, price)
|
|
@@ -359,9 +359,9 @@ module.exports = class Orders {
|
|
|
359
359
|
if (this.Exchanges[exchange].private_limiter) {
|
|
360
360
|
this.Exchanges[exchange].private_limiter.priority = getOrderPriority(order_type)
|
|
361
361
|
}
|
|
362
|
-
this.Exchanges[exchange].limit_trade(pair, method, price, amount, cb)
|
|
362
|
+
this.Exchanges[exchange].limit_trade(pair, method, price, amount, order_options, cb)
|
|
363
363
|
} else {
|
|
364
|
-
this.Exchanges[exchange].limit_trade_base(pair, method, price, amount, cb)
|
|
364
|
+
this.Exchanges[exchange].limit_trade_base(pair, method, price, amount, order_options, cb)
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
if (api_key_index) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
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.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.33.1",
|
|
21
21
|
"@icgio/icg-utils": "^1.9.52",
|
|
22
22
|
"lodash": "^4.17.23",
|
|
23
23
|
"pg": "^8.17.2"
|