ccxt 4.0.73 → 4.0.75
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 +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/js/src/bitget.js
CHANGED
|
@@ -1482,7 +1482,7 @@ export default class bitget extends Exchange {
|
|
|
1482
1482
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-position-tier
|
|
1483
1483
|
* @param {string} symbol unified market symbol
|
|
1484
1484
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1485
|
-
* @returns {object} a [leverage tiers structure]{@link https://
|
|
1485
|
+
* @returns {object} a [leverage tiers structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}
|
|
1486
1486
|
*/
|
|
1487
1487
|
await this.loadMarkets();
|
|
1488
1488
|
const request = {};
|
|
@@ -1554,7 +1554,7 @@ export default class bitget extends Exchange {
|
|
|
1554
1554
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1555
1555
|
* @param {string} [params.pageNo] pageNo default 1
|
|
1556
1556
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
1557
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1557
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1558
1558
|
*/
|
|
1559
1559
|
await this.loadMarkets();
|
|
1560
1560
|
if (code === undefined) {
|
|
@@ -1609,7 +1609,7 @@ export default class bitget extends Exchange {
|
|
|
1609
1609
|
* @param {string} tag
|
|
1610
1610
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1611
1611
|
* @param {string} [params.chain] the chain to withdraw to
|
|
1612
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1612
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1613
1613
|
*/
|
|
1614
1614
|
this.checkAddress(address);
|
|
1615
1615
|
const chain = this.safeString2(params, 'chain', 'network');
|
|
@@ -1684,7 +1684,7 @@ export default class bitget extends Exchange {
|
|
|
1684
1684
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1685
1685
|
* @param {string} [params.pageNo] pageNo default 1
|
|
1686
1686
|
* @param {string} [params.pageSize] pageSize default 20. Max 100
|
|
1687
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1687
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1688
1688
|
*/
|
|
1689
1689
|
await this.loadMarkets();
|
|
1690
1690
|
if (code === undefined) {
|
|
@@ -1798,7 +1798,7 @@ export default class bitget extends Exchange {
|
|
|
1798
1798
|
* @description fetch the deposit address for a currency associated with this account
|
|
1799
1799
|
* @param {string} code unified currency code
|
|
1800
1800
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1801
|
-
* @returns {object} an [address structure]{@link https://
|
|
1801
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1802
1802
|
*/
|
|
1803
1803
|
await this.loadMarkets();
|
|
1804
1804
|
const networkCode = this.safeString(params, 'network');
|
|
@@ -1856,7 +1856,7 @@ export default class bitget extends Exchange {
|
|
|
1856
1856
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1857
1857
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1858
1858
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1859
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1859
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1860
1860
|
*/
|
|
1861
1861
|
await this.loadMarkets();
|
|
1862
1862
|
const market = this.market(symbol);
|
|
@@ -2013,7 +2013,7 @@ export default class bitget extends Exchange {
|
|
|
2013
2013
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
2014
2014
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2015
2015
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
2016
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
2016
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
2017
2017
|
*/
|
|
2018
2018
|
await this.loadMarkets();
|
|
2019
2019
|
const market = this.market(symbol);
|
|
@@ -2059,7 +2059,7 @@ export default class bitget extends Exchange {
|
|
|
2059
2059
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbol-ticker
|
|
2060
2060
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2061
2061
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
2062
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
2062
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
2063
2063
|
*/
|
|
2064
2064
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
2065
2065
|
await this.loadMarkets();
|
|
@@ -2334,7 +2334,7 @@ export default class bitget extends Exchange {
|
|
|
2334
2334
|
* @description fetch the trading fees for a market
|
|
2335
2335
|
* @param {string} symbol unified market symbol
|
|
2336
2336
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
2337
|
-
* @returns {object} a [fee structure]{@link https://
|
|
2337
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
2338
2338
|
*/
|
|
2339
2339
|
await this.loadMarkets();
|
|
2340
2340
|
const market = this.market(symbol);
|
|
@@ -2371,7 +2371,7 @@ export default class bitget extends Exchange {
|
|
|
2371
2371
|
* @name bitget#fetchTradingFees
|
|
2372
2372
|
* @description fetch the trading fees for multiple markets
|
|
2373
2373
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
2374
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
2374
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
2375
2375
|
*/
|
|
2376
2376
|
await this.loadMarkets();
|
|
2377
2377
|
const response = await this.publicSpotGetPublicProducts(params);
|
|
@@ -2813,7 +2813,7 @@ export default class bitget extends Exchange {
|
|
|
2813
2813
|
* @param {string} type 'market' or 'limit'
|
|
2814
2814
|
* @param {string} side 'buy' or 'sell' or 'open_long' or 'open_short' or 'close_long' or 'close_short'
|
|
2815
2815
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2816
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2816
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2817
2817
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
2818
2818
|
* @param {float} [params.triggerPrice] *swap only* The price at which a trigger order is triggered at
|
|
2819
2819
|
* @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
|
|
@@ -2823,7 +2823,7 @@ export default class bitget extends Exchange {
|
|
|
2823
2823
|
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
|
|
2824
2824
|
* @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
|
|
2825
2825
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
2826
|
-
* @returns {object} an [order structure]{@link https://
|
|
2826
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2827
2827
|
*/
|
|
2828
2828
|
await this.loadMarkets();
|
|
2829
2829
|
const market = this.market(symbol);
|
|
@@ -3006,9 +3006,9 @@ export default class bitget extends Exchange {
|
|
|
3006
3006
|
* @param {string} type 'market' or 'limit'
|
|
3007
3007
|
* @param {string} side 'buy' or 'sell'
|
|
3008
3008
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
3009
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
3009
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
3010
3010
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3011
|
-
* @returns {object} an [order structure]{@link https://
|
|
3011
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3012
3012
|
*/
|
|
3013
3013
|
await this.loadMarkets();
|
|
3014
3014
|
const market = this.market(symbol);
|
|
@@ -3107,7 +3107,7 @@ export default class bitget extends Exchange {
|
|
|
3107
3107
|
* @param {string} id order id
|
|
3108
3108
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3109
3109
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3110
|
-
* @returns {object} An [order structure]{@link https://
|
|
3110
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3111
3111
|
*/
|
|
3112
3112
|
this.checkRequiredSymbol('cancelOrder', symbol);
|
|
3113
3113
|
await this.loadMarkets();
|
|
@@ -3151,7 +3151,7 @@ export default class bitget extends Exchange {
|
|
|
3151
3151
|
* @param {string[]} ids order ids
|
|
3152
3152
|
* @param {string} symbol unified market symbol, default is undefined
|
|
3153
3153
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3154
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
3154
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3155
3155
|
*/
|
|
3156
3156
|
this.checkRequiredSymbol('cancelOrders', symbol);
|
|
3157
3157
|
await this.loadMarkets();
|
|
@@ -3220,7 +3220,7 @@ export default class bitget extends Exchange {
|
|
|
3220
3220
|
* @param {string} symbol unified market symbol
|
|
3221
3221
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3222
3222
|
* @param {string} [params.code] marginCoin unified currency code
|
|
3223
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
3223
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3224
3224
|
*/
|
|
3225
3225
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
3226
3226
|
await this.loadMarkets();
|
|
@@ -3288,7 +3288,7 @@ export default class bitget extends Exchange {
|
|
|
3288
3288
|
* @description fetches information on an order made by the user
|
|
3289
3289
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3290
3290
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3291
|
-
* @returns {object} An [order structure]{@link https://
|
|
3291
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3292
3292
|
*/
|
|
3293
3293
|
this.checkRequiredSymbol('fetchOrder', symbol);
|
|
3294
3294
|
await this.loadMarkets();
|
|
@@ -3376,7 +3376,7 @@ export default class bitget extends Exchange {
|
|
|
3376
3376
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
3377
3377
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
3378
3378
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3379
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
3379
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3380
3380
|
*/
|
|
3381
3381
|
await this.loadMarkets();
|
|
3382
3382
|
const request = {};
|
|
@@ -3547,7 +3547,7 @@ export default class bitget extends Exchange {
|
|
|
3547
3547
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
3548
3548
|
* @param {int} [limit] the max number of closed orders to return
|
|
3549
3549
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3550
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
3550
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3551
3551
|
*/
|
|
3552
3552
|
await this.loadMarkets();
|
|
3553
3553
|
this.checkRequiredSymbol('fetchClosedOrders', symbol);
|
|
@@ -3574,7 +3574,7 @@ export default class bitget extends Exchange {
|
|
|
3574
3574
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
3575
3575
|
* @param {int} [limit] the max number of canceled orders to return
|
|
3576
3576
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3577
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
3577
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
3578
3578
|
*/
|
|
3579
3579
|
await this.loadMarkets();
|
|
3580
3580
|
this.checkRequiredSymbol('fetchCanceledOrders', symbol);
|
|
@@ -3757,7 +3757,7 @@ export default class bitget extends Exchange {
|
|
|
3757
3757
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
3758
3758
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
3759
3759
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3760
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
3760
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
3761
3761
|
*/
|
|
3762
3762
|
await this.loadMarkets();
|
|
3763
3763
|
let currency = undefined;
|
|
@@ -3845,7 +3845,7 @@ export default class bitget extends Exchange {
|
|
|
3845
3845
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3846
3846
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3847
3847
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3848
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
3848
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3849
3849
|
*/
|
|
3850
3850
|
this.checkRequiredSymbol('fetchMyTrades', symbol);
|
|
3851
3851
|
await this.loadMarkets();
|
|
@@ -3896,7 +3896,7 @@ export default class bitget extends Exchange {
|
|
|
3896
3896
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3897
3897
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3898
3898
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3899
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
3899
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3900
3900
|
*/
|
|
3901
3901
|
this.checkRequiredSymbol('fetchOrderTrades', symbol);
|
|
3902
3902
|
await this.loadMarkets();
|
|
@@ -3945,7 +3945,7 @@ export default class bitget extends Exchange {
|
|
|
3945
3945
|
* @description fetch data on a single open contract trade position
|
|
3946
3946
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
3947
3947
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3948
|
-
* @returns {object} a [position structure]{@link https://
|
|
3948
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3949
3949
|
*/
|
|
3950
3950
|
await this.loadMarkets();
|
|
3951
3951
|
const market = this.market(symbol);
|
|
@@ -3994,7 +3994,7 @@ export default class bitget extends Exchange {
|
|
|
3994
3994
|
* @description fetch all open positions
|
|
3995
3995
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3996
3996
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
3997
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
3997
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3998
3998
|
*/
|
|
3999
3999
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
4000
4000
|
await this.loadMarkets();
|
|
@@ -4309,7 +4309,7 @@ export default class bitget extends Exchange {
|
|
|
4309
4309
|
* @description fetch the current funding rate
|
|
4310
4310
|
* @param {string} symbol unified market symbol
|
|
4311
4311
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4312
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
4312
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
4313
4313
|
*/
|
|
4314
4314
|
await this.loadMarkets();
|
|
4315
4315
|
const market = this.market(symbol);
|
|
@@ -4373,7 +4373,7 @@ export default class bitget extends Exchange {
|
|
|
4373
4373
|
* @param {int} [since] the starting timestamp in milliseconds
|
|
4374
4374
|
* @param {int} [limit] the number of entries to return
|
|
4375
4375
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4376
|
-
* @returns {object[]} a list of [funding history structures]{@link https://
|
|
4376
|
+
* @returns {object[]} a list of [funding history structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
4377
4377
|
*/
|
|
4378
4378
|
await this.loadMarkets();
|
|
4379
4379
|
const market = this.market(symbol);
|
|
@@ -4513,7 +4513,7 @@ export default class bitget extends Exchange {
|
|
|
4513
4513
|
* @param {string} symbol unified market symbol
|
|
4514
4514
|
* @param {float} amount the amount of margin to remove
|
|
4515
4515
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4516
|
-
* @returns {object} a [margin structure]{@link https://
|
|
4516
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
|
|
4517
4517
|
*/
|
|
4518
4518
|
if (amount > 0) {
|
|
4519
4519
|
throw new BadRequest(this.id + ' reduceMargin() amount parameter must be a negative value');
|
|
@@ -4532,7 +4532,7 @@ export default class bitget extends Exchange {
|
|
|
4532
4532
|
* @param {string} symbol unified market symbol
|
|
4533
4533
|
* @param {float} amount amount of margin to add
|
|
4534
4534
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4535
|
-
* @returns {object} a [margin structure]{@link https://
|
|
4535
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
4536
4536
|
*/
|
|
4537
4537
|
const holdSide = this.safeString(params, 'holdSide');
|
|
4538
4538
|
if (holdSide === undefined) {
|
|
@@ -4547,7 +4547,7 @@ export default class bitget extends Exchange {
|
|
|
4547
4547
|
* @description fetch the set leverage for a market
|
|
4548
4548
|
* @param {string} symbol unified market symbol
|
|
4549
4549
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4550
|
-
* @returns {object} a [leverage structure]{@link https://
|
|
4550
|
+
* @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
|
|
4551
4551
|
*/
|
|
4552
4552
|
await this.loadMarkets();
|
|
4553
4553
|
const market = this.market(symbol);
|
|
@@ -4682,7 +4682,7 @@ export default class bitget extends Exchange {
|
|
|
4682
4682
|
* @see https://bitgetlimited.github.io/apidoc/en/mix/#get-open-interest
|
|
4683
4683
|
* @param {string} symbol Unified CCXT market symbol
|
|
4684
4684
|
* @param {object} [params] exchange specific parameters
|
|
4685
|
-
* @returns {object} an open interest structure{@link https://
|
|
4685
|
+
* @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
|
|
4686
4686
|
*/
|
|
4687
4687
|
await this.loadMarkets();
|
|
4688
4688
|
const market = this.market(symbol);
|
|
@@ -4718,7 +4718,7 @@ export default class bitget extends Exchange {
|
|
|
4718
4718
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4719
4719
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4720
4720
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
4721
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
4721
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4722
4722
|
*/
|
|
4723
4723
|
await this.loadMarkets();
|
|
4724
4724
|
let type = undefined;
|
|
@@ -4776,7 +4776,7 @@ export default class bitget extends Exchange {
|
|
|
4776
4776
|
*
|
|
4777
4777
|
* EXCHANGE SPECIFIC PARAMS
|
|
4778
4778
|
* @param {string} [params.clientOid] custom id
|
|
4779
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
4779
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4780
4780
|
*/
|
|
4781
4781
|
await this.loadMarkets();
|
|
4782
4782
|
const currency = this.currency(code);
|
package/js/src/bithumb.js
CHANGED
|
@@ -305,7 +305,7 @@ export default class bithumb extends Exchange {
|
|
|
305
305
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
306
306
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
307
307
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
308
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
308
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
309
309
|
*/
|
|
310
310
|
await this.loadMarkets();
|
|
311
311
|
const market = this.market(symbol);
|
|
@@ -395,7 +395,7 @@ export default class bithumb extends Exchange {
|
|
|
395
395
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
396
396
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
397
397
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
398
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
398
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
399
399
|
*/
|
|
400
400
|
await this.loadMarkets();
|
|
401
401
|
const result = {};
|
|
@@ -449,7 +449,7 @@ export default class bithumb extends Exchange {
|
|
|
449
449
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
450
450
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
451
451
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
452
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
452
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
453
453
|
*/
|
|
454
454
|
await this.loadMarkets();
|
|
455
455
|
const market = this.market(symbol);
|
|
@@ -668,9 +668,9 @@ export default class bithumb extends Exchange {
|
|
|
668
668
|
* @param {string} type 'market' or 'limit'
|
|
669
669
|
* @param {string} side 'buy' or 'sell'
|
|
670
670
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
671
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
671
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
672
672
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
673
|
-
* @returns {object} an [order structure]{@link https://
|
|
673
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
674
674
|
*/
|
|
675
675
|
await this.loadMarkets();
|
|
676
676
|
const market = this.market(symbol);
|
|
@@ -707,7 +707,7 @@ export default class bithumb extends Exchange {
|
|
|
707
707
|
* @description fetches information on an order made by the user
|
|
708
708
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
709
709
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
710
|
-
* @returns {object} An [order structure]{@link https://
|
|
710
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
711
711
|
*/
|
|
712
712
|
if (symbol === undefined) {
|
|
713
713
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -867,7 +867,7 @@ export default class bithumb extends Exchange {
|
|
|
867
867
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
868
868
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
869
869
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
870
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
870
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
871
871
|
*/
|
|
872
872
|
if (symbol === undefined) {
|
|
873
873
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -914,7 +914,7 @@ export default class bithumb extends Exchange {
|
|
|
914
914
|
* @param {string} id order id
|
|
915
915
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
916
916
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
917
|
-
* @returns {object} An [order structure]{@link https://
|
|
917
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
918
918
|
*/
|
|
919
919
|
const side_in_params = ('side' in params);
|
|
920
920
|
if (!side_in_params) {
|
|
@@ -951,7 +951,7 @@ export default class bithumb extends Exchange {
|
|
|
951
951
|
* @param {string} address the address to withdraw to
|
|
952
952
|
* @param {string} tag
|
|
953
953
|
* @param {object} [params] extra parameters specific to the bithumb api endpoint
|
|
954
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
954
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
955
955
|
*/
|
|
956
956
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
957
957
|
this.checkAddress(address);
|