@icgio/icg-exchanges-wrapper 1.9.180 → 1.9.181
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 -1
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -208,7 +208,7 @@ module.exports = class Orders {
|
|
|
208
208
|
update_non_initial_from_balances(balances) {
|
|
209
209
|
this.account.update_non_initial_from_balances(balances)
|
|
210
210
|
}
|
|
211
|
-
limit_trade(exchange, pair, method, price, amount, id = uuid(), order_type = '', limiter_on = true) {
|
|
211
|
+
limit_trade(exchange, pair, method, price, amount, id = uuid(), order_type = '', limiter_on = true, api_key_index) {
|
|
212
212
|
price = round_price(_.upperFirst(exchange), pair, price)
|
|
213
213
|
amount = round_amount(_.upperFirst(exchange), pair, amount)
|
|
214
214
|
this.info_log('%s %s %s %s %s %s at %s', limiter_on, order_type, exchange, pair, method, amount, price)
|
|
@@ -272,6 +272,9 @@ module.exports = class Orders {
|
|
|
272
272
|
this.Exchanges[exchange].limit_trade_base(pair, method, price, amount, cb)
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
+
if (api_key_index) {
|
|
276
|
+
this.Exchanges[exchange].key_index = api_key_index
|
|
277
|
+
}
|
|
275
278
|
limit_trade((res) => {
|
|
276
279
|
if (res.success) {
|
|
277
280
|
let order_id = res.body
|