ccxt 4.5.51 → 4.5.52

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.
@@ -1,10 +1,15 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  import binance from './binance.js';
3
+ import binanceusdmRest from '../binanceusdm.js';
3
4
  import { InvalidOrder } from '../base/errors.js';
4
5
  // ---------------------------------------------------------------------------
5
6
  export default class binanceusdm extends binance {
6
7
  describe() {
7
- return this.deepExtend(super.describe(), {
8
+ // eslint-disable-next-line new-cap
9
+ const restInstance = new binanceusdmRest();
10
+ const restDescribe = restInstance.describe();
11
+ const extended = this.deepExtend(super.describe(), restDescribe);
12
+ return this.deepExtend(extended, {
8
13
  'id': 'binanceusdm',
9
14
  'name': 'Binance USDⓈ-M',
10
15
  'urls': {
@@ -302,7 +302,7 @@ export default class grvt extends grvtRest {
302
302
  const market = this.market(symbol);
303
303
  const marketId = market['id'];
304
304
  const limitRaw = this.safeInteger(params, 'limit', 50); // 50, 200, 500, 1000
305
- rawHashes.push(marketId + '@' + limitRaw);
305
+ rawHashes.push(marketId + '@' + limitRaw.toString());
306
306
  messageHashes.push('trade::' + market['symbol']);
307
307
  }
308
308
  const request = {
@@ -502,14 +502,14 @@ export default class grvt extends grvtRest {
502
502
  let interval = undefined;
503
503
  [interval, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'interval', 500);
504
504
  symbols = this.marketSymbols(symbols);
505
- const extraPart = isSnapshot ? (interval + '-' + limit) : interval;
505
+ const extraPart = isSnapshot ? (interval.toString() + '-' + limit.toString()) : interval.toString();
506
506
  const rawHashes = [];
507
507
  const messageHashes = [];
508
508
  for (let i = 0; i < symbols.length; i++) {
509
509
  const symbol = symbols[i];
510
510
  const market = this.market(symbol);
511
511
  const marketId = market['id'];
512
- rawHashes.push(marketId + '@' + extraPart.toString());
512
+ rawHashes.push(marketId + '@' + extraPart);
513
513
  messageHashes.push('orderbook::' + market['symbol']);
514
514
  }
515
515
  const request = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.5.51",
3
+ "version": "4.5.52",
4
4
  "description": "A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go",
5
5
  "unpkg": "dist/ccxt.browser.min.js",
6
6
  "type": "module",
@@ -107,6 +107,7 @@
107
107
  "check-js-syntax": "node -e \"console.log(process.cwd())\" && eslint --version && npm run lint",
108
108
  "eslint": "eslint",
109
109
  "check-python-syntax": "cd python && tox -e qa && cd ..",
110
+ "check-python-ruff": "ruff check ./python/ccxt",
110
111
  "check-python-types": "cd python && tox -e type && cd ..",
111
112
  "check-php-syntax": "npm run check-rest-php-syntax && npm run check-ws-php-syntax",
112
113
  "check-rest-php-syntax": "php -f php/test/custom/syntax.php",