ccxt 4.5.5 → 4.5.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 +4 -4
- package/dist/ccxt.browser.min.js +15 -15
- package/dist/cjs/ccxt.js +6 -6
- package/dist/cjs/src/abstract/toobit.js +11 -0
- package/dist/cjs/src/abstract/tradeogre.js +1 -1
- package/dist/cjs/src/apex.js +2 -2
- package/dist/cjs/src/backpack.js +1 -1
- package/dist/cjs/src/base/Exchange.js +129 -2
- package/dist/cjs/src/bigone.js +4 -4
- package/dist/cjs/src/binance.js +82 -20
- package/dist/cjs/src/bingx.js +5 -2
- package/dist/cjs/src/bitbank.js +1 -0
- package/dist/cjs/src/bitbns.js +1 -0
- package/dist/cjs/src/bitflyer.js +1 -0
- package/dist/cjs/src/bitget.js +16 -9
- package/dist/cjs/src/bithumb.js +1 -0
- package/dist/cjs/src/bitso.js +1 -0
- package/dist/cjs/src/bitvavo.js +26 -40
- package/dist/cjs/src/blockchaincom.js +1 -0
- package/dist/cjs/src/btcalpha.js +1 -0
- package/dist/cjs/src/btcbox.js +1 -0
- package/dist/cjs/src/btcmarkets.js +1 -0
- package/dist/cjs/src/btcturk.js +1 -0
- package/dist/cjs/src/bybit.js +186 -127
- package/dist/cjs/src/coinsph.js +4 -1
- package/dist/cjs/src/cryptocom.js +6 -3
- package/dist/cjs/src/deribit.js +3 -2
- package/dist/cjs/src/digifinex.js +1 -1
- package/dist/cjs/src/gate.js +9 -13
- package/dist/cjs/src/gemini.js +5 -5
- package/dist/cjs/src/htx.js +11 -1
- package/dist/cjs/src/hyperliquid.js +3 -0
- package/dist/cjs/src/independentreserve.js +1 -0
- package/dist/cjs/src/indodax.js +17 -6
- package/dist/cjs/src/kraken.js +31 -8
- package/dist/cjs/src/krakenfutures.js +1 -0
- package/dist/cjs/src/kucoin.js +1 -2
- package/dist/cjs/src/luno.js +4 -1
- package/dist/cjs/src/mercado.js +1 -0
- package/dist/cjs/src/mexc.js +84 -37
- package/dist/cjs/src/novadax.js +1 -0
- package/dist/cjs/src/oceanex.js +1 -0
- package/dist/cjs/src/okcoin.js +4 -1
- package/dist/cjs/src/okx.js +52 -8
- package/dist/cjs/src/phemex.js +1 -1
- package/dist/cjs/src/pro/apex.js +8 -4
- package/dist/cjs/src/pro/backpack.js +7 -5
- package/dist/cjs/src/pro/binance.js +150 -19
- package/dist/cjs/src/pro/bingx.js +206 -220
- package/dist/cjs/src/pro/bitget.js +332 -76
- package/dist/cjs/src/pro/cex.js +1 -0
- package/dist/cjs/src/pro/htx.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +1 -0
- package/dist/cjs/src/pro/mexc.js +23 -23
- package/dist/cjs/src/pro/okx.js +46 -10
- package/dist/cjs/src/pro/toobit.js +1163 -0
- package/dist/cjs/src/pro/tradeogre.js +1 -1
- package/dist/cjs/src/toobit.js +2999 -0
- package/dist/cjs/src/tradeogre.js +1 -1
- package/dist/cjs/src/upbit.js +1 -0
- package/dist/cjs/src/wavesexchange.js +1 -0
- package/dist/cjs/src/yobit.js +1 -0
- package/dist/cjs/src/zaif.js +1 -0
- package/dist/cjs/src/zonda.js +1 -0
- package/js/ccxt.d.ts +8 -8
- package/js/ccxt.js +6 -6
- package/js/src/abstract/mexc.d.ts +1 -0
- package/js/src/abstract/myokx.d.ts +1 -0
- package/js/src/abstract/okx.d.ts +1 -0
- package/js/src/abstract/okxus.d.ts +1 -0
- package/js/src/abstract/toobit.d.ts +66 -0
- package/js/src/apex.js +2 -2
- package/js/src/backpack.js +1 -1
- package/js/src/base/Exchange.d.ts +9 -0
- package/js/src/base/Exchange.js +129 -2
- package/js/src/bigone.js +4 -4
- package/js/src/binance.d.ts +9 -0
- package/js/src/binance.js +82 -20
- package/js/src/bingx.js +5 -2
- package/js/src/bitbank.js +1 -0
- package/js/src/bitbns.js +1 -0
- package/js/src/bitflyer.js +1 -0
- package/js/src/bitget.js +16 -9
- package/js/src/bithumb.js +1 -0
- package/js/src/bitso.js +1 -0
- package/js/src/bitvavo.d.ts +0 -2
- package/js/src/bitvavo.js +27 -41
- package/js/src/blockchaincom.js +1 -0
- package/js/src/btcalpha.js +1 -0
- package/js/src/btcbox.js +1 -0
- package/js/src/btcmarkets.js +1 -0
- package/js/src/btcturk.js +1 -0
- package/js/src/bybit.d.ts +8 -0
- package/js/src/bybit.js +186 -127
- package/js/src/coinsph.js +4 -1
- package/js/src/cryptocom.js +6 -3
- package/js/src/deribit.js +3 -2
- package/js/src/digifinex.js +1 -1
- package/js/src/gate.d.ts +2 -2
- package/js/src/gate.js +9 -13
- package/js/src/gemini.js +5 -5
- package/js/src/htx.js +11 -1
- package/js/src/hyperliquid.js +3 -0
- package/js/src/independentreserve.js +1 -0
- package/js/src/indodax.js +17 -6
- package/js/src/kraken.d.ts +2 -2
- package/js/src/kraken.js +31 -8
- package/js/src/krakenfutures.js +1 -0
- package/js/src/kucoin.js +1 -2
- package/js/src/luno.js +4 -1
- package/js/src/mercado.js +1 -0
- package/js/src/mexc.d.ts +4 -1
- package/js/src/mexc.js +84 -37
- package/js/src/novadax.js +1 -0
- package/js/src/oceanex.js +1 -0
- package/js/src/okcoin.js +4 -1
- package/js/src/okx.js +52 -8
- package/js/src/phemex.js +1 -1
- package/js/src/pro/apex.js +8 -4
- package/js/src/pro/backpack.d.ts +1 -1
- package/js/src/pro/backpack.js +7 -5
- package/js/src/pro/binance.d.ts +24 -0
- package/js/src/pro/binance.js +150 -19
- package/js/src/pro/bingx.d.ts +53 -33
- package/js/src/pro/bingx.js +207 -221
- package/js/src/pro/bitget.d.ts +6 -0
- package/js/src/pro/bitget.js +332 -76
- package/js/src/pro/cex.js +1 -0
- package/js/src/pro/htx.js +1 -1
- package/js/src/pro/independentreserve.js +1 -0
- package/js/src/pro/mexc.js +23 -23
- package/js/src/pro/okx.d.ts +7 -1
- package/js/src/pro/okx.js +46 -10
- package/js/src/pro/toobit.d.ts +174 -0
- package/js/src/pro/toobit.js +1162 -0
- package/js/src/toobit.d.ts +456 -0
- package/js/src/toobit.js +2992 -0
- package/js/src/upbit.js +1 -0
- package/js/src/wavesexchange.js +1 -0
- package/js/src/yobit.js +1 -0
- package/js/src/zaif.js +1 -0
- package/js/src/zonda.js +1 -0
- package/package.json +1 -1
- package/dist/373.ccxt.browser.js +0 -7630
- package/dist/373.ccxt.browser.min.js +0 -1
- package/js/src/abstract/tradeogre.d.ts +0 -21
- package/js/src/pro/tradeogre.d.ts +0 -49
- package/js/src/pro/tradeogre.js +0 -278
- package/js/src/tradeogre.d.ts +0 -149
- package/js/src/tradeogre.js +0 -872
- /package/js/src/abstract/{tradeogre.js → toobit.js} +0 -0
package/js/src/pro/bingx.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import bingxRest from '../bingx.js';
|
|
2
|
-
import type { Int, OHLCV, Str,
|
|
2
|
+
import type { Int, Market, OHLCV, Str, OrderBook, Order, Trade, Balances, Ticker, Dict } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bingx extends bingxRest {
|
|
5
5
|
describe(): any;
|
|
6
|
+
unWatch(messageHash: string, subMessageHash: string, subscribeHash: string, dataType: string, topic: string, market: Market, methodName: string, params?: {}): Promise<any>;
|
|
6
7
|
/**
|
|
7
8
|
* @method
|
|
8
9
|
* @name bingx#watchTicker
|
|
@@ -15,49 +16,28 @@ export default class bingx extends bingxRest {
|
|
|
15
16
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
16
17
|
*/
|
|
17
18
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
18
|
-
handleTicker(client: Client, message: any): void;
|
|
19
|
-
parseWsTicker(message: any, market?: any): Ticker;
|
|
20
19
|
/**
|
|
21
20
|
* @method
|
|
22
|
-
* @name bingx#
|
|
23
|
-
* @description
|
|
24
|
-
* @see https://bingx-api.github.io/docs/#/en-us/
|
|
25
|
-
* @
|
|
21
|
+
* @name bingx#unWatchTicker
|
|
22
|
+
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
23
|
+
* @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20to%2024-hour%20Price%20Change
|
|
24
|
+
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20to%2024-hour%20price%20changes
|
|
25
|
+
* @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%2024-Hour%20Price%20Change
|
|
26
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
26
27
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
27
28
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* @name bingx#watchOrderBookForSymbols
|
|
33
|
-
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
34
|
-
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data%20of%20all%20trading%20pairs
|
|
35
|
-
* @param {string[]} symbols unified array of symbols
|
|
36
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
37
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
38
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
39
|
-
*/
|
|
40
|
-
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
41
|
-
/**
|
|
42
|
-
* @method
|
|
43
|
-
* @name bingx#watchOHLCVForSymbols
|
|
44
|
-
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
45
|
-
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data%20of%20all%20trading%20pairs
|
|
46
|
-
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
47
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
48
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
49
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
50
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
51
|
-
*/
|
|
52
|
-
watchOHLCVForSymbols(symbolsAndTimeframes: string[][], since?: Int, limit?: Int, params?: {}): Promise<import("../base/types.js").Dictionary<import("../base/types.js").Dictionary<OHLCV[]>>>;
|
|
30
|
+
unWatchTicker(symbol: string, params?: {}): Promise<any>;
|
|
31
|
+
handleTicker(client: Client, message: any): void;
|
|
32
|
+
parseWsTicker(message: any, market?: any): Ticker;
|
|
53
33
|
getOrderBookLimitByMarketType(marketType: string, limit?: Int): number;
|
|
54
34
|
getMessageHash(unifiedChannel: string, symbol?: Str, extra?: Str): string;
|
|
55
35
|
/**
|
|
56
36
|
* @method
|
|
57
37
|
* @name bingx#watchTrades
|
|
58
38
|
* @description watches information on multiple trades made in a market
|
|
59
|
-
* @see https://bingx-api.github.io/docs/#/spot/socket/market.html#
|
|
60
|
-
* @see https://bingx-api.github.io/docs/#/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
|
|
39
|
+
* @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscription%20transaction%20by%20transaction
|
|
40
|
+
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
|
|
61
41
|
* @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscription%20transaction%20by%20transaction
|
|
62
42
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
63
43
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
@@ -66,6 +46,19 @@ export default class bingx extends bingxRest {
|
|
|
66
46
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
67
47
|
*/
|
|
68
48
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
49
|
+
/**
|
|
50
|
+
* @method
|
|
51
|
+
* @name bingx#unWatchTrades
|
|
52
|
+
* @description unsubscribes from the trades channel
|
|
53
|
+
* @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscription%20transaction%20by%20transaction
|
|
54
|
+
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
|
|
55
|
+
* @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscription%20transaction%20by%20transaction
|
|
56
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
57
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
|
+
* @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
|
|
59
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
60
|
+
*/
|
|
61
|
+
unWatchTrades(symbol: string, params?: {}): Promise<any>;
|
|
69
62
|
handleTrades(client: Client, message: any): void;
|
|
70
63
|
/**
|
|
71
64
|
* @method
|
|
@@ -80,6 +73,18 @@ export default class bingx extends bingxRest {
|
|
|
80
73
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
81
74
|
*/
|
|
82
75
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
76
|
+
/**
|
|
77
|
+
* @method
|
|
78
|
+
* @name bingx#unWatchOrderBook
|
|
79
|
+
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
80
|
+
* @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20Market%20Depth%20Data
|
|
81
|
+
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data
|
|
82
|
+
* @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Limited%20Depth
|
|
83
|
+
* @param {string} symbol unified symbol of the market
|
|
84
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
85
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
86
|
+
*/
|
|
87
|
+
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
83
88
|
handleDelta(bookside: any, delta: any): void;
|
|
84
89
|
handleOrderBook(client: Client, message: any): void;
|
|
85
90
|
parseWsOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
@@ -99,6 +104,19 @@ export default class bingx extends bingxRest {
|
|
|
99
104
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
100
105
|
*/
|
|
101
106
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
107
|
+
/**
|
|
108
|
+
* @method
|
|
109
|
+
* @name bingx#unWatchOHLCV
|
|
110
|
+
* @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
111
|
+
* @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#K-line%20Streams
|
|
112
|
+
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data
|
|
113
|
+
* @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
|
|
114
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
115
|
+
* @param {string} timeframe the length of time each candle represents
|
|
116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
118
|
+
*/
|
|
119
|
+
unWatchOHLCV(symbol: string, timeframe?: string, params?: {}): Promise<any>;
|
|
102
120
|
/**
|
|
103
121
|
* @method
|
|
104
122
|
* @name bingx#watchOrders
|
|
@@ -148,4 +166,6 @@ export default class bingx extends bingxRest {
|
|
|
148
166
|
handleMyTrades(client: Client, message: any): void;
|
|
149
167
|
handleBalance(client: Client, message: any): void;
|
|
150
168
|
handleMessage(client: Client, message: any): void;
|
|
169
|
+
handleSubscriptionStatus(client: Client, message: any): any;
|
|
170
|
+
handleUnSubscription(client: Client, subscription: Dict): void;
|
|
151
171
|
}
|