ccxt 4.3.6 → 4.3.7
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/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +5 -0
- package/dist/cjs/src/alpaca.js +6 -0
- package/dist/cjs/src/base/Exchange.js +34 -0
- package/dist/cjs/src/binance.js +2 -0
- package/dist/cjs/src/bingx.js +2 -0
- package/dist/cjs/src/bitbank.js +3 -0
- package/dist/cjs/src/bitget.js +74 -1
- package/dist/cjs/src/bithumb.js +4 -0
- package/dist/cjs/src/bitmex.js +2 -0
- package/dist/cjs/src/bitopro.js +5 -0
- package/dist/cjs/src/bitso.js +3 -0
- package/dist/cjs/src/bitstamp.js +3 -0
- package/dist/cjs/src/bitteam.js +4 -0
- package/dist/cjs/src/bitvavo.js +3 -0
- package/dist/cjs/src/bl3p.js +3 -0
- package/dist/cjs/src/btcalpha.js +3 -0
- package/dist/cjs/src/btcbox.js +3 -0
- package/dist/cjs/src/btcmarkets.js +3 -0
- package/dist/cjs/src/btcturk.js +3 -0
- package/dist/cjs/src/bybit.js +123 -12
- package/dist/cjs/src/cex.js +6 -0
- package/dist/cjs/src/coinbase.js +95 -17
- package/dist/cjs/src/coinbaseinternational.js +2 -0
- package/dist/cjs/src/coinbasepro.js +6 -0
- package/dist/cjs/src/coincheck.js +3 -0
- package/dist/cjs/src/coinex.js +150 -43
- package/dist/cjs/src/coinlist.js +4 -0
- package/dist/cjs/src/coinmate.js +3 -0
- package/dist/cjs/src/coinone.js +3 -0
- package/dist/cjs/src/coinsph.js +4 -0
- package/dist/cjs/src/coinspot.js +3 -0
- package/dist/cjs/src/cryptocom.js +2 -0
- package/dist/cjs/src/exmo.js +5 -0
- package/dist/cjs/src/gate.js +124 -22
- package/dist/cjs/src/hitbtc.js +4 -3
- package/dist/cjs/src/htx.js +2 -0
- package/dist/cjs/src/idex.js +3 -0
- package/dist/cjs/src/independentreserve.js +3 -0
- package/dist/cjs/src/indodax.js +3 -0
- package/dist/cjs/src/kucoin.js +2 -0
- package/dist/cjs/src/kucoinfutures.js +2 -0
- package/dist/cjs/src/latoken.js +6 -0
- package/dist/cjs/src/luno.js +3 -0
- package/dist/cjs/src/lykke.js +5 -0
- package/dist/cjs/src/mercado.js +3 -0
- package/dist/cjs/src/mexc.js +111 -0
- package/dist/cjs/src/ndax.js +4 -0
- package/dist/cjs/src/novadax.js +4 -0
- package/dist/cjs/src/okx.js +83 -0
- package/dist/cjs/src/onetrading.js +3 -0
- package/dist/cjs/src/p2b.js +3 -0
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/dist/cjs/src/pro/coinbase.js +30 -29
- package/dist/cjs/src/probit.js +3 -0
- package/dist/cjs/src/timex.js +3 -0
- package/dist/cjs/src/tradeogre.js +3 -0
- package/dist/cjs/src/wavesexchange.js +3 -0
- package/dist/cjs/src/wazirx.js +3 -0
- package/dist/cjs/src/woo.js +2 -0
- package/dist/cjs/src/yobit.js +3 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/coinbase.d.ts +5 -0
- package/js/src/ace.js +5 -0
- package/js/src/alpaca.js +6 -0
- package/js/src/ascendex.d.ts +2 -2
- package/js/src/base/Exchange.d.ts +4 -0
- package/js/src/base/Exchange.js +34 -0
- package/js/src/bigone.d.ts +1 -1
- package/js/src/binance.d.ts +3 -3
- package/js/src/binance.js +2 -0
- package/js/src/bingx.d.ts +1 -1
- package/js/src/bingx.js +2 -0
- package/js/src/bitbank.d.ts +1 -1
- package/js/src/bitbank.js +3 -0
- package/js/src/bitfinex.d.ts +1 -1
- package/js/src/bitfinex2.d.ts +1 -1
- package/js/src/bitflyer.d.ts +1 -1
- package/js/src/bitget.d.ts +4 -3
- package/js/src/bitget.js +74 -1
- package/js/src/bithumb.d.ts +1 -1
- package/js/src/bithumb.js +4 -0
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmex.d.ts +1 -1
- package/js/src/bitmex.js +2 -0
- package/js/src/bitopro.d.ts +1 -1
- package/js/src/bitopro.js +5 -0
- package/js/src/bitrue.d.ts +1 -1
- package/js/src/bitso.d.ts +1 -1
- package/js/src/bitso.js +3 -0
- package/js/src/bitstamp.d.ts +1 -1
- package/js/src/bitstamp.js +3 -0
- package/js/src/bitteam.js +4 -0
- package/js/src/bitvavo.d.ts +1 -1
- package/js/src/bitvavo.js +3 -0
- package/js/src/bl3p.js +3 -0
- package/js/src/blockchaincom.d.ts +1 -1
- package/js/src/btcalpha.js +3 -0
- package/js/src/btcbox.js +3 -0
- package/js/src/btcmarkets.d.ts +1 -1
- package/js/src/btcmarkets.js +3 -0
- package/js/src/btcturk.js +3 -0
- package/js/src/bybit.d.ts +7 -6
- package/js/src/bybit.js +123 -12
- package/js/src/cex.js +6 -0
- package/js/src/coinbase.d.ts +1 -1
- package/js/src/coinbase.js +95 -17
- package/js/src/coinbaseinternational.d.ts +1 -1
- package/js/src/coinbaseinternational.js +2 -0
- package/js/src/coinbasepro.d.ts +1 -1
- package/js/src/coinbasepro.js +6 -0
- package/js/src/coincheck.js +3 -0
- package/js/src/coinex.d.ts +8 -7
- package/js/src/coinex.js +150 -43
- package/js/src/coinlist.d.ts +1 -1
- package/js/src/coinlist.js +4 -0
- package/js/src/coinmate.d.ts +1 -1
- package/js/src/coinmate.js +3 -0
- package/js/src/coinone.js +3 -0
- package/js/src/coinsph.d.ts +1 -1
- package/js/src/coinsph.js +4 -0
- package/js/src/coinspot.js +3 -0
- package/js/src/cryptocom.d.ts +1 -1
- package/js/src/cryptocom.js +2 -0
- package/js/src/delta.d.ts +2 -2
- package/js/src/deribit.d.ts +1 -1
- package/js/src/digifinex.d.ts +3 -3
- package/js/src/exmo.d.ts +3 -3
- package/js/src/exmo.js +5 -0
- package/js/src/gate.d.ts +8 -7
- package/js/src/gate.js +124 -22
- package/js/src/gemini.d.ts +1 -1
- package/js/src/hitbtc.d.ts +3 -3
- package/js/src/hitbtc.js +4 -3
- package/js/src/hollaex.d.ts +1 -1
- package/js/src/htx.d.ts +1 -1
- package/js/src/htx.js +2 -0
- package/js/src/huobijp.d.ts +1 -1
- package/js/src/hyperliquid.d.ts +2 -2
- package/js/src/idex.d.ts +1 -1
- package/js/src/idex.js +3 -0
- package/js/src/independentreserve.js +3 -0
- package/js/src/indodax.d.ts +1 -1
- package/js/src/indodax.js +3 -0
- package/js/src/kraken.d.ts +1 -1
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +2 -0
- package/js/src/kucoinfutures.d.ts +1 -1
- package/js/src/kucoinfutures.js +2 -0
- package/js/src/kuna.d.ts +1 -1
- package/js/src/latoken.js +6 -0
- package/js/src/lbank.d.ts +1 -1
- package/js/src/luno.js +3 -0
- package/js/src/lykke.d.ts +1 -1
- package/js/src/lykke.js +5 -0
- package/js/src/mercado.d.ts +1 -1
- package/js/src/mercado.js +3 -0
- package/js/src/mexc.d.ts +4 -3
- package/js/src/mexc.js +111 -0
- package/js/src/ndax.d.ts +1 -1
- package/js/src/ndax.js +4 -0
- package/js/src/novadax.d.ts +1 -1
- package/js/src/novadax.js +4 -0
- package/js/src/okcoin.d.ts +1 -1
- package/js/src/okx.d.ts +9 -8
- package/js/src/okx.js +83 -0
- package/js/src/onetrading.d.ts +1 -1
- package/js/src/onetrading.js +3 -0
- package/js/src/p2b.js +3 -0
- package/js/src/phemex.d.ts +1 -1
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/pro/bybit.js +1 -1
- package/js/src/pro/coinbase.d.ts +2 -2
- package/js/src/pro/coinbase.js +30 -29
- package/js/src/probit.d.ts +1 -1
- package/js/src/probit.js +3 -0
- package/js/src/timex.js +3 -0
- package/js/src/tokocrypto.d.ts +1 -1
- package/js/src/tradeogre.js +3 -0
- package/js/src/upbit.d.ts +1 -1
- package/js/src/wavesexchange.d.ts +1 -1
- package/js/src/wavesexchange.js +3 -0
- package/js/src/wazirx.js +3 -0
- package/js/src/whitebit.d.ts +1 -1
- package/js/src/woo.d.ts +1 -1
- package/js/src/woo.js +2 -0
- package/js/src/yobit.d.ts +1 -1
- package/js/src/yobit.js +3 -0
- package/js/src/zaif.d.ts +1 -1
- package/js/src/zonda.d.ts +1 -1
- package/package.json +1 -1
package/js/src/pro/coinbase.js
CHANGED
|
@@ -49,7 +49,7 @@ export default class coinbase extends coinbaseRest {
|
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
async subscribe(name, symbol = undefined, params = {}) {
|
|
52
|
+
async subscribe(name, isPrivate, symbol = undefined, params = {}) {
|
|
53
53
|
/**
|
|
54
54
|
* @ignore
|
|
55
55
|
* @method
|
|
@@ -61,7 +61,6 @@ export default class coinbase extends coinbaseRest {
|
|
|
61
61
|
* @returns {object} subscription to a websocket channel
|
|
62
62
|
*/
|
|
63
63
|
await this.loadMarkets();
|
|
64
|
-
this.checkRequiredCredentials();
|
|
65
64
|
let market = undefined;
|
|
66
65
|
let messageHash = name;
|
|
67
66
|
let productIds = [];
|
|
@@ -78,8 +77,6 @@ export default class coinbase extends coinbaseRest {
|
|
|
78
77
|
}
|
|
79
78
|
const url = this.urls['api']['ws'];
|
|
80
79
|
const timestamp = this.numberToString(this.seconds());
|
|
81
|
-
const isCloudAPiKey = (this.apiKey.indexOf('organizations/') >= 0) || (this.secret.startsWith('-----BEGIN'));
|
|
82
|
-
const auth = timestamp + name + productIds.join(',');
|
|
83
80
|
const subscribe = {
|
|
84
81
|
'type': 'subscribe',
|
|
85
82
|
'product_ids': productIds,
|
|
@@ -88,25 +85,30 @@ export default class coinbase extends coinbaseRest {
|
|
|
88
85
|
// 'timestamp': timestamp,
|
|
89
86
|
// 'signature': this.hmac (this.encode (auth), this.encode (this.secret), sha256),
|
|
90
87
|
};
|
|
91
|
-
if (
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
if (isPrivate) {
|
|
89
|
+
this.checkRequiredCredentials();
|
|
90
|
+
const isCloudAPiKey = (this.apiKey.indexOf('organizations/') >= 0) || (this.secret.startsWith('-----BEGIN'));
|
|
91
|
+
const auth = timestamp + name + productIds.join(',');
|
|
92
|
+
if (!isCloudAPiKey) {
|
|
93
|
+
subscribe['api_key'] = this.apiKey;
|
|
94
|
+
subscribe['timestamp'] = timestamp;
|
|
95
|
+
subscribe['signature'] = this.hmac(this.encode(auth), this.encode(this.secret), sha256);
|
|
99
96
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
97
|
+
else {
|
|
98
|
+
if (this.apiKey.startsWith('-----BEGIN')) {
|
|
99
|
+
throw new ArgumentsRequired(this.id + ' apiKey should contain the name (eg: organizations/3b910e93....) and not the public key');
|
|
100
|
+
}
|
|
101
|
+
const currentToken = this.safeString(this.options, 'wsToken');
|
|
102
|
+
const tokenTimestamp = this.safeInteger(this.options, 'wsTokenTimestamp', 0);
|
|
103
|
+
const seconds = this.seconds();
|
|
104
|
+
if (currentToken === undefined || tokenTimestamp + 120 < seconds) {
|
|
105
|
+
// we should generate new token
|
|
106
|
+
const token = this.createAuthToken(seconds);
|
|
107
|
+
this.options['wsToken'] = token;
|
|
108
|
+
this.options['wsTokenTimestamp'] = seconds;
|
|
109
|
+
}
|
|
110
|
+
subscribe['jwt'] = this.safeString(this.options, 'wsToken');
|
|
108
111
|
}
|
|
109
|
-
subscribe['jwt'] = this.safeString(this.options, 'wsToken');
|
|
110
112
|
}
|
|
111
113
|
return await this.watch(url, messageHash, subscribe, messageHash);
|
|
112
114
|
}
|
|
@@ -121,7 +123,7 @@ export default class coinbase extends coinbaseRest {
|
|
|
121
123
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
122
124
|
*/
|
|
123
125
|
const name = 'ticker';
|
|
124
|
-
return await this.subscribe(name, symbol, params);
|
|
126
|
+
return await this.subscribe(name, false, symbol, params);
|
|
125
127
|
}
|
|
126
128
|
async watchTickers(symbols = undefined, params = {}) {
|
|
127
129
|
/**
|
|
@@ -137,7 +139,7 @@ export default class coinbase extends coinbaseRest {
|
|
|
137
139
|
symbols = this.symbols;
|
|
138
140
|
}
|
|
139
141
|
const name = 'ticker_batch';
|
|
140
|
-
const tickers = await this.subscribe(name, symbols, params);
|
|
142
|
+
const tickers = await this.subscribe(name, false, symbols, params);
|
|
141
143
|
if (this.newUpdates) {
|
|
142
144
|
return tickers;
|
|
143
145
|
}
|
|
@@ -301,7 +303,7 @@ export default class coinbase extends coinbaseRest {
|
|
|
301
303
|
await this.loadMarkets();
|
|
302
304
|
symbol = this.symbol(symbol);
|
|
303
305
|
const name = 'market_trades';
|
|
304
|
-
const trades = await this.subscribe(name, symbol, params);
|
|
306
|
+
const trades = await this.subscribe(name, false, symbol, params);
|
|
305
307
|
if (this.newUpdates) {
|
|
306
308
|
limit = trades.getLimit(symbol, limit);
|
|
307
309
|
}
|
|
@@ -321,7 +323,7 @@ export default class coinbase extends coinbaseRest {
|
|
|
321
323
|
*/
|
|
322
324
|
await this.loadMarkets();
|
|
323
325
|
const name = 'user';
|
|
324
|
-
const orders = await this.subscribe(name, symbol, params);
|
|
326
|
+
const orders = await this.subscribe(name, true, symbol, params);
|
|
325
327
|
if (this.newUpdates) {
|
|
326
328
|
limit = orders.getLimit(symbol, limit);
|
|
327
329
|
}
|
|
@@ -342,7 +344,7 @@ export default class coinbase extends coinbaseRest {
|
|
|
342
344
|
const name = 'level2';
|
|
343
345
|
const market = this.market(symbol);
|
|
344
346
|
symbol = market['symbol'];
|
|
345
|
-
const orderbook = await this.subscribe(name, symbol, params);
|
|
347
|
+
const orderbook = await this.subscribe(name, false, symbol, params);
|
|
346
348
|
return orderbook.limit();
|
|
347
349
|
}
|
|
348
350
|
handleTrade(client, message) {
|
|
@@ -560,8 +562,8 @@ export default class coinbase extends coinbaseRest {
|
|
|
560
562
|
this.orderbooks[symbol] = this.orderBook({}, limit);
|
|
561
563
|
const orderbook = this.orderbooks[symbol];
|
|
562
564
|
this.handleOrderBookHelper(orderbook, updates);
|
|
563
|
-
orderbook['timestamp'] =
|
|
564
|
-
orderbook['datetime'] =
|
|
565
|
+
orderbook['timestamp'] = this.parse8601(datetime);
|
|
566
|
+
orderbook['datetime'] = datetime;
|
|
565
567
|
orderbook['symbol'] = symbol;
|
|
566
568
|
client.resolve(orderbook, messageHash);
|
|
567
569
|
if (messageHash.endsWith('USD')) {
|
|
@@ -580,7 +582,6 @@ export default class coinbase extends coinbaseRest {
|
|
|
580
582
|
}
|
|
581
583
|
}
|
|
582
584
|
}
|
|
583
|
-
return message;
|
|
584
585
|
}
|
|
585
586
|
handleSubscriptionStatus(client, message) {
|
|
586
587
|
//
|
package/js/src/probit.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export default class probit extends Exchange {
|
|
|
45
45
|
info: any;
|
|
46
46
|
}>;
|
|
47
47
|
fetchDepositAddresses(codes?: string[], params?: {}): Promise<{}>;
|
|
48
|
-
withdraw(code: string, amount: number, address:
|
|
48
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
49
49
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
50
50
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
51
51
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
package/js/src/probit.js
CHANGED
|
@@ -70,8 +70,11 @@ export default class probit extends Exchange {
|
|
|
70
70
|
'fetchOrder': true,
|
|
71
71
|
'fetchOrderBook': true,
|
|
72
72
|
'fetchPosition': false,
|
|
73
|
+
'fetchPositionHistory': false,
|
|
73
74
|
'fetchPositionMode': false,
|
|
74
75
|
'fetchPositions': false,
|
|
76
|
+
'fetchPositionsForSymbol': false,
|
|
77
|
+
'fetchPositionsHistory': false,
|
|
75
78
|
'fetchPositionsRisk': false,
|
|
76
79
|
'fetchPremiumIndexOHLCV': false,
|
|
77
80
|
'fetchTicker': true,
|
package/js/src/timex.js
CHANGED
|
@@ -67,8 +67,11 @@ export default class timex extends Exchange {
|
|
|
67
67
|
'fetchOrder': true,
|
|
68
68
|
'fetchOrderBook': true,
|
|
69
69
|
'fetchPosition': false,
|
|
70
|
+
'fetchPositionHistory': false,
|
|
70
71
|
'fetchPositionMode': false,
|
|
71
72
|
'fetchPositions': false,
|
|
73
|
+
'fetchPositionsForSymbol': false,
|
|
74
|
+
'fetchPositionsHistory': false,
|
|
72
75
|
'fetchPositionsRisk': false,
|
|
73
76
|
'fetchPremiumIndexOHLCV': false,
|
|
74
77
|
'fetchTicker': true,
|
package/js/src/tokocrypto.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export default class tokocrypto extends Exchange {
|
|
|
42
42
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
43
43
|
parseTransactionStatusByType(status: any, type?: any): string;
|
|
44
44
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
45
|
-
withdraw(code: string, amount: number, address:
|
|
45
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
46
46
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
47
47
|
url: any;
|
|
48
48
|
method: string;
|
package/js/src/tradeogre.js
CHANGED
|
@@ -82,8 +82,11 @@ export default class tradeogre extends Exchange {
|
|
|
82
82
|
'fetchOrderTrades': false,
|
|
83
83
|
'fetchPermissions': false,
|
|
84
84
|
'fetchPosition': false,
|
|
85
|
+
'fetchPositionHistory': false,
|
|
86
|
+
'fetchPositionMode': false,
|
|
85
87
|
'fetchPositions': false,
|
|
86
88
|
'fetchPositionsForSymbol': false,
|
|
89
|
+
'fetchPositionsHistory': false,
|
|
87
90
|
'fetchPositionsRisk': false,
|
|
88
91
|
'fetchPremiumIndexOHLCV': false,
|
|
89
92
|
'fetchTicker': true,
|
package/js/src/upbit.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export default class upbit extends Exchange {
|
|
|
89
89
|
network: string;
|
|
90
90
|
info: any;
|
|
91
91
|
}>;
|
|
92
|
-
withdraw(code: string, amount: number, address:
|
|
92
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
93
93
|
nonce(): number;
|
|
94
94
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
95
95
|
url: any;
|
|
@@ -88,6 +88,6 @@ export default class wavesexchange extends Exchange {
|
|
|
88
88
|
parseDepositWithdrawFees(response: any, codes?: Strings, currencyIdKey?: any): any;
|
|
89
89
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
90
90
|
handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
|
|
91
|
-
withdraw(code: string, amount: number, address:
|
|
91
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
92
92
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
93
93
|
}
|
package/js/src/wavesexchange.js
CHANGED
|
@@ -69,8 +69,11 @@ export default class wavesexchange extends Exchange {
|
|
|
69
69
|
'fetchOrderBook': true,
|
|
70
70
|
'fetchOrders': true,
|
|
71
71
|
'fetchPosition': false,
|
|
72
|
+
'fetchPositionHistory': false,
|
|
72
73
|
'fetchPositionMode': false,
|
|
73
74
|
'fetchPositions': false,
|
|
75
|
+
'fetchPositionsForSymbol': false,
|
|
76
|
+
'fetchPositionsHistory': false,
|
|
74
77
|
'fetchPositionsRisk': false,
|
|
75
78
|
'fetchPremiumIndexOHLCV': false,
|
|
76
79
|
'fetchTicker': true,
|
package/js/src/wazirx.js
CHANGED
|
@@ -74,8 +74,11 @@ export default class wazirx extends Exchange {
|
|
|
74
74
|
'fetchOrderBook': true,
|
|
75
75
|
'fetchOrders': true,
|
|
76
76
|
'fetchPosition': false,
|
|
77
|
+
'fetchPositionHistory': false,
|
|
77
78
|
'fetchPositionMode': false,
|
|
78
79
|
'fetchPositions': false,
|
|
80
|
+
'fetchPositionsForSymbol': false,
|
|
81
|
+
'fetchPositionsHistory': false,
|
|
79
82
|
'fetchPositionsRisk': false,
|
|
80
83
|
'fetchPremiumIndexOHLCV': false,
|
|
81
84
|
'fetchStatus': true,
|
package/js/src/whitebit.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export default class whitebit extends Exchange {
|
|
|
66
66
|
toAccount: any;
|
|
67
67
|
status: any;
|
|
68
68
|
};
|
|
69
|
-
withdraw(code: string, amount: number, address:
|
|
69
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<any>;
|
|
70
70
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
71
71
|
parseTransactionStatus(status: any): string;
|
|
72
72
|
fetchDeposit(id: string, code?: Str, params?: {}): Promise<Transaction>;
|
package/js/src/woo.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export default class woo extends Exchange {
|
|
|
98
98
|
info: any;
|
|
99
99
|
};
|
|
100
100
|
parseTransferStatus(status: any): string;
|
|
101
|
-
withdraw(code: string, amount: number, address:
|
|
101
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
102
102
|
repayMargin(code: string, amount: any, symbol?: Str, params?: {}): Promise<any>;
|
|
103
103
|
parseMarginLoan(info: any, currency?: Currency): {
|
|
104
104
|
id: any;
|
package/js/src/woo.js
CHANGED
|
@@ -91,8 +91,10 @@ export default class woo extends Exchange {
|
|
|
91
91
|
'fetchOrders': true,
|
|
92
92
|
'fetchOrderTrades': true,
|
|
93
93
|
'fetchPosition': true,
|
|
94
|
+
'fetchPositionHistory': false,
|
|
94
95
|
'fetchPositionMode': false,
|
|
95
96
|
'fetchPositions': true,
|
|
97
|
+
'fetchPositionsHistory': false,
|
|
96
98
|
'fetchPremiumIndexOHLCV': false,
|
|
97
99
|
'fetchStatus': true,
|
|
98
100
|
'fetchTicker': false,
|
package/js/src/yobit.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export default class yobit extends Exchange {
|
|
|
55
55
|
rate: any;
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
58
|
-
withdraw(code: string, amount: number, address:
|
|
58
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
59
59
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
60
60
|
url: any;
|
|
61
61
|
method: string;
|
package/js/src/yobit.js
CHANGED
|
@@ -68,8 +68,11 @@ export default class yobit extends Exchange {
|
|
|
68
68
|
'fetchOrderBook': true,
|
|
69
69
|
'fetchOrderBooks': true,
|
|
70
70
|
'fetchPosition': false,
|
|
71
|
+
'fetchPositionHistory': false,
|
|
71
72
|
'fetchPositionMode': false,
|
|
72
73
|
'fetchPositions': false,
|
|
74
|
+
'fetchPositionsForSymbol': false,
|
|
75
|
+
'fetchPositionsHistory': false,
|
|
73
76
|
'fetchPositionsRisk': false,
|
|
74
77
|
'fetchPremiumIndexOHLCV': false,
|
|
75
78
|
'fetchTicker': true,
|
package/js/src/zaif.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default class zaif extends Exchange {
|
|
|
20
20
|
parseOrder(order: any, market?: Market): Order;
|
|
21
21
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
22
22
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
23
|
-
withdraw(code: string, amount: number, address:
|
|
23
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
24
24
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
25
25
|
customNonce(): string;
|
|
26
26
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
package/js/src/zonda.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export default class zonda extends Exchange {
|
|
|
71
71
|
status: string;
|
|
72
72
|
};
|
|
73
73
|
parseTransferStatus(status: any): string;
|
|
74
|
-
withdraw(code: string, amount: number, address:
|
|
74
|
+
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
75
75
|
parseTransaction(transaction: any, currency?: Currency): Transaction;
|
|
76
76
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
77
77
|
url: any;
|
package/package.json
CHANGED