ccxt 4.1.66 → 4.1.67

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/dist/cjs/ccxt.js CHANGED
@@ -173,7 +173,7 @@ var woo$1 = require('./src/pro/woo.js');
173
173
 
174
174
  //-----------------------------------------------------------------------------
175
175
  // this is updated by vss.js when building
176
- const version = '4.1.66';
176
+ const version = '4.1.67';
177
177
  Exchange["default"].ccxtVersion = version;
178
178
  const exchanges = {
179
179
  'ace': ace,
@@ -1748,6 +1748,7 @@ class Exchange {
1748
1748
  'contract': undefined,
1749
1749
  'linear': undefined,
1750
1750
  'inverse': undefined,
1751
+ 'subType': undefined,
1751
1752
  'taker': undefined,
1752
1753
  'maker': undefined,
1753
1754
  'contractSize': undefined,
@@ -1825,6 +1826,15 @@ class Exchange {
1825
1826
  'precision': this.precision,
1826
1827
  'limits': this.limits,
1827
1828
  }, this.fees['trading'], value);
1829
+ if (market['linear']) {
1830
+ market['subType'] = 'linear';
1831
+ }
1832
+ else if (market['inverse']) {
1833
+ market['subType'] = 'inverse';
1834
+ }
1835
+ else {
1836
+ market['subType'] = undefined;
1837
+ }
1828
1838
  values.push(market);
1829
1839
  }
1830
1840
  this.markets = this.indexBy(values, 'symbol');
@@ -72,6 +72,7 @@ class bingx extends bingx$1 {
72
72
  'user': 'https://open-api.{hostname}/openApi',
73
73
  'subAccount': 'https://open-api.{hostname}/openApi',
74
74
  'account': 'https://open-api.{hostname}/openApi',
75
+ 'copyTrading': 'https://open-api.{hostname}/openApi',
75
76
  },
76
77
  'www': 'https://bingx.com/',
77
78
  'doc': 'https://bingx-api.github.io/docs/',
@@ -1593,7 +1593,7 @@ class coinbase extends coinbase$1 {
1593
1593
  */
1594
1594
  await this.loadMarkets();
1595
1595
  const request = {
1596
- 'limit': 100,
1596
+ 'limit': 250,
1597
1597
  };
1598
1598
  let response = undefined;
1599
1599
  const isV3 = this.safeValue(params, 'v3', false);
package/js/ccxt.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
5
  import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.1.65";
7
+ declare const version = "4.1.66";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.1.66';
41
+ const version = '4.1.67';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -1744,6 +1744,7 @@ export default class Exchange {
1744
1744
  'contract': undefined,
1745
1745
  'linear': undefined,
1746
1746
  'inverse': undefined,
1747
+ 'subType': undefined,
1747
1748
  'taker': undefined,
1748
1749
  'maker': undefined,
1749
1750
  'contractSize': undefined,
@@ -1821,6 +1822,15 @@ export default class Exchange {
1821
1822
  'precision': this.precision,
1822
1823
  'limits': this.limits,
1823
1824
  }, this.fees['trading'], value);
1825
+ if (market['linear']) {
1826
+ market['subType'] = 'linear';
1827
+ }
1828
+ else if (market['inverse']) {
1829
+ market['subType'] = 'inverse';
1830
+ }
1831
+ else {
1832
+ market['subType'] = undefined;
1833
+ }
1824
1834
  values.push(market);
1825
1835
  }
1826
1836
  this.markets = this.indexBy(values, 'symbol');
@@ -7,6 +7,7 @@ export declare type IndexType = number | string;
7
7
  export declare type OrderSide = 'buy' | 'sell' | string;
8
8
  export declare type OrderType = 'limit' | 'market' | string;
9
9
  export declare type MarketType = 'spot' | 'margin' | 'swap' | 'future' | 'option';
10
+ export declare type SubType = 'linear' | 'inverse' | undefined;
10
11
  export interface Dictionary<T> {
11
12
  [key: string]: T;
12
13
  }
@@ -32,6 +33,7 @@ export interface MarketInterface {
32
33
  quoteId: string;
33
34
  active: Bool;
34
35
  type: MarketType;
36
+ subType?: SubType;
35
37
  spot: boolean;
36
38
  margin: boolean;
37
39
  swap: boolean;
package/js/src/bingx.js CHANGED
@@ -75,6 +75,7 @@ export default class bingx extends Exchange {
75
75
  'user': 'https://open-api.{hostname}/openApi',
76
76
  'subAccount': 'https://open-api.{hostname}/openApi',
77
77
  'account': 'https://open-api.{hostname}/openApi',
78
+ 'copyTrading': 'https://open-api.{hostname}/openApi',
78
79
  },
79
80
  'www': 'https://bingx.com/',
80
81
  'doc': 'https://bingx-api.github.io/docs/',
@@ -1596,7 +1596,7 @@ export default class coinbase extends Exchange {
1596
1596
  */
1597
1597
  await this.loadMarkets();
1598
1598
  const request = {
1599
- 'limit': 100,
1599
+ 'limit': 250,
1600
1600
  };
1601
1601
  let response = undefined;
1602
1602
  const isV3 = this.safeValue(params, 'v3', false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.1.66",
3
+ "version": "4.1.67",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.js",
6
6
  "type": "module",