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/js/src/bitget.js
CHANGED
|
@@ -1362,7 +1362,7 @@ export default class bitget extends Exchange {
|
|
|
1362
1362
|
* @name bitget#fetchTime
|
|
1363
1363
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1364
1364
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-server-time
|
|
1365
|
-
* @param {object} [params] extra parameters specific to the
|
|
1365
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1366
1366
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1367
1367
|
*/
|
|
1368
1368
|
const response = await this.publicSpotGetSpotV1PublicTime(params);
|
|
@@ -1383,7 +1383,7 @@ export default class bitget extends Exchange {
|
|
|
1383
1383
|
* @description retrieves data on all markets for bitget
|
|
1384
1384
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-symbols
|
|
1385
1385
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbols
|
|
1386
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
1386
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1387
1387
|
* @returns {object[]} an array of objects representing market data
|
|
1388
1388
|
*/
|
|
1389
1389
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -1656,7 +1656,7 @@ export default class bitget extends Exchange {
|
|
|
1656
1656
|
* @name bitget#fetchCurrencies
|
|
1657
1657
|
* @description fetches all available currencies on an exchange
|
|
1658
1658
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-list
|
|
1659
|
-
* @param {object} [params] extra parameters specific to the
|
|
1659
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1660
1660
|
* @returns {object} an associative dictionary of currencies
|
|
1661
1661
|
*/
|
|
1662
1662
|
const response = await this.publicSpotGetSpotV1PublicCurrencies(params);
|
|
@@ -1784,7 +1784,7 @@ export default class bitget extends Exchange {
|
|
|
1784
1784
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-tier-data
|
|
1785
1785
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-tier-data
|
|
1786
1786
|
* @param {string} symbol unified market symbol
|
|
1787
|
-
* @param {object} [params] extra parameters specific to the
|
|
1787
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1788
1788
|
* @param {string} [params.marginMode] for spot margin 'cross' or 'isolated', default is 'isolated'
|
|
1789
1789
|
* @param {string} [params.code] required for cross spot margin
|
|
1790
1790
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
@@ -1956,7 +1956,7 @@ export default class bitget extends Exchange {
|
|
|
1956
1956
|
* @param {string} code unified currency code
|
|
1957
1957
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1958
1958
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1959
|
-
* @param {object} [params] extra parameters specific to the
|
|
1959
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1960
1960
|
* @param {string} [params.pageNo] pageNo default 1
|
|
1961
1961
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
1962
1962
|
* @param {int} [params.until] end tim in ms
|
|
@@ -2020,7 +2020,7 @@ export default class bitget extends Exchange {
|
|
|
2020
2020
|
* @param {float} amount the amount to withdraw
|
|
2021
2021
|
* @param {string} address the address to withdraw to
|
|
2022
2022
|
* @param {string} tag
|
|
2023
|
-
* @param {object} [params] extra parameters specific to the
|
|
2023
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2024
2024
|
* @param {string} [params.chain] the chain to withdraw to
|
|
2025
2025
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2026
2026
|
*/
|
|
@@ -2112,7 +2112,7 @@ export default class bitget extends Exchange {
|
|
|
2112
2112
|
* @param {string} code unified currency code
|
|
2113
2113
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2114
2114
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2115
|
-
* @param {object} [params] extra parameters specific to the
|
|
2115
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2116
2116
|
* @param {string} [params.pageNo] pageNo default 1
|
|
2117
2117
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
2118
2118
|
* @param {int} [params.until] end time in ms
|
|
@@ -2238,7 +2238,7 @@ export default class bitget extends Exchange {
|
|
|
2238
2238
|
* @description fetch the deposit address for a currency associated with this account
|
|
2239
2239
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-address
|
|
2240
2240
|
* @param {string} code unified currency code
|
|
2241
|
-
* @param {object} [params] extra parameters specific to the
|
|
2241
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2242
2242
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2243
2243
|
*/
|
|
2244
2244
|
await this.loadMarkets();
|
|
@@ -2298,7 +2298,7 @@ export default class bitget extends Exchange {
|
|
|
2298
2298
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-depth
|
|
2299
2299
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2300
2300
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2301
|
-
* @param {object} [params] extra parameters specific to the
|
|
2301
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2302
2302
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
2303
2303
|
*/
|
|
2304
2304
|
await this.loadMarkets();
|
|
@@ -2457,7 +2457,7 @@ export default class bitget extends Exchange {
|
|
|
2457
2457
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-single-ticker
|
|
2458
2458
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-single-symbol-ticker
|
|
2459
2459
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2460
|
-
* @param {object} [params] extra parameters specific to the
|
|
2460
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2461
2461
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2462
2462
|
*/
|
|
2463
2463
|
await this.loadMarkets();
|
|
@@ -2499,11 +2499,11 @@ export default class bitget extends Exchange {
|
|
|
2499
2499
|
/**
|
|
2500
2500
|
* @method
|
|
2501
2501
|
* @name bitget#fetchTickers
|
|
2502
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
2502
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2503
2503
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-all-tickers
|
|
2504
2504
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbol-ticker
|
|
2505
2505
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2506
|
-
* @param {object} [params] extra parameters specific to the
|
|
2506
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2507
2507
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2508
2508
|
*/
|
|
2509
2509
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -2699,7 +2699,7 @@ export default class bitget extends Exchange {
|
|
|
2699
2699
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2700
2700
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2701
2701
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2702
|
-
* @param {object} [params] extra parameters specific to the
|
|
2702
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2703
2703
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
2704
2704
|
* @param {boolean} [params.paginate] *only applies to publicSpotGetMarketFillsHistory and publicMixGetMarketFillsHistory* default false, when true will automatically paginate by calling this endpoint multiple times
|
|
2705
2705
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -2812,7 +2812,7 @@ export default class bitget extends Exchange {
|
|
|
2812
2812
|
* @description fetch the trading fees for a market
|
|
2813
2813
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-single-symbol
|
|
2814
2814
|
* @param {string} symbol unified market symbol
|
|
2815
|
-
* @param {object} [params] extra parameters specific to the
|
|
2815
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2816
2816
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2817
2817
|
*/
|
|
2818
2818
|
await this.loadMarkets();
|
|
@@ -2850,7 +2850,7 @@ export default class bitget extends Exchange {
|
|
|
2850
2850
|
* @name bitget#fetchTradingFees
|
|
2851
2851
|
* @description fetch the trading fees for multiple markets
|
|
2852
2852
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-symbols
|
|
2853
|
-
* @param {object} [params] extra parameters specific to the
|
|
2853
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2854
2854
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2855
2855
|
*/
|
|
2856
2856
|
await this.loadMarkets();
|
|
@@ -2948,7 +2948,7 @@ export default class bitget extends Exchange {
|
|
|
2948
2948
|
* @param {string} timeframe the length of time each candle represents
|
|
2949
2949
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2950
2950
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
2951
|
-
* @param {object} [params] extra parameters specific to the
|
|
2951
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2952
2952
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
2953
2953
|
* @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)
|
|
2954
2954
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -3059,7 +3059,7 @@ export default class bitget extends Exchange {
|
|
|
3059
3059
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-account-list
|
|
3060
3060
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-assets
|
|
3061
3061
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-assets
|
|
3062
|
-
* @param {object} [params] extra parameters specific to the
|
|
3062
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3063
3063
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
3064
3064
|
*/
|
|
3065
3065
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -3471,7 +3471,7 @@ export default class bitget extends Exchange {
|
|
|
3471
3471
|
* @param {string} side 'buy' or 'sell' or 'open_long' or 'open_short' or 'close_long' or 'close_short'
|
|
3472
3472
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
3473
3473
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
3474
|
-
* @param {object} [params] extra parameters specific to the
|
|
3474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3475
3475
|
* @param {float} [params.triggerPrice] *swap only* The price at which a trigger order is triggered at
|
|
3476
3476
|
* @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
|
|
3477
3477
|
* @param {float} [params.takeProfitPrice] *swap only* The price at which a take profit order is triggered at
|
|
@@ -3833,7 +3833,7 @@ export default class bitget extends Exchange {
|
|
|
3833
3833
|
* @param {string} side 'buy' or 'sell'
|
|
3834
3834
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
3835
3835
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
3836
|
-
* @param {object} [params] extra parameters specific to the
|
|
3836
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3837
3837
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3838
3838
|
*/
|
|
3839
3839
|
await this.loadMarkets();
|
|
@@ -3940,7 +3940,7 @@ export default class bitget extends Exchange {
|
|
|
3940
3940
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-cancel-order
|
|
3941
3941
|
* @param {string} id order id
|
|
3942
3942
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3943
|
-
* @param {object} [params] extra parameters specific to the
|
|
3943
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3944
3944
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
3945
3945
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3946
3946
|
*/
|
|
@@ -4074,7 +4074,7 @@ export default class bitget extends Exchange {
|
|
|
4074
4074
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-batch-cancel-order
|
|
4075
4075
|
* @param {string[]} ids order ids
|
|
4076
4076
|
* @param {string} symbol unified market symbol, default is undefined
|
|
4077
|
-
* @param {object} [params] extra parameters specific to the
|
|
4077
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4078
4078
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
4079
4079
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4080
4080
|
*/
|
|
@@ -4158,7 +4158,7 @@ export default class bitget extends Exchange {
|
|
|
4158
4158
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#isolated-batch-cancel-orders
|
|
4159
4159
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-batch-cancel-order
|
|
4160
4160
|
* @param {string} symbol unified market symbol
|
|
4161
|
-
* @param {object} [params] extra parameters specific to the
|
|
4161
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4162
4162
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
4163
4163
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4164
4164
|
*/
|
|
@@ -4240,7 +4240,7 @@ export default class bitget extends Exchange {
|
|
|
4240
4240
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-order-details
|
|
4241
4241
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-order-details
|
|
4242
4242
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4243
|
-
* @param {object} [params] extra parameters specific to the
|
|
4243
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4244
4244
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4245
4245
|
*/
|
|
4246
4246
|
if (symbol === undefined) {
|
|
@@ -4337,7 +4337,7 @@ export default class bitget extends Exchange {
|
|
|
4337
4337
|
* @param {string} symbol unified market symbol
|
|
4338
4338
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4339
4339
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
4340
|
-
* @param {object} [params] extra parameters specific to the
|
|
4340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4341
4341
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4342
4342
|
*/
|
|
4343
4343
|
await this.loadMarkets();
|
|
@@ -4580,7 +4580,7 @@ export default class bitget extends Exchange {
|
|
|
4580
4580
|
* @param {string} symbol unified market symbol of the closed orders
|
|
4581
4581
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
4582
4582
|
* @param {int} [limit] the max number of closed orders to return
|
|
4583
|
-
* @param {object} [params] extra parameters specific to the
|
|
4583
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4584
4584
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4585
4585
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4586
4586
|
*/
|
|
@@ -4622,7 +4622,7 @@ export default class bitget extends Exchange {
|
|
|
4622
4622
|
* @param {string} symbol unified market symbol of the canceled orders
|
|
4623
4623
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
4624
4624
|
* @param {int} [limit] the max number of canceled orders to return
|
|
4625
|
-
* @param {object} [params] extra parameters specific to the
|
|
4625
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4626
4626
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4627
4627
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4628
4628
|
*/
|
|
@@ -4920,7 +4920,7 @@ export default class bitget extends Exchange {
|
|
|
4920
4920
|
* @param {string} code unified currency code, default is undefined
|
|
4921
4921
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
4922
4922
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
4923
|
-
* @param {object} [params] extra parameters specific to the
|
|
4923
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4924
4924
|
* @param {int} [params.until] end tim in ms
|
|
4925
4925
|
* @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)
|
|
4926
4926
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -5023,7 +5023,7 @@ export default class bitget extends Exchange {
|
|
|
5023
5023
|
* @param {string} symbol unified market symbol
|
|
5024
5024
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5025
5025
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
5026
|
-
* @param {object} [params] extra parameters specific to the
|
|
5026
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5027
5027
|
* @param {int} [params.until] *swap only* the latest time in ms to fetch entries for
|
|
5028
5028
|
* @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)
|
|
5029
5029
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -5188,7 +5188,7 @@ export default class bitget extends Exchange {
|
|
|
5188
5188
|
* @param {string} symbol unified market symbol
|
|
5189
5189
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5190
5190
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
5191
|
-
* @param {object} [params] extra parameters specific to the
|
|
5191
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5192
5192
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
5193
5193
|
*/
|
|
5194
5194
|
if (symbol === undefined) {
|
|
@@ -5244,7 +5244,7 @@ export default class bitget extends Exchange {
|
|
|
5244
5244
|
* @description fetch data on a single open contract trade position
|
|
5245
5245
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-symbol-position-v2
|
|
5246
5246
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
5247
|
-
* @param {object} [params] extra parameters specific to the
|
|
5247
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5248
5248
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
5249
5249
|
*/
|
|
5250
5250
|
await this.loadMarkets();
|
|
@@ -5295,7 +5295,7 @@ export default class bitget extends Exchange {
|
|
|
5295
5295
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-position-v2
|
|
5296
5296
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-history-position
|
|
5297
5297
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
5298
|
-
* @param {object} [params] extra parameters specific to the
|
|
5298
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5299
5299
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
5300
5300
|
*/
|
|
5301
5301
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -5557,7 +5557,7 @@ export default class bitget extends Exchange {
|
|
|
5557
5557
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
5558
5558
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
5559
5559
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
5560
|
-
* @param {object} [params] extra parameters specific to the
|
|
5560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5561
5561
|
* @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)
|
|
5562
5562
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
5563
5563
|
*/
|
|
@@ -5621,7 +5621,7 @@ export default class bitget extends Exchange {
|
|
|
5621
5621
|
* @description fetch the current funding rate
|
|
5622
5622
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-current-funding-rate
|
|
5623
5623
|
* @param {string} symbol unified market symbol
|
|
5624
|
-
* @param {object} [params] extra parameters specific to the
|
|
5624
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5625
5625
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
5626
5626
|
*/
|
|
5627
5627
|
await this.loadMarkets();
|
|
@@ -5685,7 +5685,7 @@ export default class bitget extends Exchange {
|
|
|
5685
5685
|
* @param {string} symbol unified market symbol
|
|
5686
5686
|
* @param {int} [since] the starting timestamp in milliseconds
|
|
5687
5687
|
* @param {int} [limit] the number of entries to return
|
|
5688
|
-
* @param {object} [params] extra parameters specific to the
|
|
5688
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5689
5689
|
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
5690
5690
|
*/
|
|
5691
5691
|
await this.loadMarkets();
|
|
@@ -5829,7 +5829,7 @@ export default class bitget extends Exchange {
|
|
|
5829
5829
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-margin
|
|
5830
5830
|
* @param {string} symbol unified market symbol
|
|
5831
5831
|
* @param {float} amount the amount of margin to remove
|
|
5832
|
-
* @param {object} [params] extra parameters specific to the
|
|
5832
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5833
5833
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
5834
5834
|
*/
|
|
5835
5835
|
if (amount > 0) {
|
|
@@ -5849,7 +5849,7 @@ export default class bitget extends Exchange {
|
|
|
5849
5849
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-margin
|
|
5850
5850
|
* @param {string} symbol unified market symbol
|
|
5851
5851
|
* @param {float} amount amount of margin to add
|
|
5852
|
-
* @param {object} [params] extra parameters specific to the
|
|
5852
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5853
5853
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
5854
5854
|
*/
|
|
5855
5855
|
const holdSide = this.safeString(params, 'holdSide');
|
|
@@ -5865,7 +5865,7 @@ export default class bitget extends Exchange {
|
|
|
5865
5865
|
* @description fetch the set leverage for a market
|
|
5866
5866
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-single-account
|
|
5867
5867
|
* @param {string} symbol unified market symbol
|
|
5868
|
-
* @param {object} [params] extra parameters specific to the
|
|
5868
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5869
5869
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
5870
5870
|
*/
|
|
5871
5871
|
await this.loadMarkets();
|
|
@@ -5911,7 +5911,7 @@ export default class bitget extends Exchange {
|
|
|
5911
5911
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-leverage
|
|
5912
5912
|
* @param {float} leverage the rate of leverage
|
|
5913
5913
|
* @param {string} symbol unified market symbol
|
|
5914
|
-
* @param {object} [params] extra parameters specific to the
|
|
5914
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5915
5915
|
* @returns {object} response from the exchange
|
|
5916
5916
|
*/
|
|
5917
5917
|
if (symbol === undefined) {
|
|
@@ -5935,7 +5935,7 @@ export default class bitget extends Exchange {
|
|
|
5935
5935
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-margin-mode
|
|
5936
5936
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
5937
5937
|
* @param {string} symbol unified market symbol
|
|
5938
|
-
* @param {object} [params] extra parameters specific to the
|
|
5938
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5939
5939
|
* @returns {object} response from the exchange
|
|
5940
5940
|
*/
|
|
5941
5941
|
if (symbol === undefined) {
|
|
@@ -5968,7 +5968,7 @@ export default class bitget extends Exchange {
|
|
|
5968
5968
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#change-hold-mode
|
|
5969
5969
|
* @param {bool} hedged set to true to use dualSidePosition
|
|
5970
5970
|
* @param {string} symbol not used by bitget setPositionMode ()
|
|
5971
|
-
* @param {object} [params] extra parameters specific to the
|
|
5971
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5972
5972
|
* @returns {object} response from the exchange
|
|
5973
5973
|
*
|
|
5974
5974
|
*/
|
|
@@ -6043,7 +6043,7 @@ export default class bitget extends Exchange {
|
|
|
6043
6043
|
* @param {string} code unified currency code of the currency transferred
|
|
6044
6044
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
6045
6045
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
6046
|
-
* @param {object} [params] extra parameters specific to the
|
|
6046
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6047
6047
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
6048
6048
|
* @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)
|
|
6049
6049
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
@@ -6106,7 +6106,7 @@ export default class bitget extends Exchange {
|
|
|
6106
6106
|
* @param {float} amount amount to transfer
|
|
6107
6107
|
* @param {string} fromAccount account to transfer from
|
|
6108
6108
|
* @param {string} toAccount account to transfer to
|
|
6109
|
-
* @param {object} [params] extra parameters specific to the
|
|
6109
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6110
6110
|
*
|
|
6111
6111
|
* EXCHANGE SPECIFIC PARAMS
|
|
6112
6112
|
* @param {string} [params.clientOid] custom id
|
|
@@ -6264,7 +6264,7 @@ export default class bitget extends Exchange {
|
|
|
6264
6264
|
* @description fetch deposit and withdraw fees
|
|
6265
6265
|
* @see https://bitgetlimited.github.io/apidoc/en/spot/#get-coin-list
|
|
6266
6266
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
6267
|
-
* @param {object} [params] extra parameters specific to the
|
|
6267
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6268
6268
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
6269
6269
|
*/
|
|
6270
6270
|
await this.loadMarkets();
|
|
@@ -6308,7 +6308,7 @@ export default class bitget extends Exchange {
|
|
|
6308
6308
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-borrow
|
|
6309
6309
|
* @param {string} code unified currency code of the currency to borrow
|
|
6310
6310
|
* @param {string} amount the amount to borrow
|
|
6311
|
-
* @param {object} [params] extra parameters specific to the
|
|
6311
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6312
6312
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6313
6313
|
*/
|
|
6314
6314
|
await this.loadMarkets();
|
|
@@ -6344,7 +6344,7 @@ export default class bitget extends Exchange {
|
|
|
6344
6344
|
* @param {string} symbol unified market symbol
|
|
6345
6345
|
* @param {string} code unified currency code of the currency to borrow
|
|
6346
6346
|
* @param {string} amount the amount to borrow
|
|
6347
|
-
* @param {object} [params] extra parameters specific to the
|
|
6347
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6348
6348
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6349
6349
|
*/
|
|
6350
6350
|
await this.loadMarkets();
|
|
@@ -6387,7 +6387,7 @@ export default class bitget extends Exchange {
|
|
|
6387
6387
|
* @param {string} symbol unified market symbol
|
|
6388
6388
|
* @param {string} code unified currency code of the currency to repay
|
|
6389
6389
|
* @param {string} amount the amount to repay
|
|
6390
|
-
* @param {object} [params] extra parameters specific to the
|
|
6390
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6391
6391
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6392
6392
|
*/
|
|
6393
6393
|
await this.loadMarkets();
|
|
@@ -6430,7 +6430,7 @@ export default class bitget extends Exchange {
|
|
|
6430
6430
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#isolated-repay
|
|
6431
6431
|
* @param {string} code unified currency code of the currency to repay
|
|
6432
6432
|
* @param {string} amount the amount to repay
|
|
6433
|
-
* @param {object} [params] extra parameters specific to the
|
|
6433
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6434
6434
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
6435
6435
|
*/
|
|
6436
6436
|
await this.loadMarkets();
|
|
@@ -6668,7 +6668,7 @@ export default class bitget extends Exchange {
|
|
|
6668
6668
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
6669
6669
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-margin-interest-rate-and-max-borrowable-amount
|
|
6670
6670
|
* @param {string} symbol unified market symbol
|
|
6671
|
-
* @param {object} [params] extra parameters specific to the
|
|
6671
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6672
6672
|
* @param {string} [params.symbol] required for isolated margin
|
|
6673
6673
|
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
|
|
6674
6674
|
*/
|
|
@@ -6784,7 +6784,7 @@ export default class bitget extends Exchange {
|
|
|
6784
6784
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
6785
6785
|
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-margin-interest-rate-and-borrowable
|
|
6786
6786
|
* @param {string} code unified currency code
|
|
6787
|
-
* @param {object} [params] extra parameters specific to the
|
|
6787
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6788
6788
|
* @param {string} [params.symbol] required for isolated margin
|
|
6789
6789
|
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
6790
6790
|
*/
|
|
@@ -6868,7 +6868,7 @@ export default class bitget extends Exchange {
|
|
|
6868
6868
|
* @param {string} [symbol] unified market symbol when fetching interest in isolated markets
|
|
6869
6869
|
* @param {int} [since] the earliest time in ms to fetch borrow interest for
|
|
6870
6870
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
6871
|
-
* @param {object} [params] extra parameters specific to the
|
|
6871
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6872
6872
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
6873
6873
|
*/
|
|
6874
6874
|
await this.loadMarkets();
|
package/js/src/bithumb.js
CHANGED
|
@@ -189,7 +189,7 @@ export default class bithumb extends Exchange {
|
|
|
189
189
|
* @method
|
|
190
190
|
* @name bithumb#fetchMarkets
|
|
191
191
|
* @description retrieves data on all markets for bithumb
|
|
192
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
192
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
193
193
|
* @returns {object[]} an array of objects representing market data
|
|
194
194
|
*/
|
|
195
195
|
const result = [];
|
|
@@ -291,7 +291,7 @@ export default class bithumb extends Exchange {
|
|
|
291
291
|
* @method
|
|
292
292
|
* @name bithumb#fetchBalance
|
|
293
293
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
294
|
-
* @param {object} [params] extra parameters specific to the
|
|
294
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
295
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
296
296
|
*/
|
|
297
297
|
await this.loadMarkets();
|
|
@@ -308,7 +308,7 @@ export default class bithumb extends Exchange {
|
|
|
308
308
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
309
309
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
310
310
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
311
|
-
* @param {object} [params] extra parameters specific to the
|
|
311
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
312
312
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
313
313
|
*/
|
|
314
314
|
await this.loadMarkets();
|
|
@@ -397,9 +397,9 @@ export default class bithumb extends Exchange {
|
|
|
397
397
|
/**
|
|
398
398
|
* @method
|
|
399
399
|
* @name bithumb#fetchTickers
|
|
400
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
400
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
401
401
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
402
|
-
* @param {object} [params] extra parameters specific to the
|
|
402
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
403
403
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
404
404
|
*/
|
|
405
405
|
await this.loadMarkets();
|
|
@@ -456,7 +456,7 @@ export default class bithumb extends Exchange {
|
|
|
456
456
|
* @name bithumb#fetchTicker
|
|
457
457
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
458
458
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
459
|
-
* @param {object} [params] extra parameters specific to the
|
|
459
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
460
460
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
461
461
|
*/
|
|
462
462
|
await this.loadMarkets();
|
|
@@ -517,7 +517,7 @@ export default class bithumb extends Exchange {
|
|
|
517
517
|
* @param {string} timeframe the length of time each candle represents
|
|
518
518
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
519
519
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
520
|
-
* @param {object} [params] extra parameters specific to the
|
|
520
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
521
521
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
522
522
|
*/
|
|
523
523
|
await this.loadMarkets();
|
|
@@ -640,7 +640,7 @@ export default class bithumb extends Exchange {
|
|
|
640
640
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
641
641
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
642
642
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
643
|
-
* @param {object} [params] extra parameters specific to the
|
|
643
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
644
644
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
645
645
|
*/
|
|
646
646
|
await this.loadMarkets();
|
|
@@ -680,7 +680,7 @@ export default class bithumb extends Exchange {
|
|
|
680
680
|
* @param {string} side 'buy' or 'sell'
|
|
681
681
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
682
682
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
683
|
-
* @param {object} [params] extra parameters specific to the
|
|
683
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
684
684
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
685
685
|
*/
|
|
686
686
|
await this.loadMarkets();
|
|
@@ -717,7 +717,7 @@ export default class bithumb extends Exchange {
|
|
|
717
717
|
* @name bithumb#fetchOrder
|
|
718
718
|
* @description fetches information on an order made by the user
|
|
719
719
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
720
|
-
* @param {object} [params] extra parameters specific to the
|
|
720
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
721
721
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
722
722
|
*/
|
|
723
723
|
if (symbol === undefined) {
|
|
@@ -877,7 +877,7 @@ export default class bithumb extends Exchange {
|
|
|
877
877
|
* @param {string} symbol unified market symbol
|
|
878
878
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
879
879
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
880
|
-
* @param {object} [params] extra parameters specific to the
|
|
880
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
881
881
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
882
882
|
*/
|
|
883
883
|
if (symbol === undefined) {
|
|
@@ -924,7 +924,7 @@ export default class bithumb extends Exchange {
|
|
|
924
924
|
* @description cancels an open order
|
|
925
925
|
* @param {string} id order id
|
|
926
926
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
927
|
-
* @param {object} [params] extra parameters specific to the
|
|
927
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
928
928
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
929
929
|
*/
|
|
930
930
|
if (symbol === undefined) {
|
|
@@ -961,7 +961,7 @@ export default class bithumb extends Exchange {
|
|
|
961
961
|
* @param {float} amount the amount to withdraw
|
|
962
962
|
* @param {string} address the address to withdraw to
|
|
963
963
|
* @param {string} tag
|
|
964
|
-
* @param {object} [params] extra parameters specific to the
|
|
964
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
965
965
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
966
966
|
*/
|
|
967
967
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|