ccxt 4.3.75 → 4.3.77
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/binance.js +2 -2
- package/dist/cjs/src/bithumb.js +14 -14
- package/dist/cjs/src/bitmart.js +148 -82
- package/dist/cjs/src/bybit.js +6 -1
- 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/kraken.js +3 -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 +21 -2
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/xt.js +4 -0
- 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/binance.js +2 -2
- package/js/src/bithumb.js +14 -14
- package/js/src/bitmart.js +148 -82
- package/js/src/bybit.js +6 -1
- package/js/src/coinbase.js +8 -4
- package/js/src/gemini.js +1 -0
- package/js/src/htx.js +4 -0
- package/js/src/kraken.js +3 -0
- package/js/src/pro/binance.js +24 -0
- package/js/src/pro/bitmart.js +9 -8
- package/js/src/pro/bybit.js +21 -2
- package/js/src/pro/woo.js +1 -1
- package/js/src/xt.d.ts +4 -0
- package/js/src/xt.js +4 -0
- package/package.json +1 -1
package/dist/cjs/src/coinbase.js
CHANGED
|
@@ -267,8 +267,8 @@ class coinbase extends coinbase$1 {
|
|
|
267
267
|
},
|
|
268
268
|
'fees': {
|
|
269
269
|
'trading': {
|
|
270
|
-
'taker': this.parseNumber('0.
|
|
271
|
-
'maker': this.parseNumber('0.
|
|
270
|
+
'taker': this.parseNumber('0.012'),
|
|
271
|
+
'maker': this.parseNumber('0.006'),
|
|
272
272
|
'tierBased': true,
|
|
273
273
|
'percentage': true,
|
|
274
274
|
'tiers': {
|
|
@@ -1373,6 +1373,10 @@ class coinbase extends coinbase$1 {
|
|
|
1373
1373
|
const marketType = this.safeStringLower(market, 'product_type');
|
|
1374
1374
|
const tradingDisabled = this.safeBool(market, 'trading_disabled');
|
|
1375
1375
|
const stablePairs = this.safeList(this.options, 'stablePairs', []);
|
|
1376
|
+
const defaultTakerFee = this.safeNumber(this.fees['trading'], 'taker');
|
|
1377
|
+
const defaultMakerFee = this.safeNumber(this.fees['trading'], 'maker');
|
|
1378
|
+
const takerFee = this.inArray(id, stablePairs) ? 0.00001 : this.safeNumber(feeTier, 'taker_fee_rate', defaultTakerFee);
|
|
1379
|
+
const makerFee = this.inArray(id, stablePairs) ? 0.0 : this.safeNumber(feeTier, 'maker_fee_rate', defaultMakerFee);
|
|
1376
1380
|
return this.safeMarketStructure({
|
|
1377
1381
|
'id': id,
|
|
1378
1382
|
'symbol': base + '/' + quote,
|
|
@@ -1392,8 +1396,8 @@ class coinbase extends coinbase$1 {
|
|
|
1392
1396
|
'contract': false,
|
|
1393
1397
|
'linear': undefined,
|
|
1394
1398
|
'inverse': undefined,
|
|
1395
|
-
'taker':
|
|
1396
|
-
'maker':
|
|
1399
|
+
'taker': takerFee,
|
|
1400
|
+
'maker': makerFee,
|
|
1397
1401
|
'contractSize': undefined,
|
|
1398
1402
|
'expiry': undefined,
|
|
1399
1403
|
'expiryDatetime': undefined,
|
package/dist/cjs/src/gemini.js
CHANGED
package/dist/cjs/src/htx.js
CHANGED
|
@@ -6293,6 +6293,7 @@ class htx extends htx$1 {
|
|
|
6293
6293
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
6294
6294
|
/**
|
|
6295
6295
|
* @method
|
|
6296
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
|
|
6296
6297
|
* @name huobi#fetchDepositAddressesByNetwork
|
|
6297
6298
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
6298
6299
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
@@ -6326,6 +6327,7 @@ class htx extends htx$1 {
|
|
|
6326
6327
|
/**
|
|
6327
6328
|
* @method
|
|
6328
6329
|
* @name huobi#fetchDepositAddress
|
|
6330
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
|
|
6329
6331
|
* @description fetch the deposit address for a currency associated with this account
|
|
6330
6332
|
* @param {string} code unified currency code
|
|
6331
6333
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6376,6 +6378,7 @@ class htx extends htx$1 {
|
|
|
6376
6378
|
/**
|
|
6377
6379
|
* @method
|
|
6378
6380
|
* @name huobi#fetchDeposits
|
|
6381
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4f050-7773-11ed-9966-0242ac110003
|
|
6379
6382
|
* @description fetch all deposits made to an account
|
|
6380
6383
|
* @param {string} code unified currency code
|
|
6381
6384
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
@@ -6610,6 +6613,7 @@ class htx extends htx$1 {
|
|
|
6610
6613
|
/**
|
|
6611
6614
|
* @method
|
|
6612
6615
|
* @name huobi#withdraw
|
|
6616
|
+
* @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4cc41-7773-11ed-9966-0242ac110003
|
|
6613
6617
|
* @description make a withdrawal
|
|
6614
6618
|
* @param {string} code unified currency code
|
|
6615
6619
|
* @param {float} amount the amount to withdraw
|
package/dist/cjs/src/kraken.js
CHANGED
|
@@ -1850,6 +1850,9 @@ class kraken extends kraken$1 {
|
|
|
1850
1850
|
const extendedPostFlags = (flags !== undefined) ? flags + ',post' : 'post';
|
|
1851
1851
|
request['oflags'] = extendedPostFlags;
|
|
1852
1852
|
}
|
|
1853
|
+
if ((flags !== undefined) && (request['oflags'] === undefined)) {
|
|
1854
|
+
request['oflags'] = flags;
|
|
1855
|
+
}
|
|
1853
1856
|
params = this.omit(params, ['timeInForce', 'reduceOnly', 'stopLossPrice', 'takeProfitPrice', 'trailingAmount', 'trailingLimitAmount', 'offset']);
|
|
1854
1857
|
return [request, params];
|
|
1855
1858
|
}
|
|
@@ -535,6 +535,12 @@ class binance extends binance$1 {
|
|
|
535
535
|
/**
|
|
536
536
|
* @method
|
|
537
537
|
* @name binance#watchOrderBook
|
|
538
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
|
539
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
|
540
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
|
541
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
|
542
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
|
543
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
|
538
544
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
539
545
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
540
546
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -584,6 +590,12 @@ class binance extends binance$1 {
|
|
|
584
590
|
/**
|
|
585
591
|
* @method
|
|
586
592
|
* @name binance#watchOrderBookForSymbols
|
|
593
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
|
|
594
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#diff-depth-stream
|
|
595
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#partial-book-depth-streams
|
|
596
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#diff-book-depth-streams
|
|
597
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#partial-book-depth-streams
|
|
598
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams
|
|
587
599
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
588
600
|
* @param {string[]} symbols unified array of symbols
|
|
589
601
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -1476,6 +1488,12 @@ class binance extends binance$1 {
|
|
|
1476
1488
|
/**
|
|
1477
1489
|
* @method
|
|
1478
1490
|
* @name binance#watchTicker
|
|
1491
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
|
1492
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
|
1493
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
|
1494
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
|
1495
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
|
1496
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
|
1479
1497
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1480
1498
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1481
1499
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1491,6 +1509,12 @@ class binance extends binance$1 {
|
|
|
1491
1509
|
/**
|
|
1492
1510
|
* @method
|
|
1493
1511
|
* @name binance#watchTickers
|
|
1512
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-mini-ticker-stream
|
|
1513
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#individual-symbol-ticker-streams
|
|
1514
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-market-mini-tickers-stream
|
|
1515
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#individual-symbol-ticker-streams
|
|
1516
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-market-mini-tickers-stream
|
|
1517
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#individual-symbol-ticker-streams
|
|
1494
1518
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
1495
1519
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
1496
1520
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -40,8 +40,8 @@ class bitmart extends bitmart$1 {
|
|
|
40
40
|
'private': 'wss://ws-manager-compress.{hostname}/user?protocol=1.1',
|
|
41
41
|
},
|
|
42
42
|
'swap': {
|
|
43
|
-
'public': 'wss://openapi-ws.{hostname}/api?protocol=1.1',
|
|
44
|
-
'private': 'wss://openapi-ws.{hostname}/user?protocol=1.1',
|
|
43
|
+
'public': 'wss://openapi-ws-v2.{hostname}/api?protocol=1.1',
|
|
44
|
+
'private': 'wss://openapi-ws-v2.{hostname}/user?protocol=1.1',
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
},
|
|
@@ -135,7 +135,7 @@ class bitmart extends bitmart$1 {
|
|
|
135
135
|
* @method
|
|
136
136
|
* @name bitmart#watchBalance
|
|
137
137
|
* @see https://developer-pro.bitmart.com/en/spot/#private-balance-change
|
|
138
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
138
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#private-assets-channel
|
|
139
139
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
140
140
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
141
141
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
@@ -269,7 +269,7 @@ class bitmart extends bitmart$1 {
|
|
|
269
269
|
* @method
|
|
270
270
|
* @name bitmart#watchTrades
|
|
271
271
|
* @see https://developer-pro.bitmart.com/en/spot/#public-trade-channel
|
|
272
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
272
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-trade-channel
|
|
273
273
|
* @description get the list of most recent trades for a particular symbol
|
|
274
274
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
275
275
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
@@ -319,6 +319,7 @@ class bitmart extends bitmart$1 {
|
|
|
319
319
|
* @method
|
|
320
320
|
* @name bitmart#watchTicker
|
|
321
321
|
* @see https://developer-pro.bitmart.com/en/spot/#public-ticker-channel
|
|
322
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
|
322
323
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
323
324
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
324
325
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -333,7 +334,7 @@ class bitmart extends bitmart$1 {
|
|
|
333
334
|
/**
|
|
334
335
|
* @method
|
|
335
336
|
* @name bitmart#watchTickers
|
|
336
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
337
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
|
337
338
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
338
339
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
339
340
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -357,7 +358,7 @@ class bitmart extends bitmart$1 {
|
|
|
357
358
|
* @name bitmart#watchOrders
|
|
358
359
|
* @description watches information on multiple orders made by the user
|
|
359
360
|
* @see https://developer-pro.bitmart.com/en/spot/#private-order-progress
|
|
360
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
361
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#private-order-channel
|
|
361
362
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
362
363
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
363
364
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -992,7 +993,7 @@ class bitmart extends bitmart$1 {
|
|
|
992
993
|
* @method
|
|
993
994
|
* @name bitmart#watchOHLCV
|
|
994
995
|
* @see https://developer-pro.bitmart.com/en/spot/#public-kline-channel
|
|
995
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
996
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-klinebin-channel
|
|
996
997
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
997
998
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
998
999
|
* @param {string} timeframe the length of time each candle represents
|
|
@@ -1120,7 +1121,7 @@ class bitmart extends bitmart$1 {
|
|
|
1120
1121
|
* @name bitmart#watchOrderBook
|
|
1121
1122
|
* @see https://developer-pro.bitmart.com/en/spot/#public-depth-all-channel
|
|
1122
1123
|
* @see https://developer-pro.bitmart.com/en/spot/#public-depth-increase-channel
|
|
1123
|
-
* @see https://developer-pro.bitmart.com/en/
|
|
1124
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-depth-channel
|
|
1124
1125
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1125
1126
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1126
1127
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -77,6 +77,25 @@ class bybit extends bybit$1 {
|
|
|
77
77
|
},
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
|
+
'demotrading': {
|
|
81
|
+
'ws': {
|
|
82
|
+
'public': {
|
|
83
|
+
'spot': 'wss://stream.{hostname}/v5/public/spot',
|
|
84
|
+
'inverse': 'wss://stream.{hostname}/v5/public/inverse',
|
|
85
|
+
'option': 'wss://stream.{hostname}/v5/public/option',
|
|
86
|
+
'linear': 'wss://stream.{hostname}/v5/public/linear',
|
|
87
|
+
},
|
|
88
|
+
'private': {
|
|
89
|
+
'spot': {
|
|
90
|
+
'unified': 'wss://stream-demo.{hostname}/v5/private',
|
|
91
|
+
'nonUnified': 'wss://stream-demo.{hostname}/spot/private/v3',
|
|
92
|
+
},
|
|
93
|
+
'contract': 'wss://stream-demo.{hostname}/v5/private',
|
|
94
|
+
'usdc': 'wss://stream-demo.{hostname}/trade/option/usdc/private/v1',
|
|
95
|
+
'trade': 'wss://stream-demo.bybit.com/v5/trade',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
80
99
|
},
|
|
81
100
|
'options': {
|
|
82
101
|
'watchTicker': {
|
|
@@ -166,7 +185,7 @@ class bybit extends bybit$1 {
|
|
|
166
185
|
if (isSpot) {
|
|
167
186
|
url = url[accessibility]['spot'];
|
|
168
187
|
}
|
|
169
|
-
else if (type === 'swap') {
|
|
188
|
+
else if ((type === 'swap') || (type === 'future')) {
|
|
170
189
|
let subType = undefined;
|
|
171
190
|
[subType, params] = this.handleSubTypeAndParams(method, market, params, 'linear');
|
|
172
191
|
url = url[accessibility][subType];
|
|
@@ -2061,7 +2080,7 @@ class bybit extends bybit$1 {
|
|
|
2061
2080
|
this.handleSubscriptionStatus(client, message);
|
|
2062
2081
|
return;
|
|
2063
2082
|
}
|
|
2064
|
-
const topic = this.safeString2(message, 'topic', 'op');
|
|
2083
|
+
const topic = this.safeString2(message, 'topic', 'op', '');
|
|
2065
2084
|
const methods = {
|
|
2066
2085
|
'orderbook': this.handleOrderBook,
|
|
2067
2086
|
'kline': this.handleOHLCV,
|
package/dist/cjs/src/pro/woo.js
CHANGED
package/dist/cjs/src/xt.js
CHANGED
|
@@ -8,6 +8,10 @@ var sha256 = require('./static_dependencies/noble-hashes/sha256.js');
|
|
|
8
8
|
|
|
9
9
|
// ---------------------------------------------------------------------------
|
|
10
10
|
// ---------------------------------------------------------------------------
|
|
11
|
+
/**
|
|
12
|
+
* @class xt
|
|
13
|
+
* @augments Exchange
|
|
14
|
+
*/
|
|
11
15
|
class xt extends xt$1 {
|
|
12
16
|
describe() {
|
|
13
17
|
return this.deepExtend(super.describe(), {
|
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 type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.76";
|
|
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, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.77';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -61,6 +61,8 @@ interface Exchange {
|
|
|
61
61
|
privateGetContractPrivateCurrentPlanOrder(params?: {}): Promise<implicitReturnType>;
|
|
62
62
|
privateGetContractPrivateTrades(params?: {}): Promise<implicitReturnType>;
|
|
63
63
|
privateGetContractPrivatePositionRisk(params?: {}): Promise<implicitReturnType>;
|
|
64
|
+
privateGetContractPrivateAffilateRebateList(params?: {}): Promise<implicitReturnType>;
|
|
65
|
+
privateGetContractPrivateAffilateTradeList(params?: {}): Promise<implicitReturnType>;
|
|
64
66
|
privatePostAccountSubAccountMainV1SubToMain(params?: {}): Promise<implicitReturnType>;
|
|
65
67
|
privatePostAccountSubAccountSubV1SubToMain(params?: {}): Promise<implicitReturnType>;
|
|
66
68
|
privatePostAccountSubAccountMainV1MainToSub(params?: {}): Promise<implicitReturnType>;
|
|
@@ -55,6 +55,7 @@ interface Exchange {
|
|
|
55
55
|
privatePostV1AccountCreate(params?: {}): Promise<implicitReturnType>;
|
|
56
56
|
privatePostV1AccountList(params?: {}): Promise<implicitReturnType>;
|
|
57
57
|
privatePostV1Heartbeat(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
privatePostV1Roles(params?: {}): Promise<implicitReturnType>;
|
|
58
59
|
}
|
|
59
60
|
declare abstract class Exchange extends _Exchange {
|
|
60
61
|
}
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -1985,7 +1985,7 @@ export default class Exchange {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
async watchLiquidations(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1987
1987
|
if (this.has['watchLiquidationsForSymbols']) {
|
|
1988
|
-
return this.watchLiquidationsForSymbols([symbol], since, limit, params);
|
|
1988
|
+
return await this.watchLiquidationsForSymbols([symbol], since, limit, params);
|
|
1989
1989
|
}
|
|
1990
1990
|
throw new NotSupported(this.id + ' watchLiquidations() is not supported yet');
|
|
1991
1991
|
}
|
package/js/src/binance.js
CHANGED
|
@@ -2800,7 +2800,7 @@ export default class binance extends Exchange {
|
|
|
2800
2800
|
'active': depositEnable && withdrawEnable,
|
|
2801
2801
|
'deposit': depositEnable,
|
|
2802
2802
|
'withdraw': withdrawEnable,
|
|
2803
|
-
'fee':
|
|
2803
|
+
'fee': withdrawFee,
|
|
2804
2804
|
'precision': this.parseNumber(precisionTick),
|
|
2805
2805
|
'limits': {
|
|
2806
2806
|
'withdraw': {
|
|
@@ -2808,7 +2808,7 @@ export default class binance extends Exchange {
|
|
|
2808
2808
|
'max': this.safeNumber(networkItem, 'withdrawMax'),
|
|
2809
2809
|
},
|
|
2810
2810
|
'deposit': {
|
|
2811
|
-
'min':
|
|
2811
|
+
'min': this.safeNumber(networkItem, 'depositDust'),
|
|
2812
2812
|
'max': undefined,
|
|
2813
2813
|
},
|
|
2814
2814
|
},
|
package/js/src/bithumb.js
CHANGED
|
@@ -201,7 +201,7 @@ export default class bithumb extends Exchange {
|
|
|
201
201
|
* @method
|
|
202
202
|
* @name bithumb#fetchMarkets
|
|
203
203
|
* @description retrieves data on all markets for bithumb
|
|
204
|
-
* @see https://apidocs.bithumb.com/reference/%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C-all
|
|
204
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C-all
|
|
205
205
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
206
206
|
* @returns {object[]} an array of objects representing market data
|
|
207
207
|
*/
|
|
@@ -344,7 +344,7 @@ export default class bithumb extends Exchange {
|
|
|
344
344
|
* @method
|
|
345
345
|
* @name bithumb#fetchBalance
|
|
346
346
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
347
|
-
* @see https://apidocs.bithumb.com/reference/%EB%B3%B4%EC%9C%A0%EC%9E%90%EC%82%B0-%EC%A1%B0%ED%9A%8C
|
|
347
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EB%B3%B4%EC%9C%A0%EC%9E%90%EC%82%B0-%EC%A1%B0%ED%9A%8C
|
|
348
348
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
349
349
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
350
350
|
*/
|
|
@@ -360,7 +360,7 @@ export default class bithumb extends Exchange {
|
|
|
360
360
|
* @method
|
|
361
361
|
* @name bithumb#fetchOrderBook
|
|
362
362
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
363
|
-
* @see https://apidocs.bithumb.com/reference/%ED%98%B8%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C
|
|
363
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%ED%98%B8%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C
|
|
364
364
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
365
365
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
366
366
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -453,7 +453,7 @@ export default class bithumb extends Exchange {
|
|
|
453
453
|
* @method
|
|
454
454
|
* @name bithumb#fetchTickers
|
|
455
455
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
456
|
-
* @see https://apidocs.bithumb.com/reference/%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C-all
|
|
456
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C-all
|
|
457
457
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
458
458
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
459
459
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -515,7 +515,7 @@ export default class bithumb extends Exchange {
|
|
|
515
515
|
* @method
|
|
516
516
|
* @name bithumb#fetchTicker
|
|
517
517
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
518
|
-
* @see https://apidocs.bithumb.com/reference/%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C
|
|
518
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4-%EC%A1%B0%ED%9A%8C
|
|
519
519
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
520
520
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
521
521
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -574,7 +574,7 @@ export default class bithumb extends Exchange {
|
|
|
574
574
|
* @method
|
|
575
575
|
* @name bithumb#fetchOHLCV
|
|
576
576
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
577
|
-
* @see https://apidocs.bithumb.com/reference/candlestick-rest-api
|
|
577
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/candlestick-rest-api
|
|
578
578
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
579
579
|
* @param {string} timeframe the length of time each candle represents
|
|
580
580
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -699,7 +699,7 @@ export default class bithumb extends Exchange {
|
|
|
699
699
|
* @method
|
|
700
700
|
* @name bithumb#fetchTrades
|
|
701
701
|
* @description get the list of most recent trades for a particular symbol
|
|
702
|
-
* @see https://apidocs.bithumb.com/reference/%EC%B5%9C%EA%B7%BC-%EC%B2%B4%EA%B2%B0-%EB%82%B4%EC%97%AD
|
|
702
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EC%B5%9C%EA%B7%BC-%EC%B2%B4%EA%B2%B0-%EB%82%B4%EC%97%AD
|
|
703
703
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
704
704
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
705
705
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -738,9 +738,9 @@ export default class bithumb extends Exchange {
|
|
|
738
738
|
* @method
|
|
739
739
|
* @name bithumb#createOrder
|
|
740
740
|
* @description create a trade order
|
|
741
|
-
* @see https://apidocs.bithumb.com/reference/%EC%A7%80%EC%A0%95%EA%B0%80-%EC%A3%BC%EB%AC%B8%ED%95%98%EA%B8%B0
|
|
742
|
-
* @see https://apidocs.bithumb.com/reference/%EC%8B%9C%EC%9E%A5%EA%B0%80-%EB%A7%A4%EC%88%98%ED%95%98%EA%B8%B0
|
|
743
|
-
* @see https://apidocs.bithumb.com/reference/%EC%8B%9C%EC%9E%A5%EA%B0%80-%EB%A7%A4%EB%8F%84%ED%95%98%EA%B8%B0
|
|
741
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EC%A7%80%EC%A0%95%EA%B0%80-%EC%A3%BC%EB%AC%B8%ED%95%98%EA%B8%B0
|
|
742
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EC%8B%9C%EC%9E%A5%EA%B0%80-%EB%A7%A4%EC%88%98%ED%95%98%EA%B8%B0
|
|
743
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EC%8B%9C%EC%9E%A5%EA%B0%80-%EB%A7%A4%EB%8F%84%ED%95%98%EA%B8%B0
|
|
744
744
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
745
745
|
* @param {string} type 'market' or 'limit'
|
|
746
746
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -782,7 +782,7 @@ export default class bithumb extends Exchange {
|
|
|
782
782
|
* @method
|
|
783
783
|
* @name bithumb#fetchOrder
|
|
784
784
|
* @description fetches information on an order made by the user
|
|
785
|
-
* @see https://apidocs.bithumb.com/reference/%EA%B1%B0%EB%9E%98-%EC%A3%BC%EB%AC%B8%EB%82%B4%EC%97%AD-%EC%83%81%EC%84%B8-%EC%A1%B0%ED%9A%8C
|
|
785
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EA%B1%B0%EB%9E%98-%EC%A3%BC%EB%AC%B8%EB%82%B4%EC%97%AD-%EC%83%81%EC%84%B8-%EC%A1%B0%ED%9A%8C
|
|
786
786
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
787
787
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
788
788
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -941,7 +941,7 @@ export default class bithumb extends Exchange {
|
|
|
941
941
|
* @method
|
|
942
942
|
* @name bithumb#fetchOpenOrders
|
|
943
943
|
* @description fetch all unfilled currently open orders
|
|
944
|
-
* @see https://apidocs.bithumb.com/reference/%EA%B1%B0%EB%9E%98-%EC%A3%BC%EB%AC%B8%EB%82%B4%EC%97%AD-%EC%A1%B0%ED%9A%8C
|
|
944
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EA%B1%B0%EB%9E%98-%EC%A3%BC%EB%AC%B8%EB%82%B4%EC%97%AD-%EC%A1%B0%ED%9A%8C
|
|
945
945
|
* @param {string} symbol unified market symbol
|
|
946
946
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
947
947
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
@@ -990,7 +990,7 @@ export default class bithumb extends Exchange {
|
|
|
990
990
|
* @method
|
|
991
991
|
* @name bithumb#cancelOrder
|
|
992
992
|
* @description cancels an open order
|
|
993
|
-
* @see https://apidocs.bithumb.com/reference/%EC%A3%BC%EB%AC%B8-%EC%B7%A8%EC%86%8C%ED%95%98%EA%B8%B0
|
|
993
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EC%A3%BC%EB%AC%B8-%EC%B7%A8%EC%86%8C%ED%95%98%EA%B8%B0
|
|
994
994
|
* @param {string} id order id
|
|
995
995
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
996
996
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1034,7 +1034,7 @@ export default class bithumb extends Exchange {
|
|
|
1034
1034
|
* @method
|
|
1035
1035
|
* @name bithumb#withdraw
|
|
1036
1036
|
* @description make a withdrawal
|
|
1037
|
-
* @see https://apidocs.bithumb.com/reference/%EC%BD%94%EC%9D%B8-%EC%B6%9C%EA%B8%88%ED%95%98%EA%B8%B0-%EA%B0%9C%EC%9D%B8
|
|
1037
|
+
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EC%BD%94%EC%9D%B8-%EC%B6%9C%EA%B8%88%ED%95%98%EA%B8%B0-%EA%B0%9C%EC%9D%B8
|
|
1038
1038
|
* @param {string} code unified currency code
|
|
1039
1039
|
* @param {float} amount the amount to withdraw
|
|
1040
1040
|
* @param {string} address the address to withdraw to
|