ccxt 4.1.56 → 4.1.58
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/README.md +3 -3
- package/build.sh +30 -18
- package/dist/ccxt.browser.js +3893 -3214
- package/dist/ccxt.browser.min.js +10 -10
- 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/base/ws/Client.js +1 -1
- 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 +16 -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 +110 -89
- 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 +100 -77
- 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 +132 -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 +87 -82
- package/dist/cjs/src/p2b.js +79 -82
- 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 +15 -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/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- 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/base/ws/Client.js +1 -1
- 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 +16 -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 +110 -89
- 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 +100 -77
- 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 +132 -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 +87 -82
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +79 -81
- 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 +15 -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 +1 -1
package/dist/cjs/src/bitso.js
CHANGED
|
@@ -36,11 +36,10 @@ class bitso extends bitso$1 {
|
|
|
36
36
|
'createReduceOnlyOrder': false,
|
|
37
37
|
'fetchAccounts': false,
|
|
38
38
|
'fetchBalance': true,
|
|
39
|
-
'fetchBorrowRate': false,
|
|
40
39
|
'fetchBorrowRateHistories': false,
|
|
41
40
|
'fetchBorrowRateHistory': false,
|
|
42
|
-
'
|
|
43
|
-
'
|
|
41
|
+
'fetchCrossBorrowRate': false,
|
|
42
|
+
'fetchCrossBorrowRates': false,
|
|
44
43
|
'fetchDeposit': true,
|
|
45
44
|
'fetchDepositAddress': true,
|
|
46
45
|
'fetchDepositAddresses': false,
|
|
@@ -53,6 +52,8 @@ class bitso extends bitso$1 {
|
|
|
53
52
|
'fetchFundingRateHistory': false,
|
|
54
53
|
'fetchFundingRates': false,
|
|
55
54
|
'fetchIndexOHLCV': false,
|
|
55
|
+
'fetchIsolatedBorrowRate': false,
|
|
56
|
+
'fetchIsolatedBorrowRates': false,
|
|
56
57
|
'fetchLedger': true,
|
|
57
58
|
'fetchLeverage': false,
|
|
58
59
|
'fetchMarginMode': false,
|
|
@@ -187,7 +188,7 @@ class bitso extends bitso$1 {
|
|
|
187
188
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
188
189
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
189
190
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
190
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
191
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
191
192
|
*/
|
|
192
193
|
const request = {};
|
|
193
194
|
if (limit !== undefined) {
|
|
@@ -500,7 +501,7 @@ class bitso extends bitso$1 {
|
|
|
500
501
|
* @name bitso#fetchBalance
|
|
501
502
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
502
503
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
503
|
-
* @returns {object} a [balance structure]{@link https://
|
|
504
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
504
505
|
*/
|
|
505
506
|
await this.loadMarkets();
|
|
506
507
|
const response = await this.privateGetBalance(params);
|
|
@@ -539,7 +540,7 @@ class bitso extends bitso$1 {
|
|
|
539
540
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
540
541
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
541
542
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
542
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
543
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
543
544
|
*/
|
|
544
545
|
await this.loadMarkets();
|
|
545
546
|
const market = this.market(symbol);
|
|
@@ -602,7 +603,7 @@ class bitso extends bitso$1 {
|
|
|
602
603
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
603
604
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
604
605
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
605
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
606
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
606
607
|
*/
|
|
607
608
|
await this.loadMarkets();
|
|
608
609
|
const market = this.market(symbol);
|
|
@@ -824,7 +825,7 @@ class bitso extends bitso$1 {
|
|
|
824
825
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
825
826
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
826
827
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
827
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
828
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
828
829
|
*/
|
|
829
830
|
await this.loadMarkets();
|
|
830
831
|
const market = this.market(symbol);
|
|
@@ -840,7 +841,7 @@ class bitso extends bitso$1 {
|
|
|
840
841
|
* @name bitso#fetchTradingFees
|
|
841
842
|
* @description fetch the trading fees for multiple markets
|
|
842
843
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
843
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
844
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
844
845
|
*/
|
|
845
846
|
await this.loadMarkets();
|
|
846
847
|
const response = await this.privateGetFees(params);
|
|
@@ -914,7 +915,7 @@ class bitso extends bitso$1 {
|
|
|
914
915
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
915
916
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
916
917
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
917
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
918
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
918
919
|
*/
|
|
919
920
|
await this.loadMarkets();
|
|
920
921
|
const market = this.market(symbol);
|
|
@@ -953,7 +954,7 @@ class bitso extends bitso$1 {
|
|
|
953
954
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
954
955
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
955
956
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
956
|
-
* @returns {object} an [order structure]{@link https://
|
|
957
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
957
958
|
*/
|
|
958
959
|
await this.loadMarkets();
|
|
959
960
|
const market = this.market(symbol);
|
|
@@ -981,7 +982,7 @@ class bitso extends bitso$1 {
|
|
|
981
982
|
* @param {string} id order id
|
|
982
983
|
* @param {string} symbol not used by bitso cancelOrder ()
|
|
983
984
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
984
|
-
* @returns {object} An [order structure]{@link https://
|
|
985
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
985
986
|
*/
|
|
986
987
|
await this.loadMarkets();
|
|
987
988
|
const request = {
|
|
@@ -997,7 +998,7 @@ class bitso extends bitso$1 {
|
|
|
997
998
|
* @param {string[]} ids order ids
|
|
998
999
|
* @param {string} symbol unified market symbol
|
|
999
1000
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1000
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1001
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1001
1002
|
*/
|
|
1002
1003
|
if (!Array.isArray(ids)) {
|
|
1003
1004
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrders() ids argument should be an array');
|
|
@@ -1032,7 +1033,7 @@ class bitso extends bitso$1 {
|
|
|
1032
1033
|
* @description cancel all open orders
|
|
1033
1034
|
* @param {undefined} symbol bitso does not support canceling orders for only a specific market
|
|
1034
1035
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1035
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1036
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1036
1037
|
*/
|
|
1037
1038
|
if (symbol !== undefined) {
|
|
1038
1039
|
throw new errors.NotSupported(this.id + ' cancelAllOrders() deletes all orders for user, it does not support filtering by symbol.');
|
|
@@ -1118,7 +1119,7 @@ class bitso extends bitso$1 {
|
|
|
1118
1119
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1119
1120
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1120
1121
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1121
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1122
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1122
1123
|
*/
|
|
1123
1124
|
await this.loadMarkets();
|
|
1124
1125
|
const market = this.market(symbol);
|
|
@@ -1154,7 +1155,7 @@ class bitso extends bitso$1 {
|
|
|
1154
1155
|
* @description fetches information on an order made by the user
|
|
1155
1156
|
* @param {string} symbol not used by bitso fetchOrder
|
|
1156
1157
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1157
|
-
* @returns {object} An [order structure]{@link https://
|
|
1158
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1158
1159
|
*/
|
|
1159
1160
|
await this.loadMarkets();
|
|
1160
1161
|
const response = await this.privateGetOrdersOid({
|
|
@@ -1179,7 +1180,7 @@ class bitso extends bitso$1 {
|
|
|
1179
1180
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1180
1181
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1181
1182
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1182
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1183
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1183
1184
|
*/
|
|
1184
1185
|
await this.loadMarkets();
|
|
1185
1186
|
const market = this.market(symbol);
|
|
@@ -1197,7 +1198,7 @@ class bitso extends bitso$1 {
|
|
|
1197
1198
|
* @param {string} id deposit id
|
|
1198
1199
|
* @param {string} code bitso does not support filtering by currency code and will ignore this argument
|
|
1199
1200
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1200
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1201
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1201
1202
|
*/
|
|
1202
1203
|
await this.loadMarkets();
|
|
1203
1204
|
const request = {
|
|
@@ -1240,7 +1241,7 @@ class bitso extends bitso$1 {
|
|
|
1240
1241
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1241
1242
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1242
1243
|
* @param {object} [params] extra parameters specific to the exmo api endpoint
|
|
1243
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1244
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1244
1245
|
*/
|
|
1245
1246
|
await this.loadMarkets();
|
|
1246
1247
|
let currency = undefined;
|
|
@@ -1281,7 +1282,7 @@ class bitso extends bitso$1 {
|
|
|
1281
1282
|
* @description fetch the deposit address for a currency associated with this account
|
|
1282
1283
|
* @param {string} code unified currency code
|
|
1283
1284
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1284
|
-
* @returns {object} an [address structure]{@link https://
|
|
1285
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1285
1286
|
*/
|
|
1286
1287
|
await this.loadMarkets();
|
|
1287
1288
|
const currency = this.currency(code);
|
|
@@ -1314,7 +1315,7 @@ class bitso extends bitso$1 {
|
|
|
1314
1315
|
* @see https://bitso.com/api_info#fees
|
|
1315
1316
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1316
1317
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1317
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1318
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1318
1319
|
*/
|
|
1319
1320
|
await this.loadMarkets();
|
|
1320
1321
|
const response = await this.privateGetFees(params);
|
|
@@ -1407,7 +1408,7 @@ class bitso extends bitso$1 {
|
|
|
1407
1408
|
* @see https://bitso.com/api_info#fees
|
|
1408
1409
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1409
1410
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1410
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1411
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1411
1412
|
*/
|
|
1412
1413
|
await this.loadMarkets();
|
|
1413
1414
|
const response = await this.privateGetFees(params);
|
|
@@ -1546,7 +1547,7 @@ class bitso extends bitso$1 {
|
|
|
1546
1547
|
* @param {string} address the address to withdraw to
|
|
1547
1548
|
* @param {string} tag
|
|
1548
1549
|
* @param {object} [params] extra parameters specific to the bitso api endpoint
|
|
1549
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1550
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1550
1551
|
*/
|
|
1551
1552
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1552
1553
|
this.checkAddress(address);
|
package/dist/cjs/src/bitstamp.js
CHANGED
|
@@ -39,11 +39,10 @@ class bitstamp extends bitstamp$1 {
|
|
|
39
39
|
'createStopMarketOrder': false,
|
|
40
40
|
'createStopOrder': false,
|
|
41
41
|
'fetchBalance': true,
|
|
42
|
-
'fetchBorrowRate': false,
|
|
43
42
|
'fetchBorrowRateHistories': false,
|
|
44
43
|
'fetchBorrowRateHistory': false,
|
|
45
|
-
'
|
|
46
|
-
'
|
|
44
|
+
'fetchCrossBorrowRate': false,
|
|
45
|
+
'fetchCrossBorrowRates': false,
|
|
47
46
|
'fetchCurrencies': true,
|
|
48
47
|
'fetchDepositAddress': true,
|
|
49
48
|
'fetchDepositsWithdrawals': true,
|
|
@@ -54,6 +53,8 @@ class bitstamp extends bitstamp$1 {
|
|
|
54
53
|
'fetchFundingRateHistory': false,
|
|
55
54
|
'fetchFundingRates': false,
|
|
56
55
|
'fetchIndexOHLCV': false,
|
|
56
|
+
'fetchIsolatedBorrowRate': false,
|
|
57
|
+
'fetchIsolatedBorrowRates': false,
|
|
57
58
|
'fetchLedger': true,
|
|
58
59
|
'fetchLeverage': false,
|
|
59
60
|
'fetchMarginMode': false,
|
|
@@ -634,7 +635,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
634
635
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
635
636
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
636
637
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
637
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
638
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
638
639
|
*/
|
|
639
640
|
await this.loadMarkets();
|
|
640
641
|
const market = this.market(symbol);
|
|
@@ -718,7 +719,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
718
719
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
719
720
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
720
721
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
721
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
722
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
722
723
|
*/
|
|
723
724
|
await this.loadMarkets();
|
|
724
725
|
const market = this.market(symbol);
|
|
@@ -751,7 +752,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
751
752
|
* @see https://www.bitstamp.net/api/#all-tickers
|
|
752
753
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
753
754
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
754
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
755
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
755
756
|
*/
|
|
756
757
|
await this.loadMarkets();
|
|
757
758
|
const response = await this.publicGetTicker(params);
|
|
@@ -982,7 +983,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
982
983
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
983
984
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
984
985
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
985
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
986
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
986
987
|
*/
|
|
987
988
|
await this.loadMarkets();
|
|
988
989
|
const market = this.market(symbol);
|
|
@@ -1112,7 +1113,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1112
1113
|
* @name bitstamp#fetchBalance
|
|
1113
1114
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1114
1115
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1115
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1116
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1116
1117
|
*/
|
|
1117
1118
|
await this.loadMarkets();
|
|
1118
1119
|
const response = await this.privatePostBalance(params);
|
|
@@ -1143,7 +1144,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1143
1144
|
* @description fetch the trading fees for a market
|
|
1144
1145
|
* @param {string} symbol unified market symbol
|
|
1145
1146
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1146
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1147
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1147
1148
|
*/
|
|
1148
1149
|
await this.loadMarkets();
|
|
1149
1150
|
const market = this.market(symbol);
|
|
@@ -1182,7 +1183,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1182
1183
|
* @name bitstamp#fetchTradingFees
|
|
1183
1184
|
* @description fetch the trading fees for multiple markets
|
|
1184
1185
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1185
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1186
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1186
1187
|
*/
|
|
1187
1188
|
await this.loadMarkets();
|
|
1188
1189
|
const response = await this.privatePostBalance(params);
|
|
@@ -1197,7 +1198,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1197
1198
|
* @see https://www.bitstamp.net/api/#balance
|
|
1198
1199
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1199
1200
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1200
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1201
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1201
1202
|
*/
|
|
1202
1203
|
await this.loadMarkets();
|
|
1203
1204
|
const balance = await this.privatePostBalance(params);
|
|
@@ -1259,7 +1260,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1259
1260
|
* @see https://www.bitstamp.net/api/#balance
|
|
1260
1261
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1261
1262
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1262
|
-
* @returns {object[]} a list of [fee structures]{@link https://
|
|
1263
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1263
1264
|
*/
|
|
1264
1265
|
await this.loadMarkets();
|
|
1265
1266
|
const response = await this.privatePostBalance(params);
|
|
@@ -1334,7 +1335,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1334
1335
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1335
1336
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1336
1337
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1337
|
-
* @returns {object} an [order structure]{@link https://
|
|
1338
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1338
1339
|
*/
|
|
1339
1340
|
await this.loadMarkets();
|
|
1340
1341
|
const market = this.market(symbol);
|
|
@@ -1371,7 +1372,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1371
1372
|
* @param {string} id order id
|
|
1372
1373
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1373
1374
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1374
|
-
* @returns {object} An [order structure]{@link https://
|
|
1375
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1375
1376
|
*/
|
|
1376
1377
|
await this.loadMarkets();
|
|
1377
1378
|
const request = {
|
|
@@ -1386,7 +1387,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1386
1387
|
* @description cancel all open orders
|
|
1387
1388
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1388
1389
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1389
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1390
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1390
1391
|
*/
|
|
1391
1392
|
await this.loadMarkets();
|
|
1392
1393
|
let market = undefined;
|
|
@@ -1429,7 +1430,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1429
1430
|
* @description fetches information on an order made by the user
|
|
1430
1431
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1431
1432
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1432
|
-
* @returns {object} An [order structure]{@link https://
|
|
1433
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1433
1434
|
*/
|
|
1434
1435
|
await this.loadMarkets();
|
|
1435
1436
|
let market = undefined;
|
|
@@ -1475,7 +1476,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1475
1476
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1476
1477
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1477
1478
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1478
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1479
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1479
1480
|
*/
|
|
1480
1481
|
await this.loadMarkets();
|
|
1481
1482
|
const request = {};
|
|
@@ -1502,7 +1503,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1502
1503
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1503
1504
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1504
1505
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1505
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1506
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1506
1507
|
*/
|
|
1507
1508
|
await this.loadMarkets();
|
|
1508
1509
|
const request = {};
|
|
@@ -1552,7 +1553,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1552
1553
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1553
1554
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1554
1555
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1555
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1556
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1556
1557
|
*/
|
|
1557
1558
|
await this.loadMarkets();
|
|
1558
1559
|
const request = {};
|
|
@@ -1920,7 +1921,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1920
1921
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1921
1922
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1922
1923
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1923
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1924
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1924
1925
|
*/
|
|
1925
1926
|
await this.loadMarkets();
|
|
1926
1927
|
const request = {};
|
|
@@ -1943,7 +1944,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1943
1944
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1944
1945
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1945
1946
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1946
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1947
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1947
1948
|
*/
|
|
1948
1949
|
let market = undefined;
|
|
1949
1950
|
await this.loadMarkets();
|
|
@@ -1988,7 +1989,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1988
1989
|
* @description fetch the deposit address for a currency associated with this account
|
|
1989
1990
|
* @param {string} code unified currency code
|
|
1990
1991
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
1991
|
-
* @returns {object} an [address structure]{@link https://
|
|
1992
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1992
1993
|
*/
|
|
1993
1994
|
if (this.isFiat(code)) {
|
|
1994
1995
|
throw new errors.NotSupported(this.id + ' fiat fetchDepositAddress() for ' + code + ' is not supported!');
|
|
@@ -2017,7 +2018,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
2017
2018
|
* @param {string} address the address to withdraw to
|
|
2018
2019
|
* @param {string} tag
|
|
2019
2020
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
2020
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2021
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2021
2022
|
*/
|
|
2022
2023
|
// For fiat withdrawals please provide all required additional parameters in the 'params'
|
|
2023
2024
|
// Check https://www.bitstamp.net/api/ under 'Open bank withdrawal' for list and description.
|