ccxt 4.3.87 → 4.3.89
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.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +1 -0
- package/dist/cjs/src/alpaca.js +1 -0
- package/dist/cjs/src/ascendex.js +7 -19
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +1 -0
- package/dist/cjs/src/bingx.js +1 -0
- package/dist/cjs/src/bit2c.js +1 -0
- package/dist/cjs/src/bitbank.js +1 -0
- package/dist/cjs/src/bitfinex.js +1 -0
- package/dist/cjs/src/bitflyer.js +1 -0
- package/dist/cjs/src/bitget.js +1 -0
- package/dist/cjs/src/bitmex.js +1 -0
- package/dist/cjs/src/bitopro.js +1 -0
- package/dist/cjs/src/bitrue.js +62 -71
- package/dist/cjs/src/bitso.js +1 -0
- package/dist/cjs/src/bitstamp.js +1 -0
- package/dist/cjs/src/bitvavo.js +1 -0
- 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/bybit.js +2 -0
- package/dist/cjs/src/cex.js +1 -0
- package/dist/cjs/src/coinbaseexchange.js +1 -0
- package/dist/cjs/src/cryptocom.js +0 -12
- package/dist/cjs/src/kraken.js +48 -48
- package/dist/cjs/src/kucoin.js +2 -0
- package/dist/cjs/src/mexc.js +1 -61
- package/dist/cjs/src/okcoin.js +4 -9
- package/dist/cjs/src/onetrading.js +1 -0
- package/dist/cjs/src/phemex.js +1 -0
- package/dist/cjs/src/poloniexfutures.js +1 -0
- package/dist/cjs/src/pro/bitfinex.js +1 -0
- package/dist/cjs/src/pro/bitfinex2.js +1 -0
- package/dist/cjs/src/pro/bitopro.js +1 -0
- package/dist/cjs/src/pro/bitstamp.js +1 -0
- package/dist/cjs/src/pro/bitvavo.js +1 -0
- package/dist/cjs/src/pro/blockchaincom.js +1 -0
- package/dist/cjs/src/pro/bybit.js +290 -1
- package/dist/cjs/src/pro/cex.js +2 -0
- package/dist/cjs/src/pro/coincheck.js +1 -0
- package/dist/cjs/src/pro/coinone.js +1 -0
- package/dist/cjs/src/pro/hashkey.js +1 -0
- package/dist/cjs/src/pro/hitbtc.js +1 -0
- package/dist/cjs/src/pro/hollaex.js +1 -0
- package/dist/cjs/src/pro/htx.js +1 -0
- package/dist/cjs/src/pro/huobijp.js +1 -0
- package/dist/cjs/src/pro/hyperliquid.js +7 -0
- package/dist/cjs/src/pro/independentreserve.js +1 -0
- package/dist/cjs/src/pro/lbank.js +1 -0
- package/dist/cjs/src/pro/luno.js +1 -0
- package/dist/cjs/src/pro/ndax.js +5 -0
- package/dist/cjs/src/pro/okcoin.js +7 -0
- package/dist/cjs/src/pro/onetrading.js +1 -0
- package/dist/cjs/src/pro/paradex.js +1 -0
- package/dist/cjs/src/probit.js +1 -0
- package/dist/cjs/src/vertex.js +1 -0
- package/dist/cjs/src/woo.js +1 -0
- package/dist/cjs/src/woofipro.js +1 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/kucoin.d.ts +1 -0
- package/js/src/abstract/kucoinfutures.d.ts +1 -0
- package/js/src/ace.js +1 -0
- package/js/src/alpaca.js +1 -0
- package/js/src/ascendex.d.ts +0 -1
- package/js/src/ascendex.js +7 -19
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +1 -0
- package/js/src/bingx.js +1 -0
- package/js/src/bit2c.js +1 -0
- package/js/src/bitbank.js +1 -0
- package/js/src/bitfinex.js +1 -0
- package/js/src/bitflyer.js +1 -0
- package/js/src/bitget.js +1 -0
- package/js/src/bitmex.js +1 -0
- package/js/src/bitopro.js +1 -0
- package/js/src/bitrue.d.ts +0 -1
- package/js/src/bitrue.js +62 -71
- package/js/src/bitso.js +1 -0
- package/js/src/bitstamp.js +1 -0
- package/js/src/bitvavo.js +1 -0
- 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/bybit.js +2 -0
- package/js/src/cex.js +1 -0
- package/js/src/coinbaseexchange.js +1 -0
- package/js/src/coinex.d.ts +1 -1
- package/js/src/cryptocom.d.ts +0 -1
- package/js/src/cryptocom.js +0 -12
- package/js/src/kraken.js +48 -48
- package/js/src/kucoin.js +2 -0
- package/js/src/mexc.js +1 -61
- package/js/src/okcoin.d.ts +0 -1
- package/js/src/okcoin.js +4 -9
- package/js/src/onetrading.js +1 -0
- package/js/src/phemex.js +1 -0
- package/js/src/poloniexfutures.js +1 -0
- package/js/src/pro/bitfinex.js +1 -0
- package/js/src/pro/bitfinex2.js +1 -0
- package/js/src/pro/bitopro.js +1 -0
- package/js/src/pro/bitstamp.js +1 -0
- package/js/src/pro/bitvavo.js +1 -0
- package/js/src/pro/blockchaincom.js +1 -0
- package/js/src/pro/bybit.d.ts +12 -1
- package/js/src/pro/bybit.js +291 -2
- package/js/src/pro/cex.js +2 -0
- package/js/src/pro/coincheck.js +1 -0
- package/js/src/pro/coinone.js +1 -0
- package/js/src/pro/hashkey.js +1 -0
- package/js/src/pro/hitbtc.js +1 -0
- package/js/src/pro/hollaex.js +1 -0
- package/js/src/pro/htx.js +1 -0
- package/js/src/pro/huobijp.js +1 -0
- package/js/src/pro/hyperliquid.js +7 -0
- package/js/src/pro/independentreserve.js +1 -0
- package/js/src/pro/lbank.js +1 -0
- package/js/src/pro/luno.js +1 -0
- package/js/src/pro/ndax.js +5 -0
- package/js/src/pro/okcoin.js +7 -0
- package/js/src/pro/onetrading.js +1 -0
- package/js/src/pro/paradex.js +1 -0
- package/js/src/probit.js +1 -0
- package/js/src/vertex.js +1 -0
- package/js/src/woo.js +1 -0
- package/js/src/woofipro.js +1 -0
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
22
22
|
'watchTicker': false,
|
|
23
23
|
'watchTickers': true,
|
|
24
24
|
'watchTrades': true,
|
|
25
|
+
'watchTradesForSymbols': false,
|
|
25
26
|
'watchPosition': false,
|
|
26
27
|
},
|
|
27
28
|
'urls': {
|
|
@@ -137,6 +138,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
137
138
|
* @method
|
|
138
139
|
* @name hyperliquid#watchOrderBook
|
|
139
140
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
141
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
140
142
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
141
143
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
142
144
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -210,6 +212,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
210
212
|
* @method
|
|
211
213
|
* @name hyperliquid#watchTickers
|
|
212
214
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
215
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
213
216
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
214
217
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
215
218
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -236,6 +239,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
236
239
|
* @method
|
|
237
240
|
* @name hyperliquid#watchMyTrades
|
|
238
241
|
* @description watches information on multiple trades made by the user
|
|
242
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
239
243
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
240
244
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
241
245
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -403,6 +407,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
403
407
|
* @method
|
|
404
408
|
* @name hyperliquid#watchTrades
|
|
405
409
|
* @description watches information on multiple trades made in a market
|
|
410
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
406
411
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
407
412
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
408
413
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
@@ -533,6 +538,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
533
538
|
* @method
|
|
534
539
|
* @name hyperliquid#watchOHLCV
|
|
535
540
|
* @description watches historical candlestick data containing the open, high, low, close price, and the volume of a market
|
|
541
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
536
542
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
537
543
|
* @param {string} timeframe the length of time each candle represents
|
|
538
544
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -618,6 +624,7 @@ class hyperliquid extends hyperliquid$1 {
|
|
|
618
624
|
* @method
|
|
619
625
|
* @name hyperliquid#watchOrders
|
|
620
626
|
* @description watches information on multiple orders made by the user
|
|
627
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
621
628
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
622
629
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
623
630
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
package/dist/cjs/src/pro/luno.js
CHANGED
package/dist/cjs/src/pro/ndax.js
CHANGED
|
@@ -12,6 +12,7 @@ class ndax extends ndax$1 {
|
|
|
12
12
|
'ws': true,
|
|
13
13
|
'watchOrderBook': true,
|
|
14
14
|
'watchTrades': true,
|
|
15
|
+
'watchTradesForSymbols': false,
|
|
15
16
|
'watchTicker': true,
|
|
16
17
|
'watchOHLCV': true,
|
|
17
18
|
},
|
|
@@ -40,6 +41,7 @@ class ndax extends ndax$1 {
|
|
|
40
41
|
* @method
|
|
41
42
|
* @name ndax#watchTicker
|
|
42
43
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
44
|
+
* @see https://apidoc.ndax.io/#subscribelevel1
|
|
43
45
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
44
46
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
47
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -105,6 +107,7 @@ class ndax extends ndax$1 {
|
|
|
105
107
|
* @method
|
|
106
108
|
* @name ndax#watchTrades
|
|
107
109
|
* @description get the list of most recent trades for a particular symbol
|
|
110
|
+
* @see https://apidoc.ndax.io/#subscribetrades
|
|
108
111
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
109
112
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
110
113
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -186,6 +189,7 @@ class ndax extends ndax$1 {
|
|
|
186
189
|
* @method
|
|
187
190
|
* @name ndax#watchOHLCV
|
|
188
191
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
192
|
+
* @see https://apidoc.ndax.io/#subscribeticker
|
|
189
193
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
190
194
|
* @param {string} timeframe the length of time each candle represents
|
|
191
195
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -318,6 +322,7 @@ class ndax extends ndax$1 {
|
|
|
318
322
|
* @method
|
|
319
323
|
* @name ndax#watchOrderBook
|
|
320
324
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
325
|
+
* @see https://apidoc.ndax.io/#subscribelevel2
|
|
321
326
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
322
327
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
323
328
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -17,6 +17,7 @@ class okcoin extends okcoin$1 {
|
|
|
17
17
|
'watchOrderBook': true,
|
|
18
18
|
'watchOrders': true,
|
|
19
19
|
'watchTrades': true,
|
|
20
|
+
'watchTradesForSymbols': false,
|
|
20
21
|
'watchBalance': true,
|
|
21
22
|
'watchOHLCV': true,
|
|
22
23
|
},
|
|
@@ -67,6 +68,7 @@ class okcoin extends okcoin$1 {
|
|
|
67
68
|
* @method
|
|
68
69
|
* @name okcoin#watchTrades
|
|
69
70
|
* @description get the list of most recent trades for a particular symbol
|
|
71
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-trades-channel
|
|
70
72
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
71
73
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
72
74
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -86,6 +88,7 @@ class okcoin extends okcoin$1 {
|
|
|
86
88
|
* @method
|
|
87
89
|
* @name okcoin#watchOrders
|
|
88
90
|
* @description watches information on multiple orders made by the user
|
|
91
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-private-channel-order-channel
|
|
89
92
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
90
93
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
91
94
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -172,6 +175,7 @@ class okcoin extends okcoin$1 {
|
|
|
172
175
|
* @method
|
|
173
176
|
* @name okcoin#watchTicker
|
|
174
177
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
178
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-tickers-channel
|
|
175
179
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
176
180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
177
181
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -252,6 +256,7 @@ class okcoin extends okcoin$1 {
|
|
|
252
256
|
* @method
|
|
253
257
|
* @name okcoin#watchOHLCV
|
|
254
258
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
259
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-candlesticks-channel
|
|
255
260
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
256
261
|
* @param {string} timeframe the length of time each candle represents
|
|
257
262
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -319,6 +324,7 @@ class okcoin extends okcoin$1 {
|
|
|
319
324
|
* @method
|
|
320
325
|
* @name okcoin#watchOrderBook
|
|
321
326
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
327
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-order-book-channel
|
|
322
328
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
323
329
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
324
330
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -482,6 +488,7 @@ class okcoin extends okcoin$1 {
|
|
|
482
488
|
* @method
|
|
483
489
|
* @name okcoin#watchBalance
|
|
484
490
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
491
|
+
* @see https://www.okcoin.com/docs-v5/en/#websocket-api-private-channel-account-channel
|
|
485
492
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
486
493
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
487
494
|
*/
|
package/dist/cjs/src/probit.js
CHANGED
|
@@ -1073,6 +1073,7 @@ class probit extends probit$1 {
|
|
|
1073
1073
|
* @name probit#fetchOrder
|
|
1074
1074
|
* @see https://docs-en.probit.com/reference/order-3
|
|
1075
1075
|
* @description fetches information on an order made by the user
|
|
1076
|
+
* @param {string} id the order id
|
|
1076
1077
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1077
1078
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1078
1079
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/dist/cjs/src/vertex.js
CHANGED
|
@@ -1968,6 +1968,7 @@ class vertex extends vertex$1 {
|
|
|
1968
1968
|
* @name vertex#fetchOrder
|
|
1969
1969
|
* @description fetches information on an order made by the user
|
|
1970
1970
|
* @see https://docs.vertexprotocol.com/developer-resources/api/gateway/queries/order
|
|
1971
|
+
* @param {string} id the order id
|
|
1971
1972
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1972
1973
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1973
1974
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/dist/cjs/src/woo.js
CHANGED
|
@@ -1366,6 +1366,7 @@ class woo extends woo$1 {
|
|
|
1366
1366
|
* @see https://docs.woo.org/#get-algo-order
|
|
1367
1367
|
* @see https://docs.woo.org/#get-order
|
|
1368
1368
|
* @description fetches information on an order made by the user
|
|
1369
|
+
* @param {string} id the order id
|
|
1369
1370
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1370
1371
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1371
1372
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
package/dist/cjs/src/woofipro.js
CHANGED
|
@@ -1713,6 +1713,7 @@ class woofipro extends woofipro$1 {
|
|
|
1713
1713
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-algo-order-by-order_id
|
|
1714
1714
|
* @see https://orderly.network/docs/build-on-evm/evm-api/restful-api/private/get-algo-order-by-client_order_id
|
|
1715
1715
|
* @description fetches information on an order made by the user
|
|
1716
|
+
* @param {string} id the order id
|
|
1716
1717
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1717
1718
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1718
1719
|
* @param {boolean} [params.trigger] whether the order is a stop/algo order
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.3.
|
|
7
|
+
declare const version = "4.3.88";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.3.
|
|
41
|
+
const version = '4.3.89';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -197,6 +197,7 @@ interface Exchange {
|
|
|
197
197
|
brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
198
198
|
brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
199
199
|
brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
200
|
+
brokerGetAssetNdbrokerDepositList(params?: {}): Promise<implicitReturnType>;
|
|
200
201
|
brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
|
|
201
202
|
brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
|
|
202
203
|
brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
|
|
@@ -218,6 +218,7 @@ interface kucoin {
|
|
|
218
218
|
brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
|
|
219
219
|
brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
|
|
220
220
|
brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
|
|
221
|
+
brokerGetAssetNdbrokerDepositList(params?: {}): Promise<implicitReturnType>;
|
|
221
222
|
brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
|
|
222
223
|
brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
|
|
223
224
|
brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
|
package/js/src/ace.js
CHANGED
|
@@ -676,6 +676,7 @@ export default class ace extends Exchange {
|
|
|
676
676
|
* @name ace#fetchOrder
|
|
677
677
|
* @description fetches information on an order made by the user
|
|
678
678
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
|
679
|
+
* @param {string} id the order id
|
|
679
680
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
680
681
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
681
682
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/alpaca.js
CHANGED
|
@@ -825,6 +825,7 @@ export default class alpaca extends Exchange {
|
|
|
825
825
|
* @name alpaca#fetchOrder
|
|
826
826
|
* @description fetches information on an order made by the user
|
|
827
827
|
* @see https://docs.alpaca.markets/reference/getorderbyorderid
|
|
828
|
+
* @param {string} id the order id
|
|
828
829
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
829
830
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
830
831
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/ascendex.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export default class ascendex extends Exchange {
|
|
|
41
41
|
network: string;
|
|
42
42
|
info: any;
|
|
43
43
|
};
|
|
44
|
-
safeNetwork(networkId: any): string;
|
|
45
44
|
fetchDepositAddress(code: string, params?: {}): Promise<any>;
|
|
46
45
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
47
46
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
package/js/src/ascendex.js
CHANGED
|
@@ -285,26 +285,17 @@ export default class ascendex extends Exchange {
|
|
|
285
285
|
'SOL': 'Solana',
|
|
286
286
|
'AVAX': 'avalanche C chain',
|
|
287
287
|
'OMNI': 'Omni',
|
|
288
|
-
'TRC': 'TRC20',
|
|
288
|
+
// 'TRC': 'TRC20',
|
|
289
289
|
'TRX': 'TRC20',
|
|
290
|
-
'ERC': 'ERC20',
|
|
291
|
-
},
|
|
292
|
-
'networksById': {
|
|
293
|
-
'BEP20 (BSC)': 'BSC',
|
|
294
|
-
'arbitrum': 'ARB',
|
|
295
|
-
'Solana': 'SOL',
|
|
296
|
-
'avalanche C chain': 'AVAX',
|
|
297
|
-
'Omni': 'OMNI',
|
|
298
290
|
'TRC20': 'TRC20',
|
|
299
291
|
'ERC20': 'ERC20',
|
|
300
292
|
'GO20': 'GO20',
|
|
301
293
|
'BEP2': 'BEP2',
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'Akash': 'AKT',
|
|
294
|
+
'BTC': 'Bitcoin',
|
|
295
|
+
'BCH': 'Bitcoin ABC',
|
|
296
|
+
'LTC': 'Litecoin',
|
|
297
|
+
'MATIC': 'Matic Network',
|
|
298
|
+
'AKT': 'Akash',
|
|
308
299
|
},
|
|
309
300
|
},
|
|
310
301
|
'exceptions': {
|
|
@@ -1787,6 +1778,7 @@ export default class ascendex extends Exchange {
|
|
|
1787
1778
|
* @description fetches information on an order made by the user
|
|
1788
1779
|
* @see https://ascendex.github.io/ascendex-pro-api/#query-order
|
|
1789
1780
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#query-order-by-id
|
|
1781
|
+
* @param {string} id the order id
|
|
1790
1782
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1791
1783
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1792
1784
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2407,10 +2399,6 @@ export default class ascendex extends Exchange {
|
|
|
2407
2399
|
'info': depositAddress,
|
|
2408
2400
|
};
|
|
2409
2401
|
}
|
|
2410
|
-
safeNetwork(networkId) {
|
|
2411
|
-
const networksById = this.safeDict(this.options, 'networksById');
|
|
2412
|
-
return this.safeString(networksById, networkId, networkId);
|
|
2413
|
-
}
|
|
2414
2402
|
async fetchDepositAddress(code, params = {}) {
|
|
2415
2403
|
/**
|
|
2416
2404
|
* @method
|
|
@@ -1143,7 +1143,7 @@ export default class Exchange {
|
|
|
1143
1143
|
convertExpireDate(date: string): string;
|
|
1144
1144
|
convertExpireDateToMarketIdDate(date: string): string;
|
|
1145
1145
|
convertMarketIdExpireDate(date: string): string;
|
|
1146
|
-
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position>;
|
|
1146
|
+
fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
1147
1147
|
fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
1148
1148
|
parseMarginModification(data: Dict, market?: Market): MarginModification;
|
|
1149
1149
|
parseMarginModifications(response: object[], symbols?: Strings, symbolKey?: Str, marketType?: MarketType): MarginModification[];
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -5982,7 +5982,7 @@ export default class Exchange {
|
|
|
5982
5982
|
errors = 0;
|
|
5983
5983
|
result = this.arrayConcat(result, response);
|
|
5984
5984
|
const last = this.safeValue(response, responseLength - 1);
|
|
5985
|
-
paginationTimestamp = this.safeInteger(last, 'timestamp')
|
|
5985
|
+
paginationTimestamp = this.safeInteger(last, 'timestamp') + 1;
|
|
5986
5986
|
if ((until !== undefined) && (paginationTimestamp >= until)) {
|
|
5987
5987
|
break;
|
|
5988
5988
|
}
|
|
@@ -6432,7 +6432,7 @@ export default class Exchange {
|
|
|
6432
6432
|
*/
|
|
6433
6433
|
if (this.has['fetchPositionsHistory']) {
|
|
6434
6434
|
const positions = await this.fetchPositionsHistory([symbol], since, limit, params);
|
|
6435
|
-
return
|
|
6435
|
+
return positions;
|
|
6436
6436
|
}
|
|
6437
6437
|
else {
|
|
6438
6438
|
throw new NotSupported(this.id + ' fetchPositionHistory () is not supported yet');
|
package/js/src/bigone.js
CHANGED
|
@@ -1652,6 +1652,7 @@ export default class bigone extends Exchange {
|
|
|
1652
1652
|
* @name bigone#fetchOrder
|
|
1653
1653
|
* @description fetches information on an order made by the user
|
|
1654
1654
|
* @see https://open.big.one/docs/spot_orders.html#get-one-order
|
|
1655
|
+
* @param {string} id the order id
|
|
1655
1656
|
* @param {string} symbol not used by bigone fetchOrder
|
|
1656
1657
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1657
1658
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bingx.js
CHANGED
|
@@ -3649,6 +3649,7 @@ export default class bingx extends Exchange {
|
|
|
3649
3649
|
* @see https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20details
|
|
3650
3650
|
* @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20details
|
|
3651
3651
|
* @see https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order
|
|
3652
|
+
* @param {string} id the order id
|
|
3652
3653
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3653
3654
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3654
3655
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bit2c.js
CHANGED
|
@@ -502,6 +502,7 @@ export default class bit2c extends Exchange {
|
|
|
502
502
|
* @name bit2c#fetchOrder
|
|
503
503
|
* @description fetches information on an order made by the user
|
|
504
504
|
* @see https://bit2c.co.il/home/api#getoid
|
|
505
|
+
* @param {string} id the order id
|
|
505
506
|
* @param {string} symbol unified market symbol
|
|
506
507
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
507
508
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bitbank.js
CHANGED
|
@@ -720,6 +720,7 @@ export default class bitbank extends Exchange {
|
|
|
720
720
|
* @name bitbank#fetchOrder
|
|
721
721
|
* @description fetches information on an order made by the user
|
|
722
722
|
* @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
|
|
723
|
+
* @param {string} id the order id
|
|
723
724
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
724
725
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
725
726
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bitfinex.js
CHANGED
|
@@ -1336,6 +1336,7 @@ export default class bitfinex extends Exchange {
|
|
|
1336
1336
|
* @name bitfinex#fetchOrder
|
|
1337
1337
|
* @description fetches information on an order made by the user
|
|
1338
1338
|
* @see https://docs.bitfinex.com/v1/reference/rest-auth-order-status
|
|
1339
|
+
* @param {string} id the order id
|
|
1339
1340
|
* @param {string} symbol not used by bitfinex fetchOrder
|
|
1340
1341
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1341
1342
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bitflyer.js
CHANGED
|
@@ -728,6 +728,7 @@ export default class bitflyer extends Exchange {
|
|
|
728
728
|
* @name bitflyer#fetchOrder
|
|
729
729
|
* @description fetches information on an order made by the user
|
|
730
730
|
* @see https://lightning.bitflyer.com/docs?lang=en#list-orders
|
|
731
|
+
* @param {string} id the order id
|
|
731
732
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
732
733
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
733
734
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bitget.js
CHANGED
|
@@ -5104,6 +5104,7 @@ export default class bitget extends Exchange {
|
|
|
5104
5104
|
* @description fetches information on an order made by the user
|
|
5105
5105
|
* @see https://www.bitget.com/api-doc/spot/trade/Get-Order-Info
|
|
5106
5106
|
* @see https://www.bitget.com/api-doc/contract/trade/Get-Order-Details
|
|
5107
|
+
* @param {string} id the order id
|
|
5107
5108
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5108
5109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5109
5110
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bitmex.js
CHANGED
|
@@ -887,6 +887,7 @@ export default class bitmex extends Exchange {
|
|
|
887
887
|
* @name bitmex#fetchOrder
|
|
888
888
|
* @description fetches information on an order made by the user
|
|
889
889
|
* @see https://www.bitmex.com/api/explorer/#!/Order/Order_getOrders
|
|
890
|
+
* @param {string} id the order id
|
|
890
891
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
891
892
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
892
893
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bitopro.js
CHANGED
|
@@ -1179,6 +1179,7 @@ export default class bitopro extends Exchange {
|
|
|
1179
1179
|
* @name bitopro#fetchOrder
|
|
1180
1180
|
* @description fetches information on an order made by the user
|
|
1181
1181
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
|
|
1182
|
+
* @param {string} id the order id
|
|
1182
1183
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1183
1184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1184
1185
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/bitrue.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export default class bitrue extends Exchange {
|
|
|
16
16
|
info: any;
|
|
17
17
|
}>;
|
|
18
18
|
fetchTime(params?: {}): Promise<number>;
|
|
19
|
-
safeNetwork(networkId: any): string;
|
|
20
19
|
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
21
20
|
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
22
21
|
parseMarket(market: Dict): Market;
|