ccxt 4.5.38 → 4.5.40
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 +5 -7
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -6
- package/dist/cjs/src/base/Exchange.js +62 -5
- package/dist/cjs/src/binance.js +151 -2
- package/dist/cjs/src/bingx.js +137 -120
- package/dist/cjs/src/bitget.js +47 -1
- package/dist/cjs/src/bitmart.js +23 -8
- package/dist/cjs/src/bitmex.js +416 -0
- package/dist/cjs/src/bitstamp.js +264 -43
- package/dist/cjs/src/bitvavo.js +10 -0
- package/dist/cjs/src/blofin.js +85 -0
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/bybit.js +135 -0
- package/dist/cjs/src/coinspot.js +77 -7
- package/dist/cjs/src/delta.js +367 -0
- package/dist/cjs/src/htx.js +265 -2
- package/dist/cjs/src/hyperliquid.js +37 -8
- package/dist/cjs/src/krakenfutures.js +4 -0
- package/dist/cjs/src/kucoinfutures.js +121 -0
- package/dist/cjs/src/mexc.js +9 -1
- package/dist/cjs/src/phemex.js +359 -0
- package/dist/cjs/src/poloniex.js +5 -0
- package/dist/cjs/src/pro/binance.js +111 -26
- package/dist/cjs/src/pro/bingx.js +33 -33
- package/dist/cjs/src/pro/bitget.js +48 -90
- package/dist/cjs/src/pro/bitmart.js +68 -0
- package/dist/cjs/src/pro/blofin.js +52 -1
- package/dist/cjs/src/pro/bybit.js +2 -2
- package/dist/cjs/src/pro/coinbaseinternational.js +5 -2
- package/dist/cjs/src/pro/mexc.js +72 -0
- package/dist/cjs/src/pro/okx.js +8 -5
- package/dist/cjs/src/pro/paradex.js +137 -0
- package/dist/cjs/src/pro/woo.js +43 -0
- package/dist/cjs/src/tokocrypto.js +23 -0
- package/dist/cjs/src/toobit.js +20 -0
- package/dist/cjs/src/whitebit.js +11 -10
- package/dist/cjs/src/woo.js +103 -3
- package/js/ccxt.d.ts +3 -9
- package/js/ccxt.js +2 -6
- package/js/src/abstract/binance.d.ts +5 -0
- package/js/src/abstract/binancecoinm.d.ts +5 -0
- package/js/src/abstract/binanceus.d.ts +5 -0
- package/js/src/abstract/binanceusdm.d.ts +5 -0
- package/js/src/abstract/bitget.d.ts +47 -1
- package/js/src/abstract/bitstamp.d.ts +1 -1
- package/js/src/abstract/bitvavo.d.ts +10 -0
- package/js/src/abstract/coinspot.d.ts +45 -0
- package/js/src/base/Exchange.d.ts +11 -8
- package/js/src/base/Exchange.js +65 -5
- package/js/src/base/types.d.ts +9 -0
- package/js/src/binance.d.ts +26 -1
- package/js/src/binance.js +151 -2
- package/js/src/bingx.d.ts +113 -108
- package/js/src/bingx.js +137 -120
- package/js/src/bitget.js +47 -1
- package/js/src/bitmart.js +23 -8
- package/js/src/bitmex.d.ts +50 -1
- package/js/src/bitmex.js +416 -0
- package/js/src/bitstamp.d.ts +52 -1
- package/js/src/bitstamp.js +264 -43
- package/js/src/bitvavo.js +10 -0
- package/js/src/blofin.d.ts +12 -1
- package/js/src/blofin.js +85 -0
- package/js/src/btcmarkets.js +1 -1
- package/js/src/bybit.d.ts +12 -1
- package/js/src/bybit.js +135 -0
- package/js/src/coinspot.js +77 -7
- package/js/src/delta.d.ts +12 -1
- package/js/src/delta.js +367 -0
- package/js/src/htx.d.ts +15 -1
- package/js/src/htx.js +265 -2
- package/js/src/hyperliquid.js +37 -8
- package/js/src/krakenfutures.js +4 -0
- package/js/src/kucoinfutures.d.ts +12 -1
- package/js/src/kucoinfutures.js +121 -0
- package/js/src/mexc.js +9 -1
- package/js/src/phemex.d.ts +16 -1
- package/js/src/phemex.js +359 -0
- package/js/src/poloniex.js +5 -0
- package/js/src/pro/binance.d.ts +13 -0
- package/js/src/pro/binance.js +111 -26
- package/js/src/pro/bingx.d.ts +33 -33
- package/js/src/pro/bingx.js +33 -33
- package/js/src/pro/bitget.d.ts +6 -6
- package/js/src/pro/bitget.js +48 -90
- package/js/src/pro/bitmart.d.ts +22 -1
- package/js/src/pro/bitmart.js +69 -1
- package/js/src/pro/blofin.d.ts +12 -1
- package/js/src/pro/blofin.js +52 -1
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +2 -2
- package/js/src/pro/coinbaseinternational.d.ts +2 -2
- package/js/src/pro/coinbaseinternational.js +6 -3
- package/js/src/pro/mexc.d.ts +22 -1
- package/js/src/pro/mexc.js +72 -0
- package/js/src/pro/okx.d.ts +4 -4
- package/js/src/pro/okx.js +8 -5
- package/js/src/pro/paradex.d.ts +23 -1
- package/js/src/pro/paradex.js +137 -0
- package/js/src/pro/woo.d.ts +12 -1
- package/js/src/pro/woo.js +43 -0
- package/js/src/tokocrypto.js +23 -0
- package/js/src/toobit.js +20 -0
- package/js/src/whitebit.js +8 -8
- package/js/src/woo.d.ts +12 -1
- package/js/src/woo.js +103 -3
- package/package.json +1 -1
- package/dist/cjs/src/abstract/probit.js +0 -11
- package/dist/cjs/src/pro/probit.js +0 -594
- package/dist/cjs/src/probit.js +0 -1936
- package/js/src/abstract/probit.d.ts +0 -26
- package/js/src/abstract/probit.js +0 -11
- package/js/src/pro/probit.d.ts +0 -91
- package/js/src/pro/probit.js +0 -593
- package/js/src/probit.d.ts +0 -283
- package/js/src/probit.js +0 -1935
package/js/src/pro/bingx.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export default class bingx extends bingxRest {
|
|
|
8
8
|
* @method
|
|
9
9
|
* @name bingx#watchTicker
|
|
10
10
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
11
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
12
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
13
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
11
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
|
|
12
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
|
|
13
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
|
|
14
14
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
15
15
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
16
16
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
@@ -20,9 +20,9 @@ export default class bingx extends bingxRest {
|
|
|
20
20
|
* @method
|
|
21
21
|
* @name bingx#unWatchTicker
|
|
22
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
|
|
24
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
25
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
23
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
|
|
24
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
|
|
25
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
|
|
26
26
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
27
27
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
28
28
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
@@ -36,9 +36,9 @@ export default class bingx extends bingxRest {
|
|
|
36
36
|
* @method
|
|
37
37
|
* @name bingx#watchTrades
|
|
38
38
|
* @description watches information on multiple trades made in a market
|
|
39
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
40
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
41
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
39
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
40
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
|
|
41
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
42
42
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
43
43
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
44
44
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -50,9 +50,9 @@ export default class bingx extends bingxRest {
|
|
|
50
50
|
* @method
|
|
51
51
|
* @name bingx#unWatchTrades
|
|
52
52
|
* @description unsubscribes from the trades channel
|
|
53
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
54
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
55
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
53
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
54
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
|
|
55
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
56
56
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
57
57
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
58
|
* @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
|
|
@@ -64,9 +64,9 @@ export default class bingx extends bingxRest {
|
|
|
64
64
|
* @method
|
|
65
65
|
* @name bingx#watchOrderBook
|
|
66
66
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
67
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
68
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
69
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
67
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
|
|
68
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
|
|
69
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
|
|
70
70
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
71
71
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
72
72
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -77,9 +77,9 @@ export default class bingx extends bingxRest {
|
|
|
77
77
|
* @method
|
|
78
78
|
* @name bingx#unWatchOrderBook
|
|
79
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
|
|
81
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
82
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
80
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
|
|
81
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
|
|
82
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
|
|
83
83
|
* @param {string} symbol unified symbol of the market
|
|
84
84
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
85
85
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
@@ -93,9 +93,9 @@ export default class bingx extends bingxRest {
|
|
|
93
93
|
* @method
|
|
94
94
|
* @name bingx#watchOHLCV
|
|
95
95
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
96
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
97
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
98
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
96
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
|
|
97
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
|
|
98
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
|
|
99
99
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
100
100
|
* @param {string} timeframe the length of time each candle represents
|
|
101
101
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -108,9 +108,9 @@ export default class bingx extends bingxRest {
|
|
|
108
108
|
* @method
|
|
109
109
|
* @name bingx#unWatchOHLCV
|
|
110
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
|
|
112
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
113
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
111
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
|
|
112
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
|
|
113
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
|
|
114
114
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
115
115
|
* @param {string} timeframe the length of time each candle represents
|
|
116
116
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -121,9 +121,9 @@ export default class bingx extends bingxRest {
|
|
|
121
121
|
* @method
|
|
122
122
|
* @name bingx#watchOrders
|
|
123
123
|
* @description watches information on multiple orders made by the user
|
|
124
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
125
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
126
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
124
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
|
|
125
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
|
|
126
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
|
|
127
127
|
* @param {string} [symbol] unified market symbol of the market orders are made in
|
|
128
128
|
* @param {int} [since] the earliest time in ms to watch orders for
|
|
129
129
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -135,9 +135,9 @@ export default class bingx extends bingxRest {
|
|
|
135
135
|
* @method
|
|
136
136
|
* @name bingx#watchMyTrades
|
|
137
137
|
* @description watches information on multiple trades made by the user
|
|
138
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
139
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
140
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
138
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
|
|
139
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
|
|
140
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
|
|
141
141
|
* @param {string} [symbol] unified market symbol of the market the trades are made in
|
|
142
142
|
* @param {int} [since] the earliest time in ms to watch trades for
|
|
143
143
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
@@ -149,9 +149,9 @@ export default class bingx extends bingxRest {
|
|
|
149
149
|
* @method
|
|
150
150
|
* @name bingx#watchBalance
|
|
151
151
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
152
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
153
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
154
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
152
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/Subscription%20account%20balance%20push
|
|
153
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
|
|
154
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
|
|
155
155
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
156
156
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
157
157
|
*/
|
package/js/src/pro/bingx.js
CHANGED
|
@@ -130,9 +130,9 @@ export default class bingx extends bingxRest {
|
|
|
130
130
|
* @method
|
|
131
131
|
* @name bingx#watchTicker
|
|
132
132
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
133
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
134
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
135
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
133
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
|
|
134
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
|
|
135
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
|
|
136
136
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
137
137
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
138
138
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
@@ -171,9 +171,9 @@ export default class bingx extends bingxRest {
|
|
|
171
171
|
* @method
|
|
172
172
|
* @name bingx#unWatchTicker
|
|
173
173
|
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
174
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
175
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
176
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
174
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
|
|
175
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
|
|
176
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
|
|
177
177
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
178
178
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
179
179
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
@@ -338,9 +338,9 @@ export default class bingx extends bingxRest {
|
|
|
338
338
|
* @method
|
|
339
339
|
* @name bingx#watchTrades
|
|
340
340
|
* @description watches information on multiple trades made in a market
|
|
341
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
342
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
343
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
341
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
342
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
|
|
343
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
344
344
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
345
345
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
346
346
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -392,9 +392,9 @@ export default class bingx extends bingxRest {
|
|
|
392
392
|
* @method
|
|
393
393
|
* @name bingx#unWatchTrades
|
|
394
394
|
* @description unsubscribes from the trades channel
|
|
395
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
396
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
397
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
395
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
396
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
|
|
397
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
|
|
398
398
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
399
399
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
400
400
|
* @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
|
|
@@ -522,9 +522,9 @@ export default class bingx extends bingxRest {
|
|
|
522
522
|
* @method
|
|
523
523
|
* @name bingx#watchOrderBook
|
|
524
524
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
525
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
526
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
527
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
525
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
|
|
526
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
|
|
527
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
|
|
528
528
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
529
529
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
530
530
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -580,9 +580,9 @@ export default class bingx extends bingxRest {
|
|
|
580
580
|
* @method
|
|
581
581
|
* @name bingx#unWatchOrderBook
|
|
582
582
|
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
583
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
584
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
585
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
583
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
|
|
584
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
|
|
585
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
|
|
586
586
|
* @param {string} symbol unified symbol of the market
|
|
587
587
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
588
588
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
@@ -854,9 +854,9 @@ export default class bingx extends bingxRest {
|
|
|
854
854
|
* @method
|
|
855
855
|
* @name bingx#watchOHLCV
|
|
856
856
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
857
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
858
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
859
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
857
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
|
|
858
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
|
|
859
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
|
|
860
860
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
861
861
|
* @param {string} timeframe the length of time each candle represents
|
|
862
862
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -911,9 +911,9 @@ export default class bingx extends bingxRest {
|
|
|
911
911
|
* @method
|
|
912
912
|
* @name bingx#unWatchOHLCV
|
|
913
913
|
* @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
914
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
915
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
916
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
914
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
|
|
915
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
|
|
916
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
|
|
917
917
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
918
918
|
* @param {string} timeframe the length of time each candle represents
|
|
919
919
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -937,9 +937,9 @@ export default class bingx extends bingxRest {
|
|
|
937
937
|
* @method
|
|
938
938
|
* @name bingx#watchOrders
|
|
939
939
|
* @description watches information on multiple orders made by the user
|
|
940
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
941
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
942
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
940
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
|
|
941
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
|
|
942
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
|
|
943
943
|
* @param {string} [symbol] unified market symbol of the market orders are made in
|
|
944
944
|
* @param {int} [since] the earliest time in ms to watch orders for
|
|
945
945
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -1000,9 +1000,9 @@ export default class bingx extends bingxRest {
|
|
|
1000
1000
|
* @method
|
|
1001
1001
|
* @name bingx#watchMyTrades
|
|
1002
1002
|
* @description watches information on multiple trades made by the user
|
|
1003
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
1004
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
1005
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
1003
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
|
|
1004
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
|
|
1005
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
|
|
1006
1006
|
* @param {string} [symbol] unified market symbol of the market the trades are made in
|
|
1007
1007
|
* @param {int} [since] the earliest time in ms to watch trades for
|
|
1008
1008
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
@@ -1063,9 +1063,9 @@ export default class bingx extends bingxRest {
|
|
|
1063
1063
|
* @method
|
|
1064
1064
|
* @name bingx#watchBalance
|
|
1065
1065
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1066
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
1067
|
-
* @see https://bingx-api.github.io/docs/#/en
|
|
1068
|
-
* @see https://bingx-api.github.io/docs/#/en-
|
|
1066
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/Subscription%20account%20balance%20push
|
|
1067
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
|
|
1068
|
+
* @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
|
|
1069
1069
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1070
1070
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1071
1071
|
*/
|
package/js/src/pro/bitget.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import Client from '../base/ws/Client.js';
|
|
|
8
8
|
*/
|
|
9
9
|
export default class bitget extends bitgetRest {
|
|
10
10
|
describe(): any;
|
|
11
|
-
getInstType(market: any, uta?: boolean, params?: {}): any[];
|
|
11
|
+
getInstType(methodName: any, market: any, uta?: boolean, params?: {}): any[];
|
|
12
12
|
/**
|
|
13
13
|
* @method
|
|
14
14
|
* @name bitget#watchTicker
|
|
@@ -123,7 +123,7 @@ export default class bitget extends bitgetRest {
|
|
|
123
123
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
124
124
|
*/
|
|
125
125
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
126
|
-
unWatchChannel(symbol: string, channel: string, messageHashTopic: string, params?: {}): Promise<any>;
|
|
126
|
+
unWatchChannel(symbol: string, channel: string, messageHashTopic: string, methodName: string, params?: {}): Promise<any>;
|
|
127
127
|
/**
|
|
128
128
|
* @method
|
|
129
129
|
* @name bitget#watchOrderBookForSymbols
|
|
@@ -263,11 +263,11 @@ export default class bitget extends bitgetRest {
|
|
|
263
263
|
*/
|
|
264
264
|
watchBalance(params?: {}): Promise<Balances>;
|
|
265
265
|
handleBalance(client: Client, message: any): void;
|
|
266
|
-
watchPublic(messageHash: any, args: any, params?: {}): Promise<any>;
|
|
267
|
-
unWatchPublic(messageHash: any, args: any, params?: {}): Promise<any>;
|
|
268
|
-
watchPublicMultiple(messageHashes: any, argsArray: any, params?: {}): Promise<any>;
|
|
266
|
+
watchPublic(uta: any, messageHash: any, args: any, params?: {}): Promise<any>;
|
|
267
|
+
unWatchPublic(uta: any, messageHash: any, args: any, params?: {}): Promise<any>;
|
|
268
|
+
watchPublicMultiple(uta: any, messageHashes: any, argsArray: any, params?: {}): Promise<any>;
|
|
269
269
|
authenticate(params?: {}): Promise<any>;
|
|
270
|
-
watchPrivate(messageHash: any, subscriptionHash: any, args: any, params?: {}): Promise<any>;
|
|
270
|
+
watchPrivate(uta: any, messageHash: any, subscriptionHash: any, args: any, params?: {}): Promise<any>;
|
|
271
271
|
handleAuthenticate(client: Client, message: any): void;
|
|
272
272
|
handleErrorMessage(client: Client, message: any): Bool;
|
|
273
273
|
handleMessage(client: Client, message: any): void;
|