ccxt 4.1.53 → 4.1.54
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 +8 -7
- package/dist/ccxt.browser.js +2164 -620
- package/dist/ccxt.browser.min.js +10 -10
- package/dist/cjs/ccxt.js +4 -1
- package/dist/cjs/src/abstract/p2b.js +9 -0
- package/dist/cjs/src/base/Exchange.js +10 -6
- package/dist/cjs/src/bitget.js +670 -405
- package/dist/cjs/src/p2b.js +1246 -0
- package/js/ccxt.d.ts +5 -2
- package/js/ccxt.js +4 -2
- package/js/src/abstract/bitget.d.ts +495 -254
- package/js/src/abstract/p2b.d.ts +25 -0
- package/js/src/abstract/p2b.js +11 -0
- package/js/src/ace.d.ts +3 -3
- package/js/src/alpaca.d.ts +1 -1
- package/js/src/ascendex.d.ts +6 -6
- package/js/src/base/Exchange.d.ts +5 -5
- package/js/src/base/Exchange.js +10 -6
- package/js/src/base/types.d.ts +11 -8
- package/js/src/bigone.d.ts +3 -3
- package/js/src/binance.d.ts +11 -11
- package/js/src/bingx.d.ts +6 -6
- package/js/src/bitbank.d.ts +1 -1
- package/js/src/bitbns.d.ts +2 -2
- package/js/src/bitfinex.d.ts +4 -4
- package/js/src/bitfinex2.d.ts +4 -4
- package/js/src/bitflyer.d.ts +2 -2
- package/js/src/bitget.d.ts +5 -5
- package/js/src/bitget.js +670 -405
- package/js/src/bithumb.d.ts +2 -2
- package/js/src/bitmart.d.ts +3 -3
- package/js/src/bitmex.d.ts +6 -6
- package/js/src/bitopro.d.ts +4 -4
- package/js/src/bitpanda.d.ts +3 -3
- package/js/src/bitrue.d.ts +5 -5
- package/js/src/bitso.d.ts +3 -3
- package/js/src/bitstamp.d.ts +3 -3
- package/js/src/bittrex.d.ts +5 -5
- package/js/src/bitvavo.d.ts +3 -3
- package/js/src/blockchaincom.d.ts +2 -2
- package/js/src/btcalpha.d.ts +3 -3
- package/js/src/btcmarkets.d.ts +1 -1
- package/js/src/btcturk.d.ts +3 -3
- package/js/src/bybit.d.ts +6 -6
- package/js/src/cex.d.ts +2 -2
- package/js/src/coinbase.d.ts +5 -5
- package/js/src/coinbasepro.d.ts +2 -2
- package/js/src/coinex.d.ts +7 -7
- package/js/src/coinlist.d.ts +3 -3
- package/js/src/coinone.d.ts +2 -2
- package/js/src/coinsph.d.ts +2 -2
- package/js/src/coinspot.d.ts +2 -2
- package/js/src/cryptocom.d.ts +4 -4
- package/js/src/currencycom.d.ts +3 -3
- package/js/src/delta.d.ts +5 -5
- package/js/src/deribit.d.ts +4 -4
- package/js/src/digifinex.d.ts +6 -6
- package/js/src/exmo.d.ts +4 -4
- package/js/src/gate.d.ts +6 -6
- package/js/src/gemini.d.ts +2 -2
- package/js/src/hitbtc.d.ts +6 -6
- package/js/src/hollaex.d.ts +5 -5
- package/js/src/htx.d.ts +8 -8
- package/js/src/huobijp.d.ts +3 -3
- package/js/src/idex.d.ts +2 -2
- package/js/src/indodax.d.ts +2 -2
- package/js/src/kraken.d.ts +3 -3
- package/js/src/krakenfutures.d.ts +6 -6
- package/js/src/kucoin.d.ts +3 -3
- package/js/src/kucoinfutures.d.ts +2 -2
- package/js/src/kuna.d.ts +2 -2
- package/js/src/latoken.d.ts +2 -2
- package/js/src/lbank.d.ts +3 -3
- package/js/src/luno.d.ts +2 -2
- package/js/src/lykke.d.ts +2 -2
- package/js/src/mexc.d.ts +6 -6
- package/js/src/ndax.d.ts +1 -1
- package/js/src/novadax.d.ts +3 -3
- package/js/src/oceanex.d.ts +4 -4
- package/js/src/okcoin.d.ts +3 -3
- package/js/src/okx.d.ts +6 -6
- package/js/src/p2b.d.ts +34 -0
- package/js/src/p2b.js +1246 -0
- package/js/src/phemex.d.ts +4 -4
- package/js/src/poloniex.d.ts +5 -5
- package/js/src/poloniexfutures.d.ts +4 -4
- package/js/src/pro/binance.d.ts +4 -4
- package/js/src/pro/bitget.d.ts +3 -3
- package/js/src/pro/bitpanda.d.ts +3 -3
- package/js/src/pro/bybit.d.ts +4 -4
- package/js/src/pro/cex.d.ts +2 -2
- package/js/src/pro/coinbasepro.d.ts +4 -4
- package/js/src/pro/coinex.d.ts +2 -2
- package/js/src/pro/cryptocom.d.ts +3 -3
- package/js/src/pro/gate.d.ts +4 -4
- package/js/src/pro/hitbtc.d.ts +2 -2
- package/js/src/pro/htx.d.ts +2 -2
- package/js/src/pro/kraken.d.ts +1 -1
- package/js/src/pro/krakenfutures.d.ts +3 -3
- package/js/src/pro/kucoin.d.ts +2 -2
- package/js/src/pro/okx.d.ts +4 -4
- package/js/src/pro/poloniex.d.ts +2 -2
- package/js/src/pro/wazirx.d.ts +2 -2
- package/js/src/pro/woo.d.ts +2 -2
- package/js/src/probit.d.ts +4 -4
- package/js/src/tidex.d.ts +3 -3
- package/js/src/timex.d.ts +3 -3
- package/js/src/tokocrypto.d.ts +3 -3
- package/js/src/upbit.d.ts +4 -4
- package/js/src/wavesexchange.d.ts +4 -4
- package/js/src/wazirx.d.ts +3 -3
- package/js/src/whitebit.d.ts +5 -5
- package/js/src/woo.d.ts +4 -4
- package/js/src/yobit.d.ts +3 -3
- package/js/src/zaif.d.ts +1 -1
- package/js/src/zonda.d.ts +3 -3
- package/package.json +1 -1
- package/skip-tests.json +7 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetMarkets(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetMarket(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetTickers(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetTicker(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetBook(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetHistory(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetDepthResult(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetMarketKline(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
privatePostAccountBalances(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
privatePostAccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
privatePostOrderNew(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
privatePostOrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
privatePostOrders(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
privatePostAccountMarketOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
privatePostAccountMarketDealHistory(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
privatePostAccountOrder(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
privatePostAccountOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
privatePostAccountExecutedHistory(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
}
|
|
23
|
+
declare abstract class Exchange extends _Exchange {
|
|
24
|
+
}
|
|
25
|
+
export default Exchange;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
+
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
+
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
+
|
|
7
|
+
// -------------------------------------------------------------------------------
|
|
8
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
9
|
+
class Exchange extends _Exchange {
|
|
10
|
+
}
|
|
11
|
+
export default Exchange;
|
package/js/src/ace.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import Exchange from './abstract/ace.js';
|
|
2
|
-
import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Tickers, Trade } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class ace
|
|
5
5
|
* @extends Exchange
|
|
6
6
|
*/
|
|
7
7
|
export default class ace extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
|
-
fetchMarkets(params?: {}): Promise<
|
|
9
|
+
fetchMarkets(params?: {}): Promise<import("./base/types.js").MarketInterface[]>;
|
|
10
10
|
parseMarket(market: any): Market;
|
|
11
11
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
12
12
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
13
|
-
fetchTickers(symbols?:
|
|
13
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
14
14
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
15
15
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
16
16
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
package/js/src/alpaca.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Trade
|
|
|
6
6
|
*/
|
|
7
7
|
export default class alpaca extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
|
-
fetchMarkets(params?: {}): Promise<
|
|
9
|
+
fetchMarkets(params?: {}): Promise<import("./base/types.js").MarketInterface[]>;
|
|
10
10
|
parseMarket(asset: any): Market;
|
|
11
11
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
12
12
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
package/js/src/ascendex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/ascendex.js';
|
|
2
|
-
import { FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers } from './base/types.js';
|
|
2
|
+
import { FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class ascendex
|
|
5
5
|
* @extends Exchange
|
|
@@ -23,7 +23,7 @@ export default class ascendex extends Exchange {
|
|
|
23
23
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
24
24
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
25
25
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
26
|
-
fetchTickers(symbols?:
|
|
26
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
27
27
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
28
28
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
29
29
|
parseTrade(trade: any, market?: any): Trade;
|
|
@@ -53,7 +53,7 @@ export default class ascendex extends Exchange {
|
|
|
53
53
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
54
54
|
parseTransactionStatus(status: any): string;
|
|
55
55
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
56
|
-
fetchPositions(symbols?:
|
|
56
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
57
57
|
parsePosition(position: any, market?: any): import("./base/types.js").Position;
|
|
58
58
|
parseFundingRate(contract: any, market?: any): {
|
|
59
59
|
info: any;
|
|
@@ -74,7 +74,7 @@ export default class ascendex extends Exchange {
|
|
|
74
74
|
fundingTimestamp: number;
|
|
75
75
|
fundingDatetime: string;
|
|
76
76
|
};
|
|
77
|
-
fetchFundingRates(symbols?:
|
|
77
|
+
fetchFundingRates(symbols?: Strings, params?: {}): Promise<any>;
|
|
78
78
|
modifyMarginHelper(symbol: string, amount: any, type: any, params?: {}): Promise<any>;
|
|
79
79
|
parseMarginModification(data: any, market?: any): {
|
|
80
80
|
info: any;
|
|
@@ -88,7 +88,7 @@ export default class ascendex extends Exchange {
|
|
|
88
88
|
addMargin(symbol: string, amount: any, params?: {}): Promise<any>;
|
|
89
89
|
setLeverage(leverage: any, symbol?: Str, params?: {}): Promise<any>;
|
|
90
90
|
setMarginMode(marginMode: any, symbol?: Str, params?: {}): Promise<any>;
|
|
91
|
-
fetchLeverageTiers(symbols?:
|
|
91
|
+
fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<{}>;
|
|
92
92
|
parseMarketLeverageTiers(info: any, market?: any): any[];
|
|
93
93
|
parseDepositWithdrawFee(fee: any, currency?: any): {
|
|
94
94
|
info: any;
|
|
@@ -102,7 +102,7 @@ export default class ascendex extends Exchange {
|
|
|
102
102
|
};
|
|
103
103
|
networks: {};
|
|
104
104
|
};
|
|
105
|
-
fetchDepositWithdrawFees(codes?:
|
|
105
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
106
106
|
transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
|
|
107
107
|
info: any;
|
|
108
108
|
id: any;
|
|
@@ -4,7 +4,7 @@ ExchangeError, AuthenticationError, DDoSProtection, RequestTimeout, ExchangeNotA
|
|
|
4
4
|
import WsClient from './ws/WsClient.js';
|
|
5
5
|
import { Future } from './ws/Future.js';
|
|
6
6
|
import { OrderBook as WsOrderBook, IndexedOrderBook, CountedOrderBook } from './ws/OrderBook.js';
|
|
7
|
-
import { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, FundingHistory, MarginMode, Tickers, Greeks } from './types.js';
|
|
7
|
+
import { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, FundingHistory, MarginMode, Tickers, Greeks, Str } from './types.js';
|
|
8
8
|
export { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRateHistory, Liquidation, FundingHistory, Greeks } from './types.js';
|
|
9
9
|
/**
|
|
10
10
|
* @class Exchange
|
|
@@ -595,7 +595,7 @@ export default class Exchange {
|
|
|
595
595
|
};
|
|
596
596
|
};
|
|
597
597
|
};
|
|
598
|
-
safeLedgerEntry(entry: object, currency?:
|
|
598
|
+
safeLedgerEntry(entry: object, currency?: Currency): {
|
|
599
599
|
id: string;
|
|
600
600
|
timestamp: number;
|
|
601
601
|
datetime: string;
|
|
@@ -604,7 +604,7 @@ export default class Exchange {
|
|
|
604
604
|
referenceId: string;
|
|
605
605
|
referenceAccount: string;
|
|
606
606
|
type: string;
|
|
607
|
-
currency:
|
|
607
|
+
currency: string;
|
|
608
608
|
amount: number;
|
|
609
609
|
before: number;
|
|
610
610
|
after: number;
|
|
@@ -686,8 +686,8 @@ export default class Exchange {
|
|
|
686
686
|
fetchPositionsRisk(symbols?: string[], params?: {}): Promise<Position[]>;
|
|
687
687
|
fetchBidsAsks(symbols?: string[], params?: {}): Promise<Dictionary<Ticker>>;
|
|
688
688
|
parseBidAsk(bidask: any, priceKey?: IndexType, amountKey?: IndexType): number[];
|
|
689
|
-
safeCurrency(currencyId
|
|
690
|
-
safeMarket(marketId
|
|
689
|
+
safeCurrency(currencyId: Str, currency?: Currency): any;
|
|
690
|
+
safeMarket(marketId: Str, market?: Market, delimiter?: Str, marketType?: Str): any;
|
|
691
691
|
checkRequiredCredentials(error?: boolean): boolean;
|
|
692
692
|
oath(): string;
|
|
693
693
|
fetchBalance(params?: {}): Promise<Balances>;
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -1655,7 +1655,7 @@ export default class Exchange {
|
|
|
1655
1655
|
else {
|
|
1656
1656
|
this.markets_by_id[value['id']] = [value];
|
|
1657
1657
|
}
|
|
1658
|
-
const market = this.deepExtend(this.
|
|
1658
|
+
const market = this.deepExtend(this.safeMarketStructure(), {
|
|
1659
1659
|
'precision': this.precision,
|
|
1660
1660
|
'limits': this.limits,
|
|
1661
1661
|
}, this.fees['trading'], value);
|
|
@@ -3028,7 +3028,7 @@ export default class Exchange {
|
|
|
3028
3028
|
'code': code,
|
|
3029
3029
|
};
|
|
3030
3030
|
}
|
|
3031
|
-
safeMarket(marketId
|
|
3031
|
+
safeMarket(marketId, market = undefined, delimiter = undefined, marketType = undefined) {
|
|
3032
3032
|
const result = {
|
|
3033
3033
|
'id': marketId,
|
|
3034
3034
|
'symbol': marketId,
|
|
@@ -3081,13 +3081,17 @@ export default class Exchange {
|
|
|
3081
3081
|
return markets[0];
|
|
3082
3082
|
}
|
|
3083
3083
|
else {
|
|
3084
|
-
if (
|
|
3085
|
-
|
|
3084
|
+
if (marketType === undefined) {
|
|
3085
|
+
if (market === undefined) {
|
|
3086
|
+
throw new ArgumentsRequired(this.id + ' safeMarket() requires a fourth argument for ' + marketId + ' to disambiguate between different markets with the same market id');
|
|
3087
|
+
}
|
|
3088
|
+
else {
|
|
3089
|
+
marketType = market['type'];
|
|
3090
|
+
}
|
|
3086
3091
|
}
|
|
3087
|
-
const inferredMarketType = (marketType === undefined) ? market['type'] : marketType;
|
|
3088
3092
|
for (let i = 0; i < markets.length; i++) {
|
|
3089
3093
|
const currentMarket = markets[i];
|
|
3090
|
-
if (currentMarket[
|
|
3094
|
+
if (currentMarket[marketType]) {
|
|
3091
3095
|
return currentMarket;
|
|
3092
3096
|
}
|
|
3093
3097
|
}
|
package/js/src/base/types.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export declare type Int = number | undefined;
|
|
2
2
|
export declare type Str = string | undefined;
|
|
3
|
+
export declare type Strings = string[] | undefined;
|
|
3
4
|
export declare type Bool = boolean | undefined;
|
|
5
|
+
export declare type Market = MarketInterface | undefined;
|
|
6
|
+
export declare type Currency = CurrencyInterface | undefined;
|
|
4
7
|
export interface Dictionary<T> {
|
|
5
8
|
[key: string]: T;
|
|
6
9
|
}
|
|
@@ -15,17 +18,17 @@ export interface Fee {
|
|
|
15
18
|
rate?: number;
|
|
16
19
|
cost: number;
|
|
17
20
|
}
|
|
18
|
-
export interface
|
|
21
|
+
export interface MarketInterface {
|
|
19
22
|
id: string;
|
|
20
23
|
uppercaseId?: string;
|
|
21
24
|
lowercaseId?: string;
|
|
22
|
-
symbol:
|
|
23
|
-
base:
|
|
24
|
-
quote:
|
|
25
|
-
baseId:
|
|
26
|
-
quoteId:
|
|
25
|
+
symbol: string;
|
|
26
|
+
base: string;
|
|
27
|
+
quote: string;
|
|
28
|
+
baseId: string;
|
|
29
|
+
quoteId: string;
|
|
27
30
|
active: Bool;
|
|
28
|
-
type:
|
|
31
|
+
type: string;
|
|
29
32
|
spot: boolean;
|
|
30
33
|
margin: boolean;
|
|
31
34
|
swap: boolean;
|
|
@@ -153,7 +156,7 @@ export interface Transaction {
|
|
|
153
156
|
}
|
|
154
157
|
export interface Tickers extends Dictionary<Ticker> {
|
|
155
158
|
}
|
|
156
|
-
export interface
|
|
159
|
+
export interface CurrencyInterface {
|
|
157
160
|
id: string;
|
|
158
161
|
code: string;
|
|
159
162
|
numericId?: number;
|
package/js/src/bigone.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bigone.js';
|
|
2
|
-
import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bigone
|
|
5
5
|
* @extends Exchange
|
|
@@ -7,11 +7,11 @@ import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, S
|
|
|
7
7
|
export default class bigone extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
9
|
fetchCurrencies(params?: {}): Promise<{}>;
|
|
10
|
-
fetchMarkets(params?: {}): Promise<
|
|
10
|
+
fetchMarkets(params?: {}): Promise<import("./base/types.js").MarketInterface[]>;
|
|
11
11
|
parseMarket(market: any): Market;
|
|
12
12
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
13
13
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
14
|
-
fetchTickers(symbols?:
|
|
14
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
15
15
|
fetchTime(params?: {}): Promise<number>;
|
|
16
16
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
17
17
|
parseTrade(trade: any, market?: any): Trade;
|
package/js/src/binance.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/binance.js';
|
|
2
|
-
import { Int, OrderSide, Balances, OrderType, Trade, OHLCV, Order, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, Str, Transaction, Ticker, OrderBook, Tickers, Market, Greeks } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, Balances, OrderType, Trade, OHLCV, Order, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, Str, Transaction, Ticker, OrderBook, Tickers, Market, Greeks, Strings } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class binance
|
|
5
5
|
* @extends Exchange
|
|
@@ -76,8 +76,8 @@ export default class binance extends Exchange {
|
|
|
76
76
|
info: any;
|
|
77
77
|
}>;
|
|
78
78
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
79
|
-
fetchBidsAsks(symbols?:
|
|
80
|
-
fetchLastPrices(symbols?:
|
|
79
|
+
fetchBidsAsks(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
|
|
80
|
+
fetchLastPrices(symbols?: Strings, params?: {}): Promise<any>;
|
|
81
81
|
parseLastPrice(info: any, market?: any): {
|
|
82
82
|
symbol: any;
|
|
83
83
|
timestamp: number;
|
|
@@ -86,7 +86,7 @@ export default class binance extends Exchange {
|
|
|
86
86
|
side: any;
|
|
87
87
|
info: any;
|
|
88
88
|
};
|
|
89
|
-
fetchTickers(symbols?:
|
|
89
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
90
90
|
parseOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
91
91
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
92
92
|
parseTrade(trade: any, market?: any): Trade;
|
|
@@ -178,7 +178,7 @@ export default class binance extends Exchange {
|
|
|
178
178
|
deposit: {};
|
|
179
179
|
info: any;
|
|
180
180
|
}>;
|
|
181
|
-
fetchDepositWithdrawFees(codes?:
|
|
181
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
182
182
|
parseDepositWithdrawFee(fee: any, currency?: any): any;
|
|
183
183
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
184
184
|
parseTradingFee(fee: any, market?: any): {
|
|
@@ -225,7 +225,7 @@ export default class binance extends Exchange {
|
|
|
225
225
|
previousFundingDatetime: any;
|
|
226
226
|
}>;
|
|
227
227
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
228
|
-
fetchFundingRates(symbols?:
|
|
228
|
+
fetchFundingRates(symbols?: Strings, params?: {}): Promise<any>;
|
|
229
229
|
parseFundingRate(contract: any, market?: any): {
|
|
230
230
|
info: any;
|
|
231
231
|
symbol: any;
|
|
@@ -300,14 +300,14 @@ export default class binance extends Exchange {
|
|
|
300
300
|
takeProfitPrice: any;
|
|
301
301
|
};
|
|
302
302
|
loadLeverageBrackets(reload?: boolean, params?: {}): Promise<any>;
|
|
303
|
-
fetchLeverageTiers(symbols?:
|
|
303
|
+
fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<{}>;
|
|
304
304
|
parseMarketLeverageTiers(info: any, market?: any): any[];
|
|
305
305
|
fetchPosition(symbol: string, params?: {}): Promise<import("./base/types.js").Position>;
|
|
306
|
-
fetchOptionPositions(symbols?:
|
|
306
|
+
fetchOptionPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
307
307
|
parsePosition(position: any, market?: any): import("./base/types.js").Position;
|
|
308
|
-
fetchPositions(symbols?:
|
|
309
|
-
fetchAccountPositions(symbols?:
|
|
310
|
-
fetchPositionsRisk(symbols?:
|
|
308
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
309
|
+
fetchAccountPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
310
|
+
fetchPositionsRisk(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
311
311
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").FundingHistory[]>;
|
|
312
312
|
setLeverage(leverage: any, symbol?: Str, params?: {}): Promise<any>;
|
|
313
313
|
setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
|
package/js/src/bingx.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Exchange from './abstract/bingx.js';
|
|
2
|
-
import { Int, OrderSide, OHLCV, FundingRateHistory, Order, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Market } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OHLCV, FundingRateHistory, Order, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Market, Strings } from './base/types.js';
|
|
3
3
|
export default class bingx extends Exchange {
|
|
4
4
|
describe(): any;
|
|
5
5
|
fetchTime(params?: {}): Promise<number>;
|
|
6
6
|
fetchCurrencies(params?: {}): Promise<{}>;
|
|
7
|
-
fetchSpotMarkets(params: any): Promise<
|
|
8
|
-
fetchSwapMarkets(params: any): Promise<
|
|
7
|
+
fetchSpotMarkets(params: any): Promise<import("./base/types.js").MarketInterface[]>;
|
|
8
|
+
fetchSwapMarkets(params: any): Promise<import("./base/types.js").MarketInterface[]>;
|
|
9
9
|
parseMarket(market: any): Market;
|
|
10
10
|
fetchMarkets(params?: {}): Promise<any>;
|
|
11
11
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
@@ -55,11 +55,11 @@ export default class bingx extends Exchange {
|
|
|
55
55
|
fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
|
|
56
56
|
parseOpenInterest(interest: any, market?: any): import("./base/types.js").OpenInterest;
|
|
57
57
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
58
|
-
fetchTickers(symbols?:
|
|
58
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
59
59
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
60
60
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
61
61
|
parseBalance(response: any): Balances;
|
|
62
|
-
fetchPositions(symbols?:
|
|
62
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
63
63
|
parsePosition(position: any, market?: any): import("./base/types.js").Position;
|
|
64
64
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): any;
|
|
65
65
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
|
|
@@ -125,7 +125,7 @@ export default class bingx extends Exchange {
|
|
|
125
125
|
};
|
|
126
126
|
networks: {};
|
|
127
127
|
};
|
|
128
|
-
fetchDepositWithdrawFees(codes?:
|
|
128
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
129
129
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<void>;
|
|
130
130
|
parseParams(params: any): {};
|
|
131
131
|
fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Liquidation[]>;
|
package/js/src/bitbank.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, S
|
|
|
6
6
|
*/
|
|
7
7
|
export default class bitbank extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
|
-
fetchMarkets(params?: {}): Promise<
|
|
9
|
+
fetchMarkets(params?: {}): Promise<import("./base/types.js").MarketInterface[]>;
|
|
10
10
|
parseMarket(entry: any): Market;
|
|
11
11
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
12
12
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
package/js/src/bitbns.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bitbns.js';
|
|
2
|
-
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bitbns
|
|
5
5
|
* @extends Exchange
|
|
@@ -16,7 +16,7 @@ export default class bitbns extends Exchange {
|
|
|
16
16
|
fetchMarkets(params?: {}): Promise<any[]>;
|
|
17
17
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
18
18
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
19
|
-
fetchTickers(symbols?:
|
|
19
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
20
20
|
parseBalance(response: any): Balances;
|
|
21
21
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
22
22
|
parseStatus(status: any): string;
|
package/js/src/bitfinex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bitfinex.js';
|
|
2
|
-
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bitfinex
|
|
5
5
|
* @extends Exchange
|
|
@@ -7,7 +7,7 @@ import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Tick
|
|
|
7
7
|
export default class bitfinex extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
9
|
fetchTransactionFees(codes?: any, params?: {}): Promise<{}>;
|
|
10
|
-
fetchDepositWithdrawFees(codes?:
|
|
10
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
11
11
|
parseDepositWithdrawFee(fee: any, currency?: any): {
|
|
12
12
|
withdraw: {
|
|
13
13
|
fee: number;
|
|
@@ -40,7 +40,7 @@ export default class bitfinex extends Exchange {
|
|
|
40
40
|
parseTransferStatus(status: any): string;
|
|
41
41
|
convertDerivativesId(currencyId: any, type: any): any;
|
|
42
42
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
43
|
-
fetchTickers(symbols?:
|
|
43
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
44
44
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
45
45
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
46
46
|
parseTrade(trade: any, market?: any): Trade;
|
|
@@ -75,7 +75,7 @@ export default class bitfinex extends Exchange {
|
|
|
75
75
|
parseTransaction(transaction: any, currency?: any): Transaction;
|
|
76
76
|
parseTransactionStatus(status: any): string;
|
|
77
77
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
78
|
-
fetchPositions(symbols?:
|
|
78
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<any>;
|
|
79
79
|
nonce(): number;
|
|
80
80
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
81
81
|
url: string;
|
package/js/src/bitfinex2.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bitfinex2.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderBook, Str, Transaction, Ticker, Balances, Tickers } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderBook, Str, Transaction, Ticker, Balances, Tickers, Strings } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bitfinex2
|
|
5
5
|
* @extends Exchange
|
|
@@ -48,7 +48,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
48
48
|
convertDerivativesId(currency: any, type: any): any;
|
|
49
49
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
50
50
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
51
|
-
fetchTickers(symbols?:
|
|
51
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
52
52
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
53
53
|
parseTrade(trade: any, market?: any): Trade;
|
|
54
54
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
@@ -86,7 +86,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
86
86
|
fetchTradingFees(params?: {}): Promise<{}>;
|
|
87
87
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
88
88
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<any>;
|
|
89
|
-
fetchPositions(symbols?:
|
|
89
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
90
90
|
parsePosition(position: any, market?: any): import("./base/types.js").Position;
|
|
91
91
|
nonce(): number;
|
|
92
92
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
@@ -116,7 +116,7 @@ export default class bitfinex2 extends Exchange {
|
|
|
116
116
|
};
|
|
117
117
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
118
118
|
fetchFundingRate(symbol: string, params?: {}): Promise<{}>;
|
|
119
|
-
fetchFundingRates(symbols?:
|
|
119
|
+
fetchFundingRates(symbols?: Strings, params?: {}): Promise<{}>;
|
|
120
120
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
121
121
|
parseFundingRate(contract: any, market?: any): {
|
|
122
122
|
info: any;
|
package/js/src/bitflyer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bitflyer.js';
|
|
2
|
-
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction } from './base/types.js';
|
|
2
|
+
import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Trade, Transaction } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bitflyer
|
|
5
5
|
* @extends Exchange
|
|
@@ -31,7 +31,7 @@ export default class bitflyer extends Exchange {
|
|
|
31
31
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: number, params?: {}): Promise<Order[]>;
|
|
32
32
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
33
33
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
34
|
-
fetchPositions(symbols?:
|
|
34
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<any>;
|
|
35
35
|
withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
|
|
36
36
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
37
37
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
package/js/src/bitget.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bitget.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Market } from './base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Market, Strings } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bitget
|
|
5
5
|
* @extends Exchange
|
|
@@ -10,7 +10,7 @@ export default class bitget extends Exchange {
|
|
|
10
10
|
fetchTime(params?: {}): Promise<number>;
|
|
11
11
|
fetchMarkets(params?: {}): Promise<any>;
|
|
12
12
|
parseMarket(market: any): Market;
|
|
13
|
-
fetchMarketsByType(type: any, params?: {}): Promise<
|
|
13
|
+
fetchMarketsByType(type: any, params?: {}): Promise<import("./base/types.js").MarketInterface[]>;
|
|
14
14
|
fetchCurrencies(params?: {}): Promise<{}>;
|
|
15
15
|
fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<any[]>;
|
|
16
16
|
parseMarketLeverageTiers(info: any, market?: any): any[];
|
|
@@ -56,7 +56,7 @@ export default class bitget extends Exchange {
|
|
|
56
56
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
57
57
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
58
58
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
59
|
-
fetchTickers(symbols?:
|
|
59
|
+
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
60
60
|
parseTrade(trade: any, market?: any): Trade;
|
|
61
61
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
62
62
|
fetchTradingFee(symbol: string, params?: {}): Promise<{
|
|
@@ -112,7 +112,7 @@ export default class bitget extends Exchange {
|
|
|
112
112
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
113
113
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
114
114
|
fetchPosition(symbol: string, params?: {}): Promise<import("./base/types.js").Position>;
|
|
115
|
-
fetchPositions(symbols?:
|
|
115
|
+
fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
|
|
116
116
|
parsePosition(position: any, market?: any): import("./base/types.js").Position;
|
|
117
117
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
118
118
|
fetchFundingRate(symbol: string, params?: {}): Promise<{
|
|
@@ -215,7 +215,7 @@ export default class bitget extends Exchange {
|
|
|
215
215
|
};
|
|
216
216
|
networks: {};
|
|
217
217
|
};
|
|
218
|
-
fetchDepositWithdrawFees(codes?:
|
|
218
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
219
219
|
parseTransferStatus(status: any): string;
|
|
220
220
|
parseOpenInterest(interest: any, market?: any): import("./base/types.js").OpenInterest;
|
|
221
221
|
borrowMargin(code: string, amount: any, symbol?: Str, params?: {}): Promise<{
|