ccxt 4.2.68 → 4.2.70

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/js/src/kucoin.js CHANGED
@@ -413,6 +413,7 @@ export default class kucoin extends Exchange {
413
413
  '12h': '12hour',
414
414
  '1d': '1day',
415
415
  '1w': '1week',
416
+ '1M': '1month',
416
417
  },
417
418
  'precisionMode': TICK_SIZE,
418
419
  'exceptions': {
@@ -4462,7 +4463,7 @@ export default class kucoin extends Exchange {
4462
4463
  url = url + endpoint;
4463
4464
  const isFuturePrivate = (api === 'futuresPrivate');
4464
4465
  const isPrivate = (api === 'private');
4465
- const isBroker = (api === 'private');
4466
+ const isBroker = (api === 'broker');
4466
4467
  if (isPrivate || isFuturePrivate || isBroker) {
4467
4468
  this.checkRequiredCredentials();
4468
4469
  const timestamp = this.nonce().toString();
@@ -4494,7 +4495,9 @@ export default class kucoin extends Exchange {
4494
4495
  }
4495
4496
  if (isBroker) {
4496
4497
  const brokerName = this.safeString(partner, 'name');
4497
- headers['KC-BROKER-NAME'] = brokerName;
4498
+ if (brokerName !== undefined) {
4499
+ headers['KC-BROKER-NAME'] = brokerName;
4500
+ }
4498
4501
  }
4499
4502
  }
4500
4503
  return { 'url': url, 'method': method, 'body': body, 'headers': headers };
@@ -429,7 +429,7 @@ export default class lbank extends lbankRest {
429
429
  // "volume":6.3607,
430
430
  // "amount":77148.9303,
431
431
  // "price":12129,
432
- // "direction":"sell",
432
+ // "direction":"sell", // or "sell_market"
433
433
  // "TS":"2019-06-28T19:55:49.460"
434
434
  // },
435
435
  // "type":"trade",
@@ -469,7 +469,7 @@ export default class lbank extends lbankRest {
469
469
  // "volume":6.3607,
470
470
  // "amount":77148.9303,
471
471
  // "price":12129,
472
- // "direction":"sell",
472
+ // "direction":"sell", // or "sell_market"
473
473
  // "TS":"2019-06-28T19:55:49.460"
474
474
  // }
475
475
  //
@@ -478,6 +478,8 @@ export default class lbank extends lbankRest {
478
478
  if (timestamp === undefined) {
479
479
  timestamp = this.parse8601(datetime);
480
480
  }
481
+ let side = this.safeString2(trade, 'direction', 3);
482
+ side = side.replace('_market', '');
481
483
  return this.safeTrade({
482
484
  'timestamp': timestamp,
483
485
  'datetime': datetime,
@@ -486,7 +488,7 @@ export default class lbank extends lbankRest {
486
488
  'order': undefined,
487
489
  'type': undefined,
488
490
  'takerOrMaker': undefined,
489
- 'side': this.safeString2(trade, 'direction', 3),
491
+ 'side': side,
490
492
  'price': this.safeString2(trade, 'price', 1),
491
493
  'amount': this.safeString2(trade, 'volume', 2),
492
494
  'cost': this.safeString(trade, 'amount'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.2.68",
3
+ "version": "4.2.70",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.js",
6
6
  "type": "module",
package/skip-tests.json CHANGED
@@ -327,6 +327,7 @@
327
327
  "currencyIdAndCode": "broken currencies"
328
328
  },
329
329
  "fetchCurrencies": {
330
+ "currencyIdAndCode": "broken currencies",
330
331
  "precision":"not provided",
331
332
  "networks": "missing"
332
333
  },
@@ -887,6 +888,7 @@
887
888
  }
888
889
  },
889
890
  "gemini": {
891
+ "skipWs": "fixes needed",
890
892
  "skipMethods": {
891
893
  "loadMarkets": {
892
894
  "currencyIdAndCode": "messed codes",
@@ -982,6 +984,18 @@
982
984
  "quoteVolume": "same",
983
985
  "baseVolume": "same"
984
986
  },
987
+ "watchTicker": {
988
+ "bid":"same",
989
+ "ask":"same",
990
+ "quoteVolume": "same",
991
+ "baseVolume": "same"
992
+ },
993
+ "watchTickers": {
994
+ "bid":"same",
995
+ "ask":"same",
996
+ "quoteVolume": "same",
997
+ "baseVolume": "same"
998
+ },
985
999
  "fetchPositions": "currently returns a lot of default/non open positions",
986
1000
  "fetchLedger": {
987
1001
  "currency": "undefined",
@@ -1148,6 +1162,9 @@
1148
1162
  },
1149
1163
  "fetchPositions": {
1150
1164
  "percentage": "percentage is not provided"
1165
+ },
1166
+ "watchOrderBook": {
1167
+ "spread": "https://app.travis-ci.com/github/ccxt/ccxt/builds/269407124#L3464"
1151
1168
  }
1152
1169
  }
1153
1170
  },