ccxt 4.1.46 → 4.1.47
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.js +118 -23
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +3 -0
- package/dist/cjs/src/binance.js +4 -0
- package/dist/cjs/src/bitmart.js +2 -2
- package/dist/cjs/src/hitbtc.js +79 -1
- package/dist/cjs/src/krakenfutures.js +13 -3
- package/dist/cjs/src/pro/binance.js +2 -2
- package/dist/cjs/src/pro/bitget.js +2 -2
- package/dist/cjs/src/pro/bybit.js +2 -2
- package/dist/cjs/src/pro/cryptocom.js +2 -2
- package/dist/cjs/src/pro/gate.js +2 -2
- package/dist/cjs/src/pro/huobi.js +2 -2
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/okx.js +2 -2
- package/js/ccxt.d.ts +3 -3
- package/js/ccxt.js +1 -1
- package/js/src/abstract/binance.d.ts +4 -0
- package/js/src/abstract/binancecoinm.d.ts +4 -0
- package/js/src/abstract/binanceus.d.ts +4 -0
- package/js/src/abstract/binanceusdm.d.ts +4 -0
- package/js/src/ascendex.d.ts +3 -3
- package/js/src/base/Exchange.d.ts +2 -1
- package/js/src/base/Exchange.js +3 -0
- package/js/src/base/types.d.ts +5 -0
- package/js/src/bigone.d.ts +2 -2
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +4 -0
- package/js/src/bingx.d.ts +2 -2
- package/js/src/bitbns.d.ts +2 -2
- package/js/src/bitfinex.d.ts +3 -3
- package/js/src/bitfinex2.d.ts +3 -3
- package/js/src/bitflyer.d.ts +2 -2
- package/js/src/bitget.d.ts +2 -2
- package/js/src/bitmart.d.ts +2 -2
- package/js/src/bitmart.js +2 -2
- package/js/src/bitmex.d.ts +1 -1
- package/js/src/bitopro.d.ts +2 -2
- package/js/src/bitpanda.d.ts +2 -2
- package/js/src/bitrue.d.ts +2 -2
- package/js/src/bitso.d.ts +1 -1
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bittrex.d.ts +4 -4
- package/js/src/bitvavo.d.ts +2 -2
- package/js/src/blockchaincom.d.ts +4 -4
- package/js/src/btcalpha.d.ts +2 -2
- package/js/src/btcmarkets.d.ts +3 -3
- package/js/src/bybit.d.ts +2 -2
- package/js/src/coinbase.d.ts +5 -5
- package/js/src/coinbasepro.d.ts +3 -3
- package/js/src/coincheck.d.ts +2 -2
- package/js/src/coinex.d.ts +8 -8
- package/js/src/coinfalcon.d.ts +2 -2
- package/js/src/coinlist.d.ts +1 -1
- package/js/src/coinmate.d.ts +1 -1
- package/js/src/coinsph.d.ts +2 -2
- package/js/src/cryptocom.d.ts +2 -2
- package/js/src/currencycom.d.ts +6 -6
- package/js/src/deribit.d.ts +2 -2
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/exmo.d.ts +3 -3
- package/js/src/gate.d.ts +2 -2
- package/js/src/gemini.d.ts +1 -1
- package/js/src/hitbtc.d.ts +5 -4
- package/js/src/hitbtc.js +79 -1
- package/js/src/hollaex.d.ts +2 -2
- package/js/src/huobi.d.ts +2 -2
- package/js/src/huobijp.d.ts +2 -2
- package/js/src/idex.d.ts +2 -2
- package/js/src/indodax.d.ts +1 -1
- package/js/src/kraken.d.ts +2 -2
- package/js/src/krakenfutures.js +14 -4
- package/js/src/kucoin.d.ts +2 -2
- package/js/src/kucoinfutures.d.ts +3 -3
- package/js/src/kuna.d.ts +2 -2
- package/js/src/latoken.d.ts +2 -2
- package/js/src/lbank2.d.ts +2 -2
- package/js/src/lykke.d.ts +1 -1
- package/js/src/mexc.d.ts +2 -2
- package/js/src/ndax.d.ts +2 -2
- package/js/src/novadax.d.ts +3 -3
- package/js/src/okcoin.d.ts +8 -8
- package/js/src/okx.d.ts +7 -7
- package/js/src/phemex.d.ts +6 -6
- package/js/src/poloniex.d.ts +3 -3
- package/js/src/pro/binance.js +2 -2
- package/js/src/pro/bitget.js +2 -2
- package/js/src/pro/bybit.js +2 -2
- package/js/src/pro/cryptocom.js +2 -2
- package/js/src/pro/gate.js +2 -2
- package/js/src/pro/huobi.js +2 -2
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/okx.js +2 -2
- package/js/src/probit.d.ts +2 -2
- package/js/src/timex.d.ts +2 -2
- package/js/src/tokocrypto.d.ts +5 -5
- package/js/src/upbit.d.ts +2 -2
- package/js/src/wavesexchange.d.ts +2 -2
- package/js/src/whitebit.d.ts +1 -1
- package/js/src/woo.d.ts +3 -3
- package/package.json +1 -1
- package/skip-tests.json +5 -0
package/js/src/bitget.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export default class bitget extends Exchange {
|
|
|
65
65
|
fetchCurrencies(params?: {}): Promise<{}>;
|
|
66
66
|
fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<any[]>;
|
|
67
67
|
parseMarketLeverageTiers(info: any, market?: any): any[];
|
|
68
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
68
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
69
69
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<{
|
|
70
70
|
id: any;
|
|
71
71
|
info: any;
|
|
@@ -87,7 +87,7 @@ export default class bitget extends Exchange {
|
|
|
87
87
|
comment: any;
|
|
88
88
|
fee: any;
|
|
89
89
|
}>;
|
|
90
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
90
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
91
91
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
92
92
|
parseTransactionStatus(status: any): string;
|
|
93
93
|
fetchDepositAddress(code: string, params?: {}): Promise<{
|
package/js/src/bitmart.d.ts
CHANGED
|
@@ -94,9 +94,9 @@ export default class bitmart extends Exchange {
|
|
|
94
94
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<any>;
|
|
95
95
|
fetchTransactionsByType(type: any, code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
96
96
|
fetchDeposit(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
97
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
97
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
98
98
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
99
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
99
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
100
100
|
parseTransactionStatus(status: any): string;
|
|
101
101
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
102
102
|
repayMargin(code: string, amount: any, symbol?: string, params?: {}): Promise<any>;
|
package/js/src/bitmart.js
CHANGED
|
@@ -1512,7 +1512,7 @@ export default class bitmart extends Exchange {
|
|
|
1512
1512
|
* @method
|
|
1513
1513
|
* @name bitmart#fetchOHLCV
|
|
1514
1514
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1515
|
-
* @see https://developer-pro.bitmart.com/en/spot/#get-
|
|
1515
|
+
* @see https://developer-pro.bitmart.com/en/spot/#get-history-k-line-v3
|
|
1516
1516
|
* @see https://developer-pro.bitmart.com/en/futures/#get-k-line
|
|
1517
1517
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1518
1518
|
* @param {string} timeframe the length of time each candle represents
|
|
@@ -1575,7 +1575,7 @@ export default class bitmart extends Exchange {
|
|
|
1575
1575
|
response = await this.publicGetContractPublicKline(this.extend(request, params));
|
|
1576
1576
|
}
|
|
1577
1577
|
else {
|
|
1578
|
-
response = await this.
|
|
1578
|
+
response = await this.publicGetSpotQuotationV3Klines(this.extend(request, params));
|
|
1579
1579
|
}
|
|
1580
1580
|
//
|
|
1581
1581
|
// spot
|
package/js/src/bitmex.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export default class bitmex extends Exchange {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
fetchLedger(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
46
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
46
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
47
47
|
parseTransactionStatus(status: any): string;
|
|
48
48
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
49
49
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
package/js/src/bitopro.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ export default class bitopro extends Exchange {
|
|
|
33
33
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
34
34
|
parseTransactionStatus(status: any): string;
|
|
35
35
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
36
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
37
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
36
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
37
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
38
38
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
39
39
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
40
40
|
parseDepositWithdrawFee(fee: any, currency?: any): {
|
package/js/src/bitpanda.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ export default class bitpanda extends Exchange {
|
|
|
47
47
|
network: any;
|
|
48
48
|
info: any;
|
|
49
49
|
}>;
|
|
50
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
51
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
50
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
51
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
52
52
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
53
53
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
54
54
|
parseOrderStatus(status: any): string;
|
package/js/src/bitrue.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export default class bitrue extends Exchange {
|
|
|
39
39
|
fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
40
40
|
cancelOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
41
41
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
42
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
43
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
42
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
43
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
44
44
|
parseTransactionStatusByType(status: any, type?: any): string;
|
|
45
45
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
46
46
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
package/js/src/bitso.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export default class bitso extends Exchange {
|
|
|
47
47
|
fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
48
48
|
fetchOrderTrades(id: string, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
49
49
|
fetchDeposit(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
50
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
50
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
51
51
|
fetchDepositAddress(code: string, params?: {}): Promise<{
|
|
52
52
|
currency: string;
|
|
53
53
|
address: string;
|
package/js/src/bitstamp.d.ts
CHANGED
|
@@ -81,8 +81,8 @@ export default class bitstamp extends Exchange {
|
|
|
81
81
|
fetchOrderStatus(id: string, symbol?: string, params?: {}): Promise<string>;
|
|
82
82
|
fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
83
83
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
84
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
85
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
84
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
85
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
86
86
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
87
87
|
parseTransactionStatus(status: any): string;
|
|
88
88
|
parseOrder(order: any, market?: any): Order;
|
package/js/src/bittrex.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ export default class bittrex extends Exchange {
|
|
|
45
45
|
cancelOrder(id: string, symbol?: string, params?: {}): Promise<any>;
|
|
46
46
|
cancelAllOrders(symbol?: string, params?: {}): Promise<Order[]>;
|
|
47
47
|
fetchDeposit(id: string, code?: string, params?: {}): Promise<any>;
|
|
48
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
49
|
-
fetchPendingDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
48
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
49
|
+
fetchPendingDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
50
50
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<any>;
|
|
51
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
52
|
-
fetchPendingWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
51
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
52
|
+
fetchPendingWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
53
53
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
54
54
|
parseTimeInForce(timeInForce: any): string;
|
|
55
55
|
parseOrder(order: any, market?: any): Order;
|
package/js/src/bitvavo.d.ts
CHANGED
|
@@ -41,8 +41,8 @@ export default class bitvavo extends Exchange {
|
|
|
41
41
|
parseOrder(order: any, market?: any): Order;
|
|
42
42
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
43
43
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
44
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
45
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
44
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
45
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
46
46
|
parseTransactionStatus(status: any): string;
|
|
47
47
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
48
48
|
parseDepositWithdrawFee(fee: any, currency?: any): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/blockchaincom.js';
|
|
2
|
-
import { Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class blockchaincom
|
|
5
5
|
* @extends Exchange
|
|
@@ -39,11 +39,11 @@ export default class blockchaincom extends Exchange {
|
|
|
39
39
|
fetchWithdrawalWhitelist(params?: {}): Promise<any[]>;
|
|
40
40
|
fetchWithdrawalWhitelistByCurrency(code: string, params?: {}): Promise<any[]>;
|
|
41
41
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
42
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
42
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
43
43
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
44
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
44
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
45
45
|
fetchDeposit(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
46
|
-
fetchBalance(params?: {}): Promise<
|
|
46
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
47
47
|
fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
48
48
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
49
49
|
url: string;
|
package/js/src/btcalpha.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export default class btcalpha extends Exchange {
|
|
|
14
14
|
parseBidsAsks(bidasks: any, priceKey?: number, amountKey?: number): any[];
|
|
15
15
|
parseTrade(trade: any, market?: any): Trade;
|
|
16
16
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
17
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
18
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
17
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
18
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
19
19
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
20
20
|
parseTransactionStatus(status: any): string;
|
|
21
21
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
package/js/src/btcmarkets.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, T
|
|
|
7
7
|
export default class btcmarkets extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
9
|
fetchTransactionsWithMethod(method: any, code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
10
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
11
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
12
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
10
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
11
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
12
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
13
13
|
parseTransactionStatus(status: any): string;
|
|
14
14
|
parseTransactionType(type: any): string;
|
|
15
15
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
package/js/src/bybit.d.ts
CHANGED
|
@@ -135,8 +135,8 @@ export default class bybit extends Exchange {
|
|
|
135
135
|
network: string;
|
|
136
136
|
info: any;
|
|
137
137
|
}>;
|
|
138
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
139
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
138
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
139
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
140
140
|
parseTransactionStatus(status: any): string;
|
|
141
141
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
142
142
|
fetchLedger(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
package/js/src/coinbase.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/coinbase.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, Order, Trade, OHLCV, Ticker, OrderBook } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, Order, Trade, OHLCV, Ticker, OrderBook, Transaction, Balances } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class coinbase
|
|
5
5
|
* @extends Exchange
|
|
@@ -25,8 +25,8 @@ export default class coinbase extends Exchange {
|
|
|
25
25
|
fetchMySells(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
26
26
|
fetchMyBuys(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
27
27
|
fetchTransactionsWithMethod(method: any, code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
28
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
29
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
28
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
29
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
30
30
|
parseTransactionStatus(status: any): string;
|
|
31
31
|
parseTransaction(transaction: any, market?: any): {
|
|
32
32
|
info: any;
|
|
@@ -64,8 +64,8 @@ export default class coinbase extends Exchange {
|
|
|
64
64
|
fetchTickerV2(symbol: string, params?: {}): Promise<Ticker>;
|
|
65
65
|
fetchTickerV3(symbol: string, params?: {}): Promise<Ticker>;
|
|
66
66
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
67
|
-
parseBalance(response: any, params?: {}):
|
|
68
|
-
fetchBalance(params?: {}): Promise<
|
|
67
|
+
parseBalance(response: any, params?: {}): Balances;
|
|
68
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
69
69
|
fetchLedger(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
70
70
|
parseLedgerEntryStatus(status: any): string;
|
|
71
71
|
parseLedgerEntryType(type: any): string;
|
package/js/src/coinbasepro.d.ts
CHANGED
|
@@ -63,9 +63,9 @@ export default class coinbasepro extends Exchange {
|
|
|
63
63
|
info: any;
|
|
64
64
|
};
|
|
65
65
|
fetchLedger(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
66
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
67
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
68
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
66
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
67
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
68
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
69
69
|
parseTransactionStatus(transaction: any): "ok" | "canceled" | "failed" | "pending";
|
|
70
70
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
71
71
|
createDepositAddress(code: string, params?: {}): Promise<{
|
package/js/src/coincheck.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export default class coincheck extends Exchange {
|
|
|
19
19
|
fetchTradingFees(params?: {}): Promise<{}>;
|
|
20
20
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
21
21
|
cancelOrder(id: string, symbol?: string, params?: {}): Promise<any>;
|
|
22
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
23
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
22
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
23
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
24
24
|
parseTransactionStatus(status: any): string;
|
|
25
25
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
26
26
|
nonce(): number;
|
package/js/src/coinex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/coinex.js';
|
|
2
|
-
import { FundingHistory, FundingRateHistory, Int, OHLCV, Order, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, FundingHistory, FundingRateHistory, Int, OHLCV, Order, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class coinex
|
|
5
5
|
* @extends Exchange
|
|
@@ -36,11 +36,11 @@ export default class coinex extends Exchange {
|
|
|
36
36
|
};
|
|
37
37
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
38
38
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
39
|
-
fetchMarginBalance(params?: {}): Promise<
|
|
40
|
-
fetchSpotBalance(params?: {}): Promise<
|
|
41
|
-
fetchSwapBalance(params?: {}): Promise<
|
|
42
|
-
fetchFinancialBalance(params?: {}): Promise<
|
|
43
|
-
fetchBalance(params?: {}): Promise<
|
|
39
|
+
fetchMarginBalance(params?: {}): Promise<Balances>;
|
|
40
|
+
fetchSpotBalance(params?: {}): Promise<Balances>;
|
|
41
|
+
fetchSwapBalance(params?: {}): Promise<Balances>;
|
|
42
|
+
fetchFinancialBalance(params?: {}): Promise<Balances>;
|
|
43
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
44
44
|
parseOrderStatus(status: any): string;
|
|
45
45
|
parseOrder(order: any, market?: any): Order;
|
|
46
46
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
@@ -151,8 +151,8 @@ export default class coinex extends Exchange {
|
|
|
151
151
|
status: string;
|
|
152
152
|
};
|
|
153
153
|
fetchTransfers(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
154
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
155
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
154
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
155
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
156
156
|
parseBorrowRate(info: any, currency?: any): {
|
|
157
157
|
currency: any;
|
|
158
158
|
rate: number;
|
package/js/src/coinfalcon.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export default class coinfalcon extends Exchange {
|
|
|
37
37
|
cancelOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
38
38
|
fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
39
39
|
fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
40
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
41
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
40
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
41
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
42
42
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
43
43
|
parseTransactionStatus(status: any): string;
|
|
44
44
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
package/js/src/coinlist.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export default class coinlist extends Exchange {
|
|
|
71
71
|
status: string;
|
|
72
72
|
};
|
|
73
73
|
parseTransferStatus(status: any): string;
|
|
74
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
74
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
75
75
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
76
76
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
77
77
|
parseTransactionType(type: any): string;
|
package/js/src/coinmate.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export default class coinmate extends Exchange {
|
|
|
11
11
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
12
12
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
13
13
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
14
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
14
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
15
15
|
parseTransactionStatus(status: any): string;
|
|
16
16
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
17
17
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
package/js/src/coinsph.d.ts
CHANGED
|
@@ -56,8 +56,8 @@ export default class coinsph extends Exchange {
|
|
|
56
56
|
};
|
|
57
57
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
58
58
|
deposit(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
59
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
60
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
59
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
60
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
61
61
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
62
62
|
parseTransactionStatus(status: any): string;
|
|
63
63
|
fetchDepositAddress(code: string, params?: {}): Promise<{
|
package/js/src/cryptocom.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ export default class cryptocom extends Exchange {
|
|
|
30
30
|
fetchDepositAddressesByNetwork(code: string, params?: {}): Promise<{}>;
|
|
31
31
|
fetchDepositAddress(code: string, params?: {}): Promise<any>;
|
|
32
32
|
safeNetwork(networkId: any): string;
|
|
33
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
34
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
33
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
34
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
35
35
|
transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
|
|
36
36
|
info: any;
|
|
37
37
|
id: string;
|
package/js/src/currencycom.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/currencycom.js';
|
|
2
|
-
import { Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class currencycom
|
|
5
5
|
* @extends Exchange
|
|
@@ -12,8 +12,8 @@ export default class currencycom extends Exchange {
|
|
|
12
12
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
13
13
|
fetchAccounts(params?: {}): Promise<any[]>;
|
|
14
14
|
fetchTradingFees(params?: {}): Promise<{}>;
|
|
15
|
-
parseBalance(response: any, type?: any):
|
|
16
|
-
fetchBalance(params?: {}): Promise<
|
|
15
|
+
parseBalance(response: any, type?: any): Balances;
|
|
16
|
+
fetchBalance(params?: {}): Promise<Balances>;
|
|
17
17
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
18
18
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
19
19
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
@@ -32,9 +32,9 @@ export default class currencycom extends Exchange {
|
|
|
32
32
|
fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
33
33
|
cancelOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
|
|
34
34
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
35
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
36
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
37
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
35
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
36
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
37
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
38
38
|
fetchTransactionsByMethod(method: any, code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
39
39
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
40
40
|
parseTransactionStatus(status: any): string;
|
package/js/src/deribit.d.ts
CHANGED
|
@@ -60,8 +60,8 @@ export default class deribit extends Exchange {
|
|
|
60
60
|
fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
61
61
|
fetchOrderTrades(id: string, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
62
62
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
63
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
64
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
63
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
64
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
65
65
|
parseTransactionStatus(status: any): string;
|
|
66
66
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
67
67
|
parsePosition(position: any, market?: any): import("./base/types.js").Position;
|
package/js/src/digifinex.d.ts
CHANGED
|
@@ -67,8 +67,8 @@ export default class digifinex extends Exchange {
|
|
|
67
67
|
};
|
|
68
68
|
fetchDepositAddress(code: string, params?: {}): Promise<any>;
|
|
69
69
|
fetchTransactionsByType(type: any, code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
70
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
71
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
70
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
71
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
72
72
|
parseTransactionStatus(status: any): string;
|
|
73
73
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
74
74
|
parseTransferStatus(status: any): string;
|
package/js/src/exmo.d.ts
CHANGED
|
@@ -84,11 +84,11 @@ export default class exmo extends Exchange {
|
|
|
84
84
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
85
85
|
parseTransactionStatus(status: any): string;
|
|
86
86
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
87
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
88
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
87
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
88
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
89
89
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
90
90
|
fetchDeposit(id?: any, code?: string, params?: {}): Promise<Transaction>;
|
|
91
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
91
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
92
92
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
93
93
|
url: string;
|
|
94
94
|
method: string;
|
package/js/src/gate.d.ts
CHANGED
|
@@ -217,8 +217,8 @@ export default class gate extends Exchange {
|
|
|
217
217
|
fetchOrderTrades(id: string, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
218
218
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
219
219
|
parseTrade(trade: any, market?: any): Trade;
|
|
220
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
221
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
220
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
221
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
222
222
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
223
223
|
parseTransactionStatus(status: any): string;
|
|
224
224
|
parseTransactionType(type: any): string;
|
package/js/src/gemini.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export default class gemini extends Exchange {
|
|
|
82
82
|
fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
83
83
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
84
84
|
nonce(): number;
|
|
85
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
85
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
86
86
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
87
87
|
parseTransactionStatus(status: any): string;
|
|
88
88
|
parseDepositAddress(depositAddress: any, currency?: any): {
|
package/js/src/hitbtc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/hitbtc.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, FundingRateHistory, OHLCV, Ticker, Order, OrderBook, Dictionary, Position, Trade, Balances, Transaction } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, FundingRateHistory, OHLCV, Ticker, Order, OrderBook, Dictionary, Position, Trade, Balances, Transaction, MarginMode } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class hitbtc
|
|
5
5
|
* @extends Exchange
|
|
@@ -37,9 +37,9 @@ export default class hitbtc extends Exchange {
|
|
|
37
37
|
parseTransactionStatus(status: any): string;
|
|
38
38
|
parseTransactionType(type: any): string;
|
|
39
39
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
40
|
-
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
41
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
42
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
40
|
+
fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
41
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
42
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
43
43
|
fetchOrderBooks(symbols?: string[], limit?: Int, params?: {}): Promise<Dictionary<OrderBook>>;
|
|
44
44
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
45
45
|
parseTradingFee(fee: any, market?: any): {
|
|
@@ -68,6 +68,7 @@ export default class hitbtc extends Exchange {
|
|
|
68
68
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
69
69
|
parseOrderStatus(status: any): string;
|
|
70
70
|
parseOrder(order: any, market?: any): Order;
|
|
71
|
+
fetchMarginMode(symbol?: string, params?: {}): Promise<MarginMode>;
|
|
71
72
|
transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
|
|
72
73
|
id: string;
|
|
73
74
|
timestamp: number;
|
package/js/src/hitbtc.js
CHANGED
|
@@ -63,7 +63,7 @@ export default class hitbtc extends Exchange {
|
|
|
63
63
|
'fetchLeverage': true,
|
|
64
64
|
'fetchLeverageTiers': undefined,
|
|
65
65
|
'fetchLiquidations': false,
|
|
66
|
-
'fetchMarginMode':
|
|
66
|
+
'fetchMarginMode': true,
|
|
67
67
|
'fetchMarketLeverageTiers': false,
|
|
68
68
|
'fetchMarkets': true,
|
|
69
69
|
'fetchMarkOHLCV': true,
|
|
@@ -2349,6 +2349,84 @@ export default class hitbtc extends Exchange {
|
|
|
2349
2349
|
'stopLossPrice': undefined,
|
|
2350
2350
|
}, market);
|
|
2351
2351
|
}
|
|
2352
|
+
async fetchMarginMode(symbol = undefined, params = {}) {
|
|
2353
|
+
/**
|
|
2354
|
+
* @method
|
|
2355
|
+
* @name hitbtc#fetchMarginMode
|
|
2356
|
+
* @description fetches margin mode of the user
|
|
2357
|
+
* @see https://api.hitbtc.com/#get-margin-position-parameters
|
|
2358
|
+
* @see https://api.hitbtc.com/#get-futures-position-parameters
|
|
2359
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
2360
|
+
* @param {object} [params] extra parameters specific to the hitbtc api endpoint
|
|
2361
|
+
* @returns {object} Struct of MarginMode
|
|
2362
|
+
*/
|
|
2363
|
+
await this.loadMarkets();
|
|
2364
|
+
let market = undefined;
|
|
2365
|
+
if (symbol !== undefined) {
|
|
2366
|
+
market = this.market(symbol);
|
|
2367
|
+
}
|
|
2368
|
+
let marketType = undefined;
|
|
2369
|
+
[marketType, params] = this.handleMarketTypeAndParams('fetchMarginMode', market, params);
|
|
2370
|
+
let response = undefined;
|
|
2371
|
+
if (marketType === 'margin') {
|
|
2372
|
+
response = await this.privateGetMarginConfig(params);
|
|
2373
|
+
}
|
|
2374
|
+
else if (marketType === 'swap') {
|
|
2375
|
+
response = await this.privateGetFuturesConfig(params);
|
|
2376
|
+
}
|
|
2377
|
+
else {
|
|
2378
|
+
throw new BadSymbol(this.id + ' fetchMarginMode() supports swap contracts and margin only');
|
|
2379
|
+
}
|
|
2380
|
+
//
|
|
2381
|
+
// margin
|
|
2382
|
+
// {
|
|
2383
|
+
// "config": [{
|
|
2384
|
+
// "symbol": "BTCUSD",
|
|
2385
|
+
// "margin_call_leverage_mul": "1.50",
|
|
2386
|
+
// "liquidation_leverage_mul": "2.00",
|
|
2387
|
+
// "max_initial_leverage": "10.00",
|
|
2388
|
+
// "margin_mode": "Isolated",
|
|
2389
|
+
// "force_close_fee": "0.05",
|
|
2390
|
+
// "enabled": true,
|
|
2391
|
+
// "active": true,
|
|
2392
|
+
// "limit_base": "50000.00",
|
|
2393
|
+
// "limit_power": "2.2",
|
|
2394
|
+
// "unlimited_threshold": "10.0"
|
|
2395
|
+
// }]
|
|
2396
|
+
// }
|
|
2397
|
+
//
|
|
2398
|
+
// swap
|
|
2399
|
+
// {
|
|
2400
|
+
// "config": [{
|
|
2401
|
+
// "symbol": "BTCUSD_PERP",
|
|
2402
|
+
// "margin_call_leverage_mul": "1.20",
|
|
2403
|
+
// "liquidation_leverage_mul": "2.00",
|
|
2404
|
+
// "max_initial_leverage": "100.00",
|
|
2405
|
+
// "margin_mode": "Isolated",
|
|
2406
|
+
// "force_close_fee": "0.001",
|
|
2407
|
+
// "enabled": true,
|
|
2408
|
+
// "active": false,
|
|
2409
|
+
// "limit_base": "5000000.000000000000",
|
|
2410
|
+
// "limit_power": "1.25",
|
|
2411
|
+
// "unlimited_threshold": "2.00"
|
|
2412
|
+
// }]
|
|
2413
|
+
// }
|
|
2414
|
+
//
|
|
2415
|
+
const config = this.safeValue(response, 'config', []);
|
|
2416
|
+
const marginModes = [];
|
|
2417
|
+
for (let i = 0; i < config.length; i++) {
|
|
2418
|
+
const data = this.safeValue(config, i);
|
|
2419
|
+
const marketId = this.safeString(data, 'symbol');
|
|
2420
|
+
const marketInner = this.safeMarket(marketId);
|
|
2421
|
+
marginModes.push({
|
|
2422
|
+
'info': data,
|
|
2423
|
+
'symbol': this.safeString(marketInner, 'symbol'),
|
|
2424
|
+
'marginMode': this.safeStringLower(data, 'margin_mode'),
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
const filteredMargin = this.filterBySymbol(marginModes, symbol);
|
|
2428
|
+
return this.safeValue(filteredMargin, 0);
|
|
2429
|
+
}
|
|
2352
2430
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
2353
2431
|
/**
|
|
2354
2432
|
* @method
|
package/js/src/hollaex.d.ts
CHANGED
|
@@ -40,9 +40,9 @@ export default class hollaex extends Exchange {
|
|
|
40
40
|
info: any;
|
|
41
41
|
};
|
|
42
42
|
fetchDepositAddresses(codes?: any, params?: {}): Promise<{}>;
|
|
43
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
43
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
44
44
|
fetchWithdrawal(id: string, code?: string, params?: {}): Promise<Transaction>;
|
|
45
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
45
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
46
46
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
47
47
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
48
48
|
parseDepositWithdrawFee(fee: any, currency?: any): {
|
package/js/src/huobi.d.ts
CHANGED
|
@@ -100,8 +100,8 @@ export default class huobi extends Exchange {
|
|
|
100
100
|
fetchDepositAddressesByNetwork(code: string, params?: {}): Promise<{}>;
|
|
101
101
|
fetchDepositAddress(code: string, params?: {}): Promise<any>;
|
|
102
102
|
fetchWithdrawAddresses(code: string, note?: any, networkCode?: any, params?: {}): Promise<any[]>;
|
|
103
|
-
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
104
|
-
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
103
|
+
fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
104
|
+
fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
105
105
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
106
106
|
parseTransactionStatus(status: any): string;
|
|
107
107
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|