ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- 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 +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/src/bitget.js
CHANGED
|
@@ -1359,7 +1359,7 @@ class bitget extends bitget$1 {
|
|
|
1359
1359
|
* @name bitget#fetchTime
|
|
1360
1360
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1361
1361
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-server-time
|
|
1362
|
-
* @param {object} [params] extra parameters specific to the
|
|
1362
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1363
1363
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1364
1364
|
*/
|
|
1365
1365
|
const response = await this.publicSpotGetSpotV1PublicTime(params);
|
|
@@ -1380,7 +1380,7 @@ class bitget extends bitget$1 {
|
|
|
1380
1380
|
* @description retrieves data on all markets for bitget
|
|
1381
1381
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-symbols
|
|
1382
1382
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbols
|
|
1383
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
1383
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1384
1384
|
* @returns {object[]} an array of objects representing market data
|
|
1385
1385
|
*/
|
|
1386
1386
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -1653,7 +1653,7 @@ class bitget extends bitget$1 {
|
|
|
1653
1653
|
* @name bitget#fetchCurrencies
|
|
1654
1654
|
* @description fetches all available currencies on an exchange
|
|
1655
1655
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-list
|
|
1656
|
-
* @param {object} [params] extra parameters specific to the
|
|
1656
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1657
1657
|
* @returns {object} an associative dictionary of currencies
|
|
1658
1658
|
*/
|
|
1659
1659
|
const response = await this.publicSpotGetSpotV1PublicCurrencies(params);
|
|
@@ -1781,7 +1781,7 @@ class bitget extends bitget$1 {
|
|
|
1781
1781
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-tier-data
|
|
1782
1782
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-tier-data
|
|
1783
1783
|
* @param {string} symbol unified market symbol
|
|
1784
|
-
* @param {object} [params] extra parameters specific to the
|
|
1784
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1785
1785
|
* @param {string} [params.marginMode] for spot margin 'cross' or 'isolated', default is 'isolated'
|
|
1786
1786
|
* @param {string} [params.code] required for cross spot margin
|
|
1787
1787
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
@@ -1953,7 +1953,7 @@ class bitget extends bitget$1 {
|
|
|
1953
1953
|
* @param {string} code unified currency code
|
|
1954
1954
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1955
1955
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1956
|
-
* @param {object} [params] extra parameters specific to the
|
|
1956
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1957
1957
|
* @param {string} [params.pageNo] pageNo default 1
|
|
1958
1958
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
1959
1959
|
* @param {int} [params.until] end tim in ms
|
|
@@ -2017,7 +2017,7 @@ class bitget extends bitget$1 {
|
|
|
2017
2017
|
* @param {float} amount the amount to withdraw
|
|
2018
2018
|
* @param {string} address the address to withdraw to
|
|
2019
2019
|
* @param {string} tag
|
|
2020
|
-
* @param {object} [params] extra parameters specific to the
|
|
2020
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2021
2021
|
* @param {string} [params.chain] the chain to withdraw to
|
|
2022
2022
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2023
2023
|
*/
|
|
@@ -2109,7 +2109,7 @@ class bitget extends bitget$1 {
|
|
|
2109
2109
|
* @param {string} code unified currency code
|
|
2110
2110
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2111
2111
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2112
|
-
* @param {object} [params] extra parameters specific to the
|
|
2112
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2113
2113
|
* @param {string} [params.pageNo] pageNo default 1
|
|
2114
2114
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
2115
2115
|
* @param {int} [params.until] end time in ms
|
|
@@ -2235,7 +2235,7 @@ class bitget extends bitget$1 {
|
|
|
2235
2235
|
* @description fetch the deposit address for a currency associated with this account
|
|
2236
2236
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-address
|
|
2237
2237
|
* @param {string} code unified currency code
|
|
2238
|
-
* @param {object} [params] extra parameters specific to the
|
|
2238
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2239
2239
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2240
2240
|
*/
|
|
2241
2241
|
await this.loadMarkets();
|
|
@@ -2295,7 +2295,7 @@ class bitget extends bitget$1 {
|
|
|
2295
2295
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-depth
|
|
2296
2296
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2297
2297
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2298
|
-
* @param {object} [params] extra parameters specific to the
|
|
2298
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2299
2299
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
2300
2300
|
*/
|
|
2301
2301
|
await this.loadMarkets();
|
|
@@ -2454,7 +2454,7 @@ class bitget extends bitget$1 {
|
|
|
2454
2454
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-single-ticker
|
|
2455
2455
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-single-symbol-ticker
|
|
2456
2456
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2457
|
-
* @param {object} [params] extra parameters specific to the
|
|
2457
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2458
2458
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2459
2459
|
*/
|
|
2460
2460
|
await this.loadMarkets();
|
|
@@ -2496,11 +2496,11 @@ class bitget extends bitget$1 {
|
|
|
2496
2496
|
/**
|
|
2497
2497
|
* @method
|
|
2498
2498
|
* @name bitget#fetchTickers
|
|
2499
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
2499
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2500
2500
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-all-tickers
|
|
2501
2501
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbol-ticker
|
|
2502
2502
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2503
|
-
* @param {object} [params] extra parameters specific to the
|
|
2503
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2504
2504
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2505
2505
|
*/
|
|
2506
2506
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -2696,7 +2696,7 @@ class bitget extends bitget$1 {
|
|
|
2696
2696
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2697
2697
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2698
2698
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2699
|
-
* @param {object} [params] extra parameters specific to the
|
|
2699
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2700
2700
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
2701
2701
|
* @param {boolean} [params.paginate] *only applies to publicSpotGetMarketFillsHistory and publicMixGetMarketFillsHistory* default false, when true will automatically paginate by calling this endpoint multiple times
|
|
2702
2702
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -2809,7 +2809,7 @@ class bitget extends bitget$1 {
|
|
|
2809
2809
|
* @description fetch the trading fees for a market
|
|
2810
2810
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-single-symbol
|
|
2811
2811
|
* @param {string} symbol unified market symbol
|
|
2812
|
-
* @param {object} [params] extra parameters specific to the
|
|
2812
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2813
2813
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2814
2814
|
*/
|
|
2815
2815
|
await this.loadMarkets();
|
|
@@ -2847,7 +2847,7 @@ class bitget extends bitget$1 {
|
|
|
2847
2847
|
* @name bitget#fetchTradingFees
|
|
2848
2848
|
* @description fetch the trading fees for multiple markets
|
|
2849
2849
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-symbols
|
|
2850
|
-
* @param {object} [params] extra parameters specific to the
|
|
2850
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2851
2851
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2852
2852
|
*/
|
|
2853
2853
|
await this.loadMarkets();
|
|
@@ -2945,7 +2945,7 @@ class bitget extends bitget$1 {
|
|
|
2945
2945
|
* @param {string} timeframe the length of time each candle represents
|
|
2946
2946
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2947
2947
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
2948
|
-
* @param {object} [params] extra parameters specific to the
|
|
2948
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2949
2949
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
2950
2950
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2951
2951
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -3056,7 +3056,7 @@ class bitget extends bitget$1 {
|
|
|
3056
3056
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-account-list
|
|
3057
3057
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-assets
|
|
3058
3058
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-assets
|
|
3059
|
-
* @param {object} [params] extra parameters specific to the
|
|
3059
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3060
3060
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
3061
3061
|
*/
|
|
3062
3062
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -3468,7 +3468,7 @@ class bitget extends bitget$1 {
|
|
|
3468
3468
|
* @param {string} side 'buy' or 'sell' or 'open_long' or 'open_short' or 'close_long' or 'close_short'
|
|
3469
3469
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
3470
3470
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
3471
|
-
* @param {object} [params] extra parameters specific to the
|
|
3471
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3472
3472
|
* @param {float} [params.triggerPrice] *swap only* The price at which a trigger order is triggered at
|
|
3473
3473
|
* @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
|
|
3474
3474
|
* @param {float} [params.takeProfitPrice] *swap only* The price at which a take profit order is triggered at
|
|
@@ -3830,7 +3830,7 @@ class bitget extends bitget$1 {
|
|
|
3830
3830
|
* @param {string} side 'buy' or 'sell'
|
|
3831
3831
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
3832
3832
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
3833
|
-
* @param {object} [params] extra parameters specific to the
|
|
3833
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3834
3834
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3835
3835
|
*/
|
|
3836
3836
|
await this.loadMarkets();
|
|
@@ -3937,7 +3937,7 @@ class bitget extends bitget$1 {
|
|
|
3937
3937
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-cancel-order
|
|
3938
3938
|
* @param {string} id order id
|
|
3939
3939
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3940
|
-
* @param {object} [params] extra parameters specific to the
|
|
3940
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3941
3941
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
3942
3942
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3943
3943
|
*/
|
|
@@ -4071,7 +4071,7 @@ class bitget extends bitget$1 {
|
|
|
4071
4071
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-batch-cancel-order
|
|
4072
4072
|
* @param {string[]} ids order ids
|
|
4073
4073
|
* @param {string} symbol unified market symbol, default is undefined
|
|
4074
|
-
* @param {object} [params] extra parameters specific to the
|
|
4074
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4075
4075
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
4076
4076
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4077
4077
|
*/
|
|
@@ -4155,7 +4155,7 @@ class bitget extends bitget$1 {
|
|
|
4155
4155
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#isolated-batch-cancel-orders
|
|
4156
4156
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-batch-cancel-order
|
|
4157
4157
|
* @param {string} symbol unified market symbol
|
|
4158
|
-
* @param {object} [params] extra parameters specific to the
|
|
4158
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4159
4159
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
4160
4160
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4161
4161
|
*/
|
|
@@ -4237,7 +4237,7 @@ class bitget extends bitget$1 {
|
|
|
4237
4237
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-order-details
|
|
4238
4238
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-order-details
|
|
4239
4239
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4240
|
-
* @param {object} [params] extra parameters specific to the
|
|
4240
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4241
4241
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4242
4242
|
*/
|
|
4243
4243
|
if (symbol === undefined) {
|
|
@@ -4334,7 +4334,7 @@ class bitget extends bitget$1 {
|
|
|
4334
4334
|
* @param {string} symbol unified market symbol
|
|
4335
4335
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4336
4336
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
4337
|
-
* @param {object} [params] extra parameters specific to the
|
|
4337
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4338
4338
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4339
4339
|
*/
|
|
4340
4340
|
await this.loadMarkets();
|
|
@@ -4577,7 +4577,7 @@ class bitget extends bitget$1 {
|
|
|
4577
4577
|
* @param {string} symbol unified market symbol of the closed orders
|
|
4578
4578
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
4579
4579
|
* @param {int} [limit] the max number of closed orders to return
|
|
4580
|
-
* @param {object} [params] extra parameters specific to the
|
|
4580
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4581
4581
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4582
4582
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4583
4583
|
*/
|
|
@@ -4619,7 +4619,7 @@ class bitget extends bitget$1 {
|
|
|
4619
4619
|
* @param {string} symbol unified market symbol of the canceled orders
|
|
4620
4620
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
4621
4621
|
* @param {int} [limit] the max number of canceled orders to return
|
|
4622
|
-
* @param {object} [params] extra parameters specific to the
|
|
4622
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4623
4623
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4624
4624
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4625
4625
|
*/
|
|
@@ -4917,7 +4917,7 @@ class bitget extends bitget$1 {
|
|
|
4917
4917
|
* @param {string} code unified currency code, default is undefined
|
|
4918
4918
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
4919
4919
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
4920
|
-
* @param {object} [params] extra parameters specific to the
|
|
4920
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4921
4921
|
* @param {int} [params.until] end tim in ms
|
|
4922
4922
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
4923
4923
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -5020,7 +5020,7 @@ class bitget extends bitget$1 {
|
|
|
5020
5020
|
* @param {string} symbol unified market symbol
|
|
5021
5021
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5022
5022
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
5023
|
-
* @param {object} [params] extra parameters specific to the
|
|
5023
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5024
5024
|
* @param {int} [params.until] *swap only* the latest time in ms to fetch entries for
|
|
5025
5025
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5026
5026
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -5185,7 +5185,7 @@ class bitget extends bitget$1 {
|
|
|
5185
5185
|
* @param {string} symbol unified market symbol
|
|
5186
5186
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5187
5187
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
5188
|
-
* @param {object} [params] extra parameters specific to the
|
|
5188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5189
5189
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
5190
5190
|
*/
|
|
5191
5191
|
if (symbol === undefined) {
|
|
@@ -5241,7 +5241,7 @@ class bitget extends bitget$1 {
|
|
|
5241
5241
|
* @description fetch data on a single open contract trade position
|
|
5242
5242
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-position-v2
|
|
5243
5243
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
5244
|
-
* @param {object} [params] extra parameters specific to the
|
|
5244
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5245
5245
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
5246
5246
|
*/
|
|
5247
5247
|
await this.loadMarkets();
|
|
@@ -5292,7 +5292,7 @@ class bitget extends bitget$1 {
|
|
|
5292
5292
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-position-v2
|
|
5293
5293
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-history-position
|
|
5294
5294
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
5295
|
-
* @param {object} [params] extra parameters specific to the
|
|
5295
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5296
5296
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
5297
5297
|
*/
|
|
5298
5298
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -5554,7 +5554,7 @@ class bitget extends bitget$1 {
|
|
|
5554
5554
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
5555
5555
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
5556
5556
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
5557
|
-
* @param {object} [params] extra parameters specific to the
|
|
5557
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5558
5558
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5559
5559
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
5560
5560
|
*/
|
|
@@ -5618,7 +5618,7 @@ class bitget extends bitget$1 {
|
|
|
5618
5618
|
* @description fetch the current funding rate
|
|
5619
5619
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-current-funding-rate
|
|
5620
5620
|
* @param {string} symbol unified market symbol
|
|
5621
|
-
* @param {object} [params] extra parameters specific to the
|
|
5621
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5622
5622
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
5623
5623
|
*/
|
|
5624
5624
|
await this.loadMarkets();
|
|
@@ -5682,7 +5682,7 @@ class bitget extends bitget$1 {
|
|
|
5682
5682
|
* @param {string} symbol unified market symbol
|
|
5683
5683
|
* @param {int} [since] the starting timestamp in milliseconds
|
|
5684
5684
|
* @param {int} [limit] the number of entries to return
|
|
5685
|
-
* @param {object} [params] extra parameters specific to the
|
|
5685
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5686
5686
|
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
5687
5687
|
*/
|
|
5688
5688
|
await this.loadMarkets();
|
|
@@ -5826,7 +5826,7 @@ class bitget extends bitget$1 {
|
|
|
5826
5826
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-margin
|
|
5827
5827
|
* @param {string} symbol unified market symbol
|
|
5828
5828
|
* @param {float} amount the amount of margin to remove
|
|
5829
|
-
* @param {object} [params] extra parameters specific to the
|
|
5829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5830
5830
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
5831
5831
|
*/
|
|
5832
5832
|
if (amount > 0) {
|
|
@@ -5846,7 +5846,7 @@ class bitget extends bitget$1 {
|
|
|
5846
5846
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-margin
|
|
5847
5847
|
* @param {string} symbol unified market symbol
|
|
5848
5848
|
* @param {float} amount amount of margin to add
|
|
5849
|
-
* @param {object} [params] extra parameters specific to the
|
|
5849
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5850
5850
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
5851
5851
|
*/
|
|
5852
5852
|
const holdSide = this.safeString(params, 'holdSide');
|
|
@@ -5862,7 +5862,7 @@ class bitget extends bitget$1 {
|
|
|
5862
5862
|
* @description fetch the set leverage for a market
|
|
5863
5863
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-single-account
|
|
5864
5864
|
* @param {string} symbol unified market symbol
|
|
5865
|
-
* @param {object} [params] extra parameters specific to the
|
|
5865
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5866
5866
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
5867
5867
|
*/
|
|
5868
5868
|
await this.loadMarkets();
|
|
@@ -5908,7 +5908,7 @@ class bitget extends bitget$1 {
|
|
|
5908
5908
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-leverage
|
|
5909
5909
|
* @param {float} leverage the rate of leverage
|
|
5910
5910
|
* @param {string} symbol unified market symbol
|
|
5911
|
-
* @param {object} [params] extra parameters specific to the
|
|
5911
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5912
5912
|
* @returns {object} response from the exchange
|
|
5913
5913
|
*/
|
|
5914
5914
|
if (symbol === undefined) {
|
|
@@ -5932,7 +5932,7 @@ class bitget extends bitget$1 {
|
|
|
5932
5932
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-margin-mode
|
|
5933
5933
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
5934
5934
|
* @param {string} symbol unified market symbol
|
|
5935
|
-
* @param {object} [params] extra parameters specific to the
|
|
5935
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5936
5936
|
* @returns {object} response from the exchange
|
|
5937
5937
|
*/
|
|
5938
5938
|
if (symbol === undefined) {
|
|
@@ -5965,7 +5965,7 @@ class bitget extends bitget$1 {
|
|
|
5965
5965
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-hold-mode
|
|
5966
5966
|
* @param {bool} hedged set to true to use dualSidePosition
|
|
5967
5967
|
* @param {string} symbol not used by bitget setPositionMode ()
|
|
5968
|
-
* @param {object} [params] extra parameters specific to the
|
|
5968
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5969
5969
|
* @returns {object} response from the exchange
|
|
5970
5970
|
*
|
|
5971
5971
|
*/
|
|
@@ -6040,7 +6040,7 @@ class bitget extends bitget$1 {
|
|
|
6040
6040
|
* @param {string} code unified currency code of the currency transferred
|
|
6041
6041
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
6042
6042
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
6043
|
-
* @param {object} [params] extra parameters specific to the
|
|
6043
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6044
6044
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
6045
6045
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
6046
6046
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
@@ -6103,7 +6103,7 @@ class bitget extends bitget$1 {
|
|
|
6103
6103
|
* @param {float} amount amount to transfer
|
|
6104
6104
|
* @param {string} fromAccount account to transfer from
|
|
6105
6105
|
* @param {string} toAccount account to transfer to
|
|
6106
|
-
* @param {object} [params] extra parameters specific to the
|
|
6106
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6107
6107
|
*
|
|
6108
6108
|
* EXCHANGE SPECIFIC PARAMS
|
|
6109
6109
|
* @param {string} [params.clientOid] custom id
|
|
@@ -6261,7 +6261,7 @@ class bitget extends bitget$1 {
|
|
|
6261
6261
|
* @description fetch deposit and withdraw fees
|
|
6262
6262
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-list
|
|
6263
6263
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
6264
|
-
* @param {object} [params] extra parameters specific to the
|
|
6264
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6265
6265
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
6266
6266
|
*/
|
|
6267
6267
|
await this.loadMarkets();
|
|
@@ -6305,7 +6305,7 @@ class bitget extends bitget$1 {
|
|
|
6305
6305
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-borrow
|
|
6306
6306
|
* @param {string} code unified currency code of the currency to borrow
|
|
6307
6307
|
* @param {string} amount the amount to borrow
|
|
6308
|
-
* @param {object} [params] extra parameters specific to the
|
|
6308
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6309
6309
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6310
6310
|
*/
|
|
6311
6311
|
await this.loadMarkets();
|
|
@@ -6341,7 +6341,7 @@ class bitget extends bitget$1 {
|
|
|
6341
6341
|
* @param {string} symbol unified market symbol
|
|
6342
6342
|
* @param {string} code unified currency code of the currency to borrow
|
|
6343
6343
|
* @param {string} amount the amount to borrow
|
|
6344
|
-
* @param {object} [params] extra parameters specific to the
|
|
6344
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6345
6345
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6346
6346
|
*/
|
|
6347
6347
|
await this.loadMarkets();
|
|
@@ -6384,7 +6384,7 @@ class bitget extends bitget$1 {
|
|
|
6384
6384
|
* @param {string} symbol unified market symbol
|
|
6385
6385
|
* @param {string} code unified currency code of the currency to repay
|
|
6386
6386
|
* @param {string} amount the amount to repay
|
|
6387
|
-
* @param {object} [params] extra parameters specific to the
|
|
6387
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6388
6388
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6389
6389
|
*/
|
|
6390
6390
|
await this.loadMarkets();
|
|
@@ -6427,7 +6427,7 @@ class bitget extends bitget$1 {
|
|
|
6427
6427
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#isolated-repay
|
|
6428
6428
|
* @param {string} code unified currency code of the currency to repay
|
|
6429
6429
|
* @param {string} amount the amount to repay
|
|
6430
|
-
* @param {object} [params] extra parameters specific to the
|
|
6430
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6431
6431
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6432
6432
|
*/
|
|
6433
6433
|
await this.loadMarkets();
|
|
@@ -6665,7 +6665,7 @@ class bitget extends bitget$1 {
|
|
|
6665
6665
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
6666
6666
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-margin-interest-rate-and-max-borrowable-amount
|
|
6667
6667
|
* @param {string} symbol unified market symbol
|
|
6668
|
-
* @param {object} [params] extra parameters specific to the
|
|
6668
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6669
6669
|
* @param {string} [params.symbol] required for isolated margin
|
|
6670
6670
|
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
|
|
6671
6671
|
*/
|
|
@@ -6781,7 +6781,7 @@ class bitget extends bitget$1 {
|
|
|
6781
6781
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
6782
6782
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-margin-interest-rate-and-borrowable
|
|
6783
6783
|
* @param {string} code unified currency code
|
|
6784
|
-
* @param {object} [params] extra parameters specific to the
|
|
6784
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6785
6785
|
* @param {string} [params.symbol] required for isolated margin
|
|
6786
6786
|
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
6787
6787
|
*/
|
|
@@ -6865,7 +6865,7 @@ class bitget extends bitget$1 {
|
|
|
6865
6865
|
* @param {string} [symbol] unified market symbol when fetching interest in isolated markets
|
|
6866
6866
|
* @param {int} [since] the earliest time in ms to fetch borrow interest for
|
|
6867
6867
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
6868
|
-
* @param {object} [params] extra parameters specific to the
|
|
6868
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6869
6869
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
6870
6870
|
*/
|
|
6871
6871
|
await this.loadMarkets();
|
package/dist/cjs/src/bithumb.js
CHANGED
|
@@ -186,7 +186,7 @@ class bithumb extends bithumb$1 {
|
|
|
186
186
|
* @method
|
|
187
187
|
* @name bithumb#fetchMarkets
|
|
188
188
|
* @description retrieves data on all markets for bithumb
|
|
189
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
189
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
190
190
|
* @returns {object[]} an array of objects representing market data
|
|
191
191
|
*/
|
|
192
192
|
const result = [];
|
|
@@ -288,7 +288,7 @@ class bithumb extends bithumb$1 {
|
|
|
288
288
|
* @method
|
|
289
289
|
* @name bithumb#fetchBalance
|
|
290
290
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
291
|
-
* @param {object} [params] extra parameters specific to the
|
|
291
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
292
292
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
293
293
|
*/
|
|
294
294
|
await this.loadMarkets();
|
|
@@ -305,7 +305,7 @@ class bithumb extends bithumb$1 {
|
|
|
305
305
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
306
306
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
307
307
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
308
|
-
* @param {object} [params] extra parameters specific to the
|
|
308
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
309
309
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
310
310
|
*/
|
|
311
311
|
await this.loadMarkets();
|
|
@@ -394,9 +394,9 @@ class bithumb extends bithumb$1 {
|
|
|
394
394
|
/**
|
|
395
395
|
* @method
|
|
396
396
|
* @name bithumb#fetchTickers
|
|
397
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
397
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
398
398
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
399
|
-
* @param {object} [params] extra parameters specific to the
|
|
399
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
400
400
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
401
401
|
*/
|
|
402
402
|
await this.loadMarkets();
|
|
@@ -453,7 +453,7 @@ class bithumb extends bithumb$1 {
|
|
|
453
453
|
* @name bithumb#fetchTicker
|
|
454
454
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
455
455
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
456
|
-
* @param {object} [params] extra parameters specific to the
|
|
456
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
457
457
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
458
458
|
*/
|
|
459
459
|
await this.loadMarkets();
|
|
@@ -514,7 +514,7 @@ class bithumb extends bithumb$1 {
|
|
|
514
514
|
* @param {string} timeframe the length of time each candle represents
|
|
515
515
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
516
516
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
517
|
-
* @param {object} [params] extra parameters specific to the
|
|
517
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
518
518
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
519
519
|
*/
|
|
520
520
|
await this.loadMarkets();
|
|
@@ -637,7 +637,7 @@ class bithumb extends bithumb$1 {
|
|
|
637
637
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
638
638
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
639
639
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
640
|
-
* @param {object} [params] extra parameters specific to the
|
|
640
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
641
641
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
642
642
|
*/
|
|
643
643
|
await this.loadMarkets();
|
|
@@ -677,7 +677,7 @@ class bithumb extends bithumb$1 {
|
|
|
677
677
|
* @param {string} side 'buy' or 'sell'
|
|
678
678
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
679
679
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
680
|
-
* @param {object} [params] extra parameters specific to the
|
|
680
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
681
681
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
682
682
|
*/
|
|
683
683
|
await this.loadMarkets();
|
|
@@ -714,7 +714,7 @@ class bithumb extends bithumb$1 {
|
|
|
714
714
|
* @name bithumb#fetchOrder
|
|
715
715
|
* @description fetches information on an order made by the user
|
|
716
716
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
717
|
-
* @param {object} [params] extra parameters specific to the
|
|
717
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
718
718
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
719
719
|
*/
|
|
720
720
|
if (symbol === undefined) {
|
|
@@ -874,7 +874,7 @@ class bithumb extends bithumb$1 {
|
|
|
874
874
|
* @param {string} symbol unified market symbol
|
|
875
875
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
876
876
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
877
|
-
* @param {object} [params] extra parameters specific to the
|
|
877
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
878
878
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
879
879
|
*/
|
|
880
880
|
if (symbol === undefined) {
|
|
@@ -921,7 +921,7 @@ class bithumb extends bithumb$1 {
|
|
|
921
921
|
* @description cancels an open order
|
|
922
922
|
* @param {string} id order id
|
|
923
923
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
924
|
-
* @param {object} [params] extra parameters specific to the
|
|
924
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
925
925
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
926
926
|
*/
|
|
927
927
|
if (symbol === undefined) {
|
|
@@ -958,7 +958,7 @@ class bithumb extends bithumb$1 {
|
|
|
958
958
|
* @param {float} amount the amount to withdraw
|
|
959
959
|
* @param {string} address the address to withdraw to
|
|
960
960
|
* @param {string} tag
|
|
961
|
-
* @param {object} [params] extra parameters specific to the
|
|
961
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
962
962
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
963
963
|
*/
|
|
964
964
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|