ccxt 4.3.75 → 4.3.76
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/README.md +3 -3
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +1 -1
- package/dist/cjs/src/bitmart.js +144 -82
- package/dist/cjs/src/coinbase.js +8 -4
- package/dist/cjs/src/gemini.js +1 -0
- package/dist/cjs/src/htx.js +4 -0
- package/dist/cjs/src/pro/binance.js +24 -0
- package/dist/cjs/src/pro/bitmart.js +9 -8
- package/dist/cjs/src/pro/bybit.js +2 -2
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +2 -0
- package/js/src/abstract/gemini.d.ts +1 -0
- package/js/src/base/Exchange.js +1 -1
- package/js/src/bitmart.js +144 -82
- package/js/src/coinbase.js +8 -4
- package/js/src/gemini.js +1 -0
- package/js/src/htx.js +4 -0
- package/js/src/pro/binance.js +24 -0
- package/js/src/pro/bitmart.js +9 -8
- package/js/src/pro/bybit.js +2 -2
- package/package.json +1 -1
package/js/src/gemini.js
CHANGED
package/js/src/htx.js
CHANGED
|
@@ -6296,6 +6296,7 @@ export default class htx extends Exchange {
|
|
|
6296
6296
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
6297
6297
|
/**
|
|
6298
6298
|
* @method
|
|
6299
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
|
|
6299
6300
|
* @name huobi#fetchDepositAddressesByNetwork
|
|
6300
6301
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
6301
6302
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
@@ -6329,6 +6330,7 @@ export default class htx extends Exchange {
|
|
|
6329
6330
|
/**
|
|
6330
6331
|
* @method
|
|
6331
6332
|
* @name huobi#fetchDepositAddress
|
|
6333
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
|
|
6332
6334
|
* @description fetch the deposit address for a currency associated with this account
|
|
6333
6335
|
* @param {string} code unified currency code
|
|
6334
6336
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6379,6 +6381,7 @@ export default class htx extends Exchange {
|
|
|
6379
6381
|
/**
|
|
6380
6382
|
* @method
|
|
6381
6383
|
* @name huobi#fetchDeposits
|
|
6384
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4f050-7773-11ed-9966-0242ac110003
|
|
6382
6385
|
* @description fetch all deposits made to an account
|
|
6383
6386
|
* @param {string} code unified currency code
|
|
6384
6387
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
@@ -6613,6 +6616,7 @@ export default class htx extends Exchange {
|
|
|
6613
6616
|
/**
|
|
6614
6617
|
* @method
|
|
6615
6618
|
* @name huobi#withdraw
|
|
6619
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4cc41-7773-11ed-9966-0242ac110003
|
|
6616
6620
|
* @description make a withdrawal
|
|
6617
6621
|
* @param {string} code unified currency code
|
|
6618
6622
|
* @param {float} amount the amount to withdraw
|
package/js/src/pro/binance.js
CHANGED
|
@@ -538,6 +538,12 @@ export default class binance extends binanceRest {
|
|
|
538
538
|
/**
|
|
539
539
|
* @method
|
|
540
540
|
* @name binance#watchOrderBook
|
|
541
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
|
542
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
|
543
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
|
544
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
|
545
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
|
546
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
|
541
547
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
542
548
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
543
549
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -587,6 +593,12 @@ export default class binance extends binanceRest {
|
|
|
587
593
|
/**
|
|
588
594
|
* @method
|
|
589
595
|
* @name binance#watchOrderBookForSymbols
|
|
596
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
|
597
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
|
598
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
|
599
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
|
600
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
|
601
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
|
590
602
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
591
603
|
* @param {string[]} symbols unified array of symbols
|
|
592
604
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -1479,6 +1491,12 @@ export default class binance extends binanceRest {
|
|
|
1479
1491
|
/**
|
|
1480
1492
|
* @method
|
|
1481
1493
|
* @name binance#watchTicker
|
|
1494
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
|
1495
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
|
1496
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
|
1497
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
|
1498
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
|
1499
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
|
1482
1500
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1483
1501
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1484
1502
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1494,6 +1512,12 @@ export default class binance extends binanceRest {
|
|
|
1494
1512
|
/**
|
|
1495
1513
|
* @method
|
|
1496
1514
|
* @name binance#watchTickers
|
|
1515
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
|
1516
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
|
1517
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
|
1518
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
|
1519
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
|
1520
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
|
1497
1521
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
1498
1522
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
1499
1523
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
package/js/src/pro/bitmart.js
CHANGED
|
@@ -43,8 +43,8 @@ export default class bitmart extends bitmartRest {
|
|
|
43
43
|
'private': 'wss://ws-manager-compress.{hostname}/user?protocol=1.1',
|
|
44
44
|
},
|
|
45
45
|
'swap': {
|
|
46
|
-
'public': 'wss://openapi-ws.{hostname}/api?protocol=1.1',
|
|
47
|
-
'private': 'wss://openapi-ws.{hostname}/user?protocol=1.1',
|
|
46
|
+
'public': 'wss://openapi-ws-v2.{hostname}/api?protocol=1.1',
|
|
47
|
+
'private': 'wss://openapi-ws-v2.{hostname}/user?protocol=1.1',
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
},
|
|
@@ -138,7 +138,7 @@ export default class bitmart extends bitmartRest {
|
|
|
138
138
|
* @method
|
|
139
139
|
* @name bitmart#watchBalance
|
|
140
140
|
* @see https://developer-pro.bitmart.com/en/spot/#private-balance-change
|
|
141
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
141
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#private-assets-channel
|
|
142
142
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
143
143
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
144
144
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
@@ -272,7 +272,7 @@ export default class bitmart extends bitmartRest {
|
|
|
272
272
|
* @method
|
|
273
273
|
* @name bitmart#watchTrades
|
|
274
274
|
* @see https://developer-pro.bitmart.com/en/spot/#public-trade-channel
|
|
275
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
275
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-trade-channel
|
|
276
276
|
* @description get the list of most recent trades for a particular symbol
|
|
277
277
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
278
278
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
@@ -322,6 +322,7 @@ export default class bitmart extends bitmartRest {
|
|
|
322
322
|
* @method
|
|
323
323
|
* @name bitmart#watchTicker
|
|
324
324
|
* @see https://developer-pro.bitmart.com/en/spot/#public-ticker-channel
|
|
325
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
|
325
326
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
326
327
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
327
328
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -336,7 +337,7 @@ export default class bitmart extends bitmartRest {
|
|
|
336
337
|
/**
|
|
337
338
|
* @method
|
|
338
339
|
* @name bitmart#watchTickers
|
|
339
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
340
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
|
340
341
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
341
342
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
342
343
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -360,7 +361,7 @@ export default class bitmart extends bitmartRest {
|
|
|
360
361
|
* @name bitmart#watchOrders
|
|
361
362
|
* @description watches information on multiple orders made by the user
|
|
362
363
|
* @see https://developer-pro.bitmart.com/en/spot/#private-order-progress
|
|
363
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
364
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#private-order-channel
|
|
364
365
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
365
366
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
366
367
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -995,7 +996,7 @@ export default class bitmart extends bitmartRest {
|
|
|
995
996
|
* @method
|
|
996
997
|
* @name bitmart#watchOHLCV
|
|
997
998
|
* @see https://developer-pro.bitmart.com/en/spot/#public-kline-channel
|
|
998
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
999
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-klinebin-channel
|
|
999
1000
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1000
1001
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1001
1002
|
* @param {string} timeframe the length of time each candle represents
|
|
@@ -1123,7 +1124,7 @@ export default class bitmart extends bitmartRest {
|
|
|
1123
1124
|
* @name bitmart#watchOrderBook
|
|
1124
1125
|
* @see https://developer-pro.bitmart.com/en/spot/#public-depth-all-channel
|
|
1125
1126
|
* @see https://developer-pro.bitmart.com/en/spot/#public-depth-increase-channel
|
|
1126
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
1127
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-depth-channel
|
|
1127
1128
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1128
1129
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1129
1130
|
* @param {int} [limit] the maximum amount of order book entries to return
|
package/js/src/pro/bybit.js
CHANGED
|
@@ -169,7 +169,7 @@ export default class bybit extends bybitRest {
|
|
|
169
169
|
if (isSpot) {
|
|
170
170
|
url = url[accessibility]['spot'];
|
|
171
171
|
}
|
|
172
|
-
else if (type === 'swap') {
|
|
172
|
+
else if ((type === 'swap') || (type === 'future')) {
|
|
173
173
|
let subType = undefined;
|
|
174
174
|
[subType, params] = this.handleSubTypeAndParams(method, market, params, 'linear');
|
|
175
175
|
url = url[accessibility][subType];
|
|
@@ -2064,7 +2064,7 @@ export default class bybit extends bybitRest {
|
|
|
2064
2064
|
this.handleSubscriptionStatus(client, message);
|
|
2065
2065
|
return;
|
|
2066
2066
|
}
|
|
2067
|
-
const topic = this.safeString2(message, 'topic', 'op');
|
|
2067
|
+
const topic = this.safeString2(message, 'topic', 'op', '');
|
|
2068
2068
|
const methods = {
|
|
2069
2069
|
'orderbook': this.handleOrderBook,
|
|
2070
2070
|
'kline': this.handleOHLCV,
|
package/package.json
CHANGED