ccxt 4.1.55 → 4.1.57
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/.git-templates/hooks/pre-push +2 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +6 -6
- package/build.sh +30 -8
- package/dist/ccxt.browser.js +5592 -4907
- package/dist/ccxt.browser.min.js +13 -13
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +17 -13
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +35 -29
- package/dist/cjs/src/base/Exchange.js +39 -26
- package/dist/cjs/src/base/Precise.js +1 -3
- package/dist/cjs/src/bigone.js +24 -20
- package/dist/cjs/src/binance.js +97 -76
- package/dist/cjs/src/bingx.js +63 -44
- package/dist/cjs/src/bit2c.js +18 -15
- package/dist/cjs/src/bitbank.js +17 -15
- package/dist/cjs/src/bitbns.js +28 -18
- package/dist/cjs/src/bitfinex.js +23 -21
- package/dist/cjs/src/bitfinex2.js +32 -28
- package/dist/cjs/src/bitflyer.js +28 -20
- package/dist/cjs/src/bitforex.js +25 -18
- package/dist/cjs/src/bitget.js +184 -147
- package/dist/cjs/src/bithumb.js +23 -16
- package/dist/cjs/src/bitmart.js +129 -94
- package/dist/cjs/src/bitmex.js +104 -64
- package/dist/cjs/src/bitopro.js +38 -26
- package/dist/cjs/src/bitpanda.js +24 -23
- package/dist/cjs/src/bitrue.js +33 -24
- package/dist/cjs/src/bitso.js +24 -23
- package/dist/cjs/src/bitstamp.js +24 -23
- package/dist/cjs/src/bittrex.js +30 -29
- package/dist/cjs/src/bitvavo.js +38 -30
- package/dist/cjs/src/bl3p.js +11 -10
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +18 -17
- package/dist/cjs/src/btcbox.js +13 -12
- package/dist/cjs/src/btcmarkets.js +20 -19
- package/dist/cjs/src/btcturk.js +14 -13
- package/dist/cjs/src/bybit.js +84 -54
- package/dist/cjs/src/cex.js +16 -14
- package/dist/cjs/src/coinbase.js +29 -27
- package/dist/cjs/src/coinbasepro.js +27 -25
- package/dist/cjs/src/coincheck.js +15 -14
- package/dist/cjs/src/coinex.js +101 -78
- package/dist/cjs/src/coinlist.js +28 -27
- package/dist/cjs/src/coinmate.js +20 -17
- package/dist/cjs/src/coinone.js +21 -16
- package/dist/cjs/src/coinsph.js +37 -28
- package/dist/cjs/src/coinspot.js +12 -11
- package/dist/cjs/src/cryptocom.js +40 -202
- package/dist/cjs/src/currencycom.js +32 -25
- package/dist/cjs/src/delta.js +34 -28
- package/dist/cjs/src/deribit.js +39 -36
- package/dist/cjs/src/digifinex.js +64 -44
- package/dist/cjs/src/exmo.js +29 -27
- package/dist/cjs/src/gate.js +67 -53
- package/dist/cjs/src/gemini.js +23 -20
- package/dist/cjs/src/hitbtc.js +65 -56
- package/dist/cjs/src/hollaex.js +30 -27
- package/dist/cjs/src/htx.js +135 -143
- package/dist/cjs/src/huobijp.js +22 -20
- package/dist/cjs/src/idex.js +22 -21
- package/dist/cjs/src/independentreserve.js +15 -14
- package/dist/cjs/src/indodax.js +30 -26
- package/dist/cjs/src/kraken.js +29 -27
- package/dist/cjs/src/krakenfutures.js +29 -22
- package/dist/cjs/src/kucoin.js +48 -43
- package/dist/cjs/src/kucoinfutures.js +33 -28
- package/dist/cjs/src/kuna.js +25 -24
- package/dist/cjs/src/latoken.js +24 -22
- package/dist/cjs/src/lbank.js +45 -30
- package/dist/cjs/src/luno.js +22 -19
- package/dist/cjs/src/lykke.js +19 -17
- package/dist/cjs/src/mercado.js +30 -19
- package/dist/cjs/src/mexc.js +60 -49
- package/dist/cjs/src/ndax.js +23 -22
- package/dist/cjs/src/novadax.js +23 -22
- package/dist/cjs/src/oceanex.js +22 -19
- package/dist/cjs/src/okcoin.js +29 -23
- package/dist/cjs/src/okx.js +92 -84
- package/dist/cjs/src/p2b.js +80 -83
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +63 -40
- package/dist/cjs/src/poloniex.js +22 -22
- package/dist/cjs/src/poloniexfutures.js +23 -19
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bingx.js +1 -1
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +7 -7
- package/dist/cjs/src/pro/bitmart.js +7 -5
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +6 -4
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +11 -7
- package/dist/cjs/src/pro/blockchaincom.js +8 -8
- package/dist/cjs/src/pro/bybit.js +7 -7
- package/dist/cjs/src/pro/cex.js +13 -9
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +11 -10
- package/dist/cjs/src/pro/coinex.js +7 -9
- package/dist/cjs/src/pro/cryptocom.js +9 -9
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +12 -14
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +263 -4
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +10 -10
- package/dist/cjs/src/pro/krakenfutures.js +41 -17
- package/dist/cjs/src/pro/kucoin.js +7 -7
- package/dist/cjs/src/pro/kucoinfutures.js +8 -6
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +12 -12
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +8 -8
- package/dist/cjs/src/pro/whitebit.js +12 -8
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +28 -23
- package/dist/cjs/src/tidex.js +16 -15
- package/dist/cjs/src/timex.js +19 -18
- package/dist/cjs/src/tokocrypto.js +27 -22
- package/dist/cjs/src/upbit.js +19 -19
- package/dist/cjs/src/wavesexchange.js +22 -19
- package/dist/cjs/src/wazirx.js +24 -17
- package/dist/cjs/src/whitebit.js +33 -27
- package/dist/cjs/src/woo.js +44 -34
- package/dist/cjs/src/yobit.js +25 -20
- package/dist/cjs/src/zaif.js +9 -9
- package/dist/cjs/src/zonda.js +18 -17
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitbank.d.ts +1 -0
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- package/js/src/abstract/htx.d.ts +3 -0
- package/js/src/abstract/huobi.d.ts +3 -0
- package/js/src/abstract/huobipro.d.ts +3 -0
- package/js/src/abstract/okex.d.ts +3 -1
- package/js/src/abstract/okex5.d.ts +3 -1
- package/js/src/abstract/okx.d.ts +3 -1
- package/js/src/ace.js +18 -14
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +35 -29
- package/js/src/base/Exchange.d.ts +37 -34
- package/js/src/base/Exchange.js +39 -26
- package/js/src/base/Precise.d.ts +4 -4
- package/js/src/base/Precise.js +1 -3
- package/js/src/base/functions/type.d.ts +25 -25
- package/js/src/base/types.d.ts +21 -14
- package/js/src/bigone.js +25 -21
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +97 -76
- package/js/src/bingx.js +63 -44
- package/js/src/bit2c.js +19 -16
- package/js/src/bitbank.js +17 -15
- package/js/src/bitbns.js +28 -18
- package/js/src/bitfinex.js +23 -21
- package/js/src/bitfinex2.js +32 -28
- package/js/src/bitflyer.js +28 -20
- package/js/src/bitforex.js +26 -19
- package/js/src/bitget.d.ts +25 -3
- package/js/src/bitget.js +184 -147
- package/js/src/bithumb.js +23 -16
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +129 -94
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitmex.js +104 -64
- package/js/src/bitopro.js +38 -26
- package/js/src/bitpanda.js +24 -23
- package/js/src/bitrue.js +33 -24
- package/js/src/bitso.js +24 -23
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bitstamp.js +24 -23
- package/js/src/bittrex.js +30 -29
- package/js/src/bitvavo.js +38 -30
- package/js/src/bl3p.js +11 -10
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +18 -17
- package/js/src/btcbox.js +13 -12
- package/js/src/btcmarkets.js +20 -19
- package/js/src/btcturk.js +14 -13
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +84 -54
- package/js/src/cex.js +16 -14
- package/js/src/coinbase.js +29 -27
- package/js/src/coinbasepro.js +27 -25
- package/js/src/coincheck.js +15 -14
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +101 -78
- package/js/src/coinlist.js +28 -27
- package/js/src/coinmate.js +21 -18
- package/js/src/coinone.js +21 -16
- package/js/src/coinsph.js +37 -28
- package/js/src/coinspot.js +12 -11
- package/js/src/cryptocom.d.ts +0 -23
- package/js/src/cryptocom.js +40 -202
- package/js/src/currencycom.js +32 -25
- package/js/src/delta.js +35 -29
- package/js/src/deribit.js +39 -36
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/digifinex.js +65 -45
- package/js/src/exmo.js +29 -27
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +67 -53
- package/js/src/gemini.js +23 -20
- package/js/src/hitbtc.d.ts +1 -0
- package/js/src/hitbtc.js +65 -56
- package/js/src/hollaex.js +30 -27
- package/js/src/htx.d.ts +11 -3
- package/js/src/htx.js +135 -143
- package/js/src/huobijp.js +23 -21
- package/js/src/idex.js +22 -21
- package/js/src/independentreserve.js +15 -14
- package/js/src/indodax.js +30 -26
- package/js/src/kraken.js +29 -27
- package/js/src/krakenfutures.js +29 -22
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +48 -43
- package/js/src/kucoinfutures.js +33 -28
- package/js/src/kuna.js +25 -24
- package/js/src/latoken.js +25 -23
- package/js/src/lbank.js +46 -31
- package/js/src/luno.js +22 -19
- package/js/src/lykke.js +19 -17
- package/js/src/mercado.js +30 -19
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +60 -49
- package/js/src/ndax.js +23 -22
- package/js/src/novadax.js +23 -22
- package/js/src/oceanex.js +22 -19
- package/js/src/okcoin.js +29 -23
- package/js/src/okx.d.ts +2 -2
- package/js/src/okx.js +92 -84
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +80 -82
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +63 -40
- package/js/src/poloniex.js +22 -22
- package/js/src/poloniexfutures.js +23 -19
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bingx.js +1 -1
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.d.ts +1 -1
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +7 -7
- package/js/src/pro/bitmart.js +7 -5
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +7 -5
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +12 -8
- package/js/src/pro/blockchaincom.js +8 -8
- package/js/src/pro/bybit.js +7 -7
- package/js/src/pro/cex.js +14 -10
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +12 -11
- package/js/src/pro/coinex.js +7 -9
- package/js/src/pro/cryptocom.js +9 -9
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +12 -14
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.d.ts +8 -1
- package/js/src/pro/hitbtc.js +264 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +10 -10
- package/js/src/pro/krakenfutures.d.ts +1 -0
- package/js/src/pro/krakenfutures.js +42 -18
- package/js/src/pro/kucoin.js +7 -7
- package/js/src/pro/kucoinfutures.js +8 -6
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.js +12 -12
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +8 -8
- package/js/src/pro/whitebit.js +13 -9
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +29 -24
- package/js/src/tidex.js +16 -15
- package/js/src/timex.js +19 -18
- package/js/src/tokocrypto.js +28 -23
- package/js/src/upbit.js +19 -19
- package/js/src/wavesexchange.js +23 -20
- package/js/src/wazirx.js +25 -18
- package/js/src/whitebit.js +33 -27
- package/js/src/woo.js +45 -35
- package/js/src/yobit.js +25 -20
- package/js/src/zaif.js +9 -9
- package/js/src/zonda.js +18 -17
- package/package.json +2 -2
- package/js/src/bitstamp1.d.ts +0 -28
- package/js/src/bitstamp1.js +0 -430
- package/js/src/lbank2.d.ts +0 -90
- package/js/src/lbank2.js +0 -2779
package/dist/cjs/src/bitopro.js
CHANGED
|
@@ -34,11 +34,11 @@ class bitopro extends bitopro$1 {
|
|
|
34
34
|
'createOrder': true,
|
|
35
35
|
'editOrder': false,
|
|
36
36
|
'fetchBalance': true,
|
|
37
|
-
'fetchBorrowRate': false,
|
|
38
37
|
'fetchBorrowRateHistories': false,
|
|
39
38
|
'fetchBorrowRateHistory': false,
|
|
40
|
-
'fetchBorrowRates': false,
|
|
41
39
|
'fetchClosedOrders': true,
|
|
40
|
+
'fetchCrossBorrowRate': false,
|
|
41
|
+
'fetchCrossBorrowRates': false,
|
|
42
42
|
'fetchCurrencies': true,
|
|
43
43
|
'fetchDepositAddress': false,
|
|
44
44
|
'fetchDeposits': true,
|
|
@@ -50,6 +50,8 @@ class bitopro extends bitopro$1 {
|
|
|
50
50
|
'fetchFundingRateHistory': false,
|
|
51
51
|
'fetchFundingRates': false,
|
|
52
52
|
'fetchIndexOHLCV': false,
|
|
53
|
+
'fetchIsolatedBorrowRate': false,
|
|
54
|
+
'fetchIsolatedBorrowRates': false,
|
|
53
55
|
'fetchMarginMode': false,
|
|
54
56
|
'fetchMarkets': true,
|
|
55
57
|
'fetchMarkOHLCV': false,
|
|
@@ -410,7 +412,7 @@ class bitopro extends bitopro$1 {
|
|
|
410
412
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
|
411
413
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
412
414
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
413
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
415
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
414
416
|
*/
|
|
415
417
|
await this.loadMarkets();
|
|
416
418
|
const market = this.market(symbol);
|
|
@@ -442,7 +444,7 @@ class bitopro extends bitopro$1 {
|
|
|
442
444
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_ticker_data.md
|
|
443
445
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
444
446
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
445
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
447
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
446
448
|
*/
|
|
447
449
|
await this.loadMarkets();
|
|
448
450
|
const response = await this.publicGetTickers();
|
|
@@ -473,7 +475,7 @@ class bitopro extends bitopro$1 {
|
|
|
473
475
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
474
476
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
475
477
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
476
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
478
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
477
479
|
*/
|
|
478
480
|
await this.loadMarkets();
|
|
479
481
|
const market = this.market(symbol);
|
|
@@ -605,7 +607,7 @@ class bitopro extends bitopro$1 {
|
|
|
605
607
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
606
608
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
607
609
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
608
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
610
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
609
611
|
*/
|
|
610
612
|
await this.loadMarkets();
|
|
611
613
|
const market = this.market(symbol);
|
|
@@ -635,7 +637,7 @@ class bitopro extends bitopro$1 {
|
|
|
635
637
|
* @description fetch the trading fees for multiple markets
|
|
636
638
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_limitations_and_fees.md
|
|
637
639
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
638
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
640
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
639
641
|
*/
|
|
640
642
|
await this.loadMarkets();
|
|
641
643
|
const response = await this.publicGetProvisioningLimitationsAndFees(params);
|
|
@@ -858,7 +860,7 @@ class bitopro extends bitopro$1 {
|
|
|
858
860
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
859
861
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_account_balance.md
|
|
860
862
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
861
|
-
* @returns {object} a [balance structure]{@link https://
|
|
863
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
862
864
|
*/
|
|
863
865
|
await this.loadMarkets();
|
|
864
866
|
const response = await this.privateGetAccountsBalance(params);
|
|
@@ -991,7 +993,7 @@ class bitopro extends bitopro$1 {
|
|
|
991
993
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
992
994
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
993
995
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
994
|
-
* @returns {object} an [order structure]{@link https://
|
|
996
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
995
997
|
*/
|
|
996
998
|
await this.loadMarkets();
|
|
997
999
|
const market = this.market(symbol);
|
|
@@ -1050,9 +1052,11 @@ class bitopro extends bitopro$1 {
|
|
|
1050
1052
|
* @param {string} id order id
|
|
1051
1053
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1052
1054
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1053
|
-
* @returns {object} An [order structure]{@link https://
|
|
1055
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1054
1056
|
*/
|
|
1055
|
-
|
|
1057
|
+
if (symbol === undefined) {
|
|
1058
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1059
|
+
}
|
|
1056
1060
|
await this.loadMarkets();
|
|
1057
1061
|
const market = this.market(symbol);
|
|
1058
1062
|
const request = {
|
|
@@ -1080,9 +1084,11 @@ class bitopro extends bitopro$1 {
|
|
|
1080
1084
|
* @param {string[]} ids order ids
|
|
1081
1085
|
* @param {string} symbol unified market symbol
|
|
1082
1086
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1083
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1087
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1084
1088
|
*/
|
|
1085
|
-
|
|
1089
|
+
if (symbol === undefined) {
|
|
1090
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelOrders() requires a symbol argument');
|
|
1091
|
+
}
|
|
1086
1092
|
await this.loadMarkets();
|
|
1087
1093
|
const market = this.market(symbol);
|
|
1088
1094
|
const id = market['uppercaseId'];
|
|
@@ -1109,7 +1115,7 @@ class bitopro extends bitopro$1 {
|
|
|
1109
1115
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/cancel_all_orders.md
|
|
1110
1116
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1111
1117
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1112
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1118
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1113
1119
|
*/
|
|
1114
1120
|
await this.loadMarkets();
|
|
1115
1121
|
const request = {
|
|
@@ -1145,9 +1151,11 @@ class bitopro extends bitopro$1 {
|
|
|
1145
1151
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
|
|
1146
1152
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1147
1153
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1148
|
-
* @returns {object} An [order structure]{@link https://
|
|
1154
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1149
1155
|
*/
|
|
1150
|
-
|
|
1156
|
+
if (symbol === undefined) {
|
|
1157
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1158
|
+
}
|
|
1151
1159
|
await this.loadMarkets();
|
|
1152
1160
|
const market = this.market(symbol);
|
|
1153
1161
|
const request = {
|
|
@@ -1190,9 +1198,11 @@ class bitopro extends bitopro$1 {
|
|
|
1190
1198
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1191
1199
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1192
1200
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1193
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1201
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1194
1202
|
*/
|
|
1195
|
-
|
|
1203
|
+
if (symbol === undefined) {
|
|
1204
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1205
|
+
}
|
|
1196
1206
|
await this.loadMarkets();
|
|
1197
1207
|
const market = this.market(symbol);
|
|
1198
1208
|
const request = {
|
|
@@ -1257,7 +1267,7 @@ class bitopro extends bitopro$1 {
|
|
|
1257
1267
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1258
1268
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1259
1269
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1260
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1270
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1261
1271
|
*/
|
|
1262
1272
|
const request = {
|
|
1263
1273
|
'statusKind': 'DONE',
|
|
@@ -1274,9 +1284,11 @@ class bitopro extends bitopro$1 {
|
|
|
1274
1284
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1275
1285
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1276
1286
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1277
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1287
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1278
1288
|
*/
|
|
1279
|
-
|
|
1289
|
+
if (symbol === undefined) {
|
|
1290
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1291
|
+
}
|
|
1280
1292
|
await this.loadMarkets();
|
|
1281
1293
|
const market = this.market(symbol);
|
|
1282
1294
|
const request = {
|
|
@@ -1411,7 +1423,7 @@ class bitopro extends bitopro$1 {
|
|
|
1411
1423
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1412
1424
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1413
1425
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1414
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1426
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1415
1427
|
*/
|
|
1416
1428
|
if (code === undefined) {
|
|
1417
1429
|
throw new errors.ArgumentsRequired(this.id + ' fetchDeposits() requires the code argument');
|
|
@@ -1463,7 +1475,7 @@ class bitopro extends bitopro$1 {
|
|
|
1463
1475
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1464
1476
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1465
1477
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1466
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1478
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1467
1479
|
*/
|
|
1468
1480
|
if (code === undefined) {
|
|
1469
1481
|
throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawals() requires the code argument');
|
|
@@ -1513,7 +1525,7 @@ class bitopro extends bitopro$1 {
|
|
|
1513
1525
|
* @param {string} id withdrawal id
|
|
1514
1526
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
1515
1527
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1516
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1528
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1517
1529
|
*/
|
|
1518
1530
|
if (code === undefined) {
|
|
1519
1531
|
throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawal() requires the code argument');
|
|
@@ -1555,7 +1567,7 @@ class bitopro extends bitopro$1 {
|
|
|
1555
1567
|
* @param {string} address the address to withdraw to
|
|
1556
1568
|
* @param {string} tag
|
|
1557
1569
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1558
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1570
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1559
1571
|
*/
|
|
1560
1572
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1561
1573
|
await this.loadMarkets();
|
|
@@ -1628,7 +1640,7 @@ class bitopro extends bitopro$1 {
|
|
|
1628
1640
|
* @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/public/get_currency_info.md
|
|
1629
1641
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1630
1642
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
1631
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1643
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1632
1644
|
*/
|
|
1633
1645
|
await this.loadMarkets();
|
|
1634
1646
|
const response = await this.publicGetProvisioningCurrencies(params);
|
package/dist/cjs/src/bitpanda.js
CHANGED
|
@@ -40,12 +40,11 @@ class bitpanda extends bitpanda$1 {
|
|
|
40
40
|
'createStopOrder': true,
|
|
41
41
|
'fetchAccounts': false,
|
|
42
42
|
'fetchBalance': true,
|
|
43
|
-
'fetchBorrowRate': false,
|
|
44
43
|
'fetchBorrowRateHistories': false,
|
|
45
44
|
'fetchBorrowRateHistory': false,
|
|
46
|
-
'fetchBorrowRates': false,
|
|
47
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
48
45
|
'fetchClosedOrders': true,
|
|
46
|
+
'fetchCrossBorrowRate': false,
|
|
47
|
+
'fetchCrossBorrowRates': false,
|
|
49
48
|
'fetchCurrencies': true,
|
|
50
49
|
'fetchDeposit': false,
|
|
51
50
|
'fetchDepositAddress': true,
|
|
@@ -57,6 +56,8 @@ class bitpanda extends bitpanda$1 {
|
|
|
57
56
|
'fetchFundingRateHistory': false,
|
|
58
57
|
'fetchFundingRates': false,
|
|
59
58
|
'fetchIndexOHLCV': false,
|
|
59
|
+
'fetchIsolatedBorrowRate': false,
|
|
60
|
+
'fetchIsolatedBorrowRates': false,
|
|
60
61
|
'fetchLedger': false,
|
|
61
62
|
'fetchLeverage': false,
|
|
62
63
|
'fetchMarginMode': false,
|
|
@@ -440,7 +441,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
440
441
|
* @name bitpanda#fetchTradingFees
|
|
441
442
|
* @description fetch the trading fees for multiple markets
|
|
442
443
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
443
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
444
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
444
445
|
*/
|
|
445
446
|
let method = this.safeString(params, 'method');
|
|
446
447
|
params = this.omit(params, 'method');
|
|
@@ -614,7 +615,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
614
615
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
615
616
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
616
617
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
617
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
618
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
618
619
|
*/
|
|
619
620
|
await this.loadMarkets();
|
|
620
621
|
const market = this.market(symbol);
|
|
@@ -649,7 +650,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
649
650
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
650
651
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
651
652
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
652
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
653
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
653
654
|
*/
|
|
654
655
|
await this.loadMarkets();
|
|
655
656
|
symbols = this.marketSymbols(symbols);
|
|
@@ -690,7 +691,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
690
691
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
691
692
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
692
693
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
693
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
694
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
694
695
|
*/
|
|
695
696
|
await this.loadMarkets();
|
|
696
697
|
const market = this.market(symbol);
|
|
@@ -944,7 +945,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
944
945
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
945
946
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
946
947
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
947
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
948
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
948
949
|
*/
|
|
949
950
|
await this.loadMarkets();
|
|
950
951
|
const market = this.market(symbol);
|
|
@@ -996,7 +997,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
996
997
|
* @name bitpanda#fetchBalance
|
|
997
998
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
998
999
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
999
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1000
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1000
1001
|
*/
|
|
1001
1002
|
await this.loadMarkets();
|
|
1002
1003
|
const response = await this.privateGetAccountBalances(params);
|
|
@@ -1041,7 +1042,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1041
1042
|
* @description create a currency deposit address
|
|
1042
1043
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1043
1044
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1044
|
-
* @returns {object} an [address structure]{@link https://
|
|
1045
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1045
1046
|
*/
|
|
1046
1047
|
await this.loadMarkets();
|
|
1047
1048
|
const currency = this.currency(code);
|
|
@@ -1066,7 +1067,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1066
1067
|
* @description fetch the deposit address for a currency associated with this account
|
|
1067
1068
|
* @param {string} code unified currency code
|
|
1068
1069
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1069
|
-
* @returns {object} an [address structure]{@link https://
|
|
1070
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1070
1071
|
*/
|
|
1071
1072
|
await this.loadMarkets();
|
|
1072
1073
|
const currency = this.currency(code);
|
|
@@ -1094,7 +1095,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1094
1095
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1095
1096
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1096
1097
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1097
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1098
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1098
1099
|
*/
|
|
1099
1100
|
await this.loadMarkets();
|
|
1100
1101
|
const request = {
|
|
@@ -1158,7 +1159,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1158
1159
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1159
1160
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1160
1161
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1161
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1162
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1162
1163
|
*/
|
|
1163
1164
|
await this.loadMarkets();
|
|
1164
1165
|
const request = {
|
|
@@ -1224,7 +1225,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1224
1225
|
* @param {string} address the address to withdraw to
|
|
1225
1226
|
* @param {string} tag
|
|
1226
1227
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1227
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1228
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1228
1229
|
*/
|
|
1229
1230
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1230
1231
|
this.checkAddress(address);
|
|
@@ -1498,7 +1499,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1498
1499
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1499
1500
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1500
1501
|
* @param {float} [params.triggerPrice] bitpanda only does stop limit orders and does not do stop market
|
|
1501
|
-
* @returns {object} an [order structure]{@link https://
|
|
1502
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1502
1503
|
*/
|
|
1503
1504
|
await this.loadMarkets();
|
|
1504
1505
|
const market = this.market(symbol);
|
|
@@ -1565,7 +1566,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1565
1566
|
* @param {string} id order id
|
|
1566
1567
|
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
1567
1568
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1568
|
-
* @returns {object} An [order structure]{@link https://
|
|
1569
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1569
1570
|
*/
|
|
1570
1571
|
await this.loadMarkets();
|
|
1571
1572
|
const clientOrderId = this.safeString2(params, 'clientOrderId', 'client_id');
|
|
@@ -1592,7 +1593,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1592
1593
|
* @description cancel all open orders
|
|
1593
1594
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1594
1595
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1595
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1596
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1596
1597
|
*/
|
|
1597
1598
|
await this.loadMarkets();
|
|
1598
1599
|
const request = {};
|
|
@@ -1616,7 +1617,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1616
1617
|
* @param {string[]} ids order ids
|
|
1617
1618
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1618
1619
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1619
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1620
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1620
1621
|
*/
|
|
1621
1622
|
await this.loadMarkets();
|
|
1622
1623
|
const request = {
|
|
@@ -1637,7 +1638,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1637
1638
|
* @description fetches information on an order made by the user
|
|
1638
1639
|
* @param {string} symbol not used by bitpanda fetchOrder
|
|
1639
1640
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1640
|
-
* @returns {object} An [order structure]{@link https://
|
|
1641
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1641
1642
|
*/
|
|
1642
1643
|
await this.loadMarkets();
|
|
1643
1644
|
const request = {
|
|
@@ -1696,7 +1697,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1696
1697
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1697
1698
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1698
1699
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1699
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1700
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1700
1701
|
*/
|
|
1701
1702
|
await this.loadMarkets();
|
|
1702
1703
|
const request = {
|
|
@@ -1816,7 +1817,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1816
1817
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1817
1818
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1818
1819
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1819
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1820
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1820
1821
|
*/
|
|
1821
1822
|
const request = {
|
|
1822
1823
|
'with_cancelled_and_rejected': true, // default is false, orders which have been cancelled by the user before being filled or rejected by the system as invalid, additionally, all inactive filled orders which would return with "with_just_filled_inactive"
|
|
@@ -1833,7 +1834,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1833
1834
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1834
1835
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1835
1836
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1836
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1837
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1837
1838
|
*/
|
|
1838
1839
|
await this.loadMarkets();
|
|
1839
1840
|
const request = {
|
|
@@ -1891,7 +1892,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
1891
1892
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1892
1893
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1893
1894
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
1894
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1895
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1895
1896
|
*/
|
|
1896
1897
|
await this.loadMarkets();
|
|
1897
1898
|
const request = {
|
package/dist/cjs/src/bitrue.js
CHANGED
|
@@ -38,18 +38,19 @@ class bitrue extends bitrue$1 {
|
|
|
38
38
|
'createStopOrder': true,
|
|
39
39
|
'fetchBalance': true,
|
|
40
40
|
'fetchBidsAsks': true,
|
|
41
|
-
'fetchBorrowRate': false,
|
|
42
41
|
'fetchBorrowRateHistories': false,
|
|
43
42
|
'fetchBorrowRateHistory': false,
|
|
44
|
-
'fetchBorrowRates': false,
|
|
45
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
46
43
|
'fetchClosedOrders': true,
|
|
44
|
+
'fetchCrossBorrowRate': false,
|
|
45
|
+
'fetchCrossBorrowRates': false,
|
|
47
46
|
'fetchCurrencies': true,
|
|
48
47
|
'fetchDepositAddress': false,
|
|
49
48
|
'fetchDeposits': true,
|
|
50
49
|
'fetchDepositsWithdrawals': false,
|
|
51
50
|
'fetchDepositWithdrawFee': 'emulated',
|
|
52
51
|
'fetchDepositWithdrawFees': true,
|
|
52
|
+
'fetchIsolatedBorrowRate': false,
|
|
53
|
+
'fetchIsolatedBorrowRates': false,
|
|
53
54
|
'fetchMarginMode': false,
|
|
54
55
|
'fetchMarkets': true,
|
|
55
56
|
'fetchMyTrades': true,
|
|
@@ -347,7 +348,7 @@ class bitrue extends bitrue$1 {
|
|
|
347
348
|
* @name bitrue#fetchStatus
|
|
348
349
|
* @description the latest known information on the availability of the exchange API
|
|
349
350
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
350
|
-
* @returns {object} a [status structure]{@link https://
|
|
351
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
351
352
|
*/
|
|
352
353
|
const response = await this.v1PublicGetPing(params);
|
|
353
354
|
//
|
|
@@ -729,7 +730,7 @@ class bitrue extends bitrue$1 {
|
|
|
729
730
|
* @name bitrue#fetchBalance
|
|
730
731
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
731
732
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
732
|
-
* @returns {object} a [balance structure]{@link https://
|
|
733
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
733
734
|
*/
|
|
734
735
|
await this.loadMarkets();
|
|
735
736
|
const response = await this.v1PrivateGetAccount(params);
|
|
@@ -760,7 +761,7 @@ class bitrue extends bitrue$1 {
|
|
|
760
761
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
761
762
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
762
763
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
763
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
764
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
764
765
|
*/
|
|
765
766
|
await this.loadMarkets();
|
|
766
767
|
const market = this.market(symbol);
|
|
@@ -849,7 +850,7 @@ class bitrue extends bitrue$1 {
|
|
|
849
850
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
850
851
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
851
852
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
852
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
853
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
853
854
|
*/
|
|
854
855
|
await this.loadMarkets();
|
|
855
856
|
const market = this.market(symbol);
|
|
@@ -959,7 +960,7 @@ class bitrue extends bitrue$1 {
|
|
|
959
960
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#symbol-order-book-ticker
|
|
960
961
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
961
962
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
962
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
963
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
963
964
|
*/
|
|
964
965
|
await this.loadMarkets();
|
|
965
966
|
symbols = this.marketSymbols(symbols);
|
|
@@ -989,7 +990,7 @@ class bitrue extends bitrue$1 {
|
|
|
989
990
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
990
991
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
991
992
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
992
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
993
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
993
994
|
*/
|
|
994
995
|
await this.loadMarkets();
|
|
995
996
|
const request = {
|
|
@@ -1127,7 +1128,7 @@ class bitrue extends bitrue$1 {
|
|
|
1127
1128
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1128
1129
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1129
1130
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1130
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1131
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1131
1132
|
*/
|
|
1132
1133
|
await this.loadMarkets();
|
|
1133
1134
|
const market = this.market(symbol);
|
|
@@ -1308,7 +1309,7 @@ class bitrue extends bitrue$1 {
|
|
|
1308
1309
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1309
1310
|
* @param {decimal} [params.icebergQty]
|
|
1310
1311
|
* @param {long} [params.recvWindow]
|
|
1311
|
-
* @returns {object} an [order structure]{@link https://
|
|
1312
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1312
1313
|
*/
|
|
1313
1314
|
await this.loadMarkets();
|
|
1314
1315
|
const market = this.market(symbol);
|
|
@@ -1362,9 +1363,11 @@ class bitrue extends bitrue$1 {
|
|
|
1362
1363
|
* @description fetches information on an order made by the user
|
|
1363
1364
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1364
1365
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1365
|
-
* @returns {object} An [order structure]{@link https://
|
|
1366
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1366
1367
|
*/
|
|
1367
|
-
|
|
1368
|
+
if (symbol === undefined) {
|
|
1369
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1370
|
+
}
|
|
1368
1371
|
await this.loadMarkets();
|
|
1369
1372
|
const market = this.market(symbol);
|
|
1370
1373
|
const request = {
|
|
@@ -1390,9 +1393,11 @@ class bitrue extends bitrue$1 {
|
|
|
1390
1393
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1391
1394
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1392
1395
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1393
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1396
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1394
1397
|
*/
|
|
1395
|
-
|
|
1398
|
+
if (symbol === undefined) {
|
|
1399
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
1400
|
+
}
|
|
1396
1401
|
await this.loadMarkets();
|
|
1397
1402
|
const market = this.market(symbol);
|
|
1398
1403
|
const request = {
|
|
@@ -1442,9 +1447,11 @@ class bitrue extends bitrue$1 {
|
|
|
1442
1447
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1443
1448
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1444
1449
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1445
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1450
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1446
1451
|
*/
|
|
1447
|
-
|
|
1452
|
+
if (symbol === undefined) {
|
|
1453
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
1454
|
+
}
|
|
1448
1455
|
await this.loadMarkets();
|
|
1449
1456
|
const market = this.market(symbol);
|
|
1450
1457
|
const request = {
|
|
@@ -1483,9 +1490,11 @@ class bitrue extends bitrue$1 {
|
|
|
1483
1490
|
* @param {string} id order id
|
|
1484
1491
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1485
1492
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1486
|
-
* @returns {object} An [order structure]{@link https://
|
|
1493
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1487
1494
|
*/
|
|
1488
|
-
|
|
1495
|
+
if (symbol === undefined) {
|
|
1496
|
+
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
1497
|
+
}
|
|
1489
1498
|
await this.loadMarkets();
|
|
1490
1499
|
const market = this.market(symbol);
|
|
1491
1500
|
const origClientOrderId = this.safeValue2(params, 'origClientOrderId', 'clientOrderId');
|
|
@@ -1522,7 +1531,7 @@ class bitrue extends bitrue$1 {
|
|
|
1522
1531
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1523
1532
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1524
1533
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1525
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1534
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1526
1535
|
*/
|
|
1527
1536
|
const method = this.safeString(this.options, 'fetchMyTradesMethod', 'v2PrivateGetMyTrades');
|
|
1528
1537
|
if ((symbol === undefined) && (method === 'v2PrivateGetMyTrades')) {
|
|
@@ -1577,7 +1586,7 @@ class bitrue extends bitrue$1 {
|
|
|
1577
1586
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1578
1587
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1579
1588
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1580
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1589
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1581
1590
|
*/
|
|
1582
1591
|
if (code === undefined) {
|
|
1583
1592
|
throw new errors.ArgumentsRequired(this.id + ' fetchDeposits() requires a code argument');
|
|
@@ -1648,7 +1657,7 @@ class bitrue extends bitrue$1 {
|
|
|
1648
1657
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1649
1658
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1650
1659
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1651
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1660
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1652
1661
|
*/
|
|
1653
1662
|
if (code === undefined) {
|
|
1654
1663
|
throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawals() requires a code argument');
|
|
@@ -1839,7 +1848,7 @@ class bitrue extends bitrue$1 {
|
|
|
1839
1848
|
* @param {string} address the address to withdraw to
|
|
1840
1849
|
* @param {string} tag
|
|
1841
1850
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1842
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1851
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1843
1852
|
*/
|
|
1844
1853
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1845
1854
|
this.checkAddress(address);
|
|
@@ -1938,7 +1947,7 @@ class bitrue extends bitrue$1 {
|
|
|
1938
1947
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#exchangeInfo_endpoint
|
|
1939
1948
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1940
1949
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
1941
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
1950
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1942
1951
|
*/
|
|
1943
1952
|
await this.loadMarkets();
|
|
1944
1953
|
const response = await this.v1PublicGetExchangeInfo(params);
|