ccxt 4.1.64 → 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 +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- 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 +1 -0
- 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 +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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 +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- 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/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 +1 -0
- 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 +28 -28
- package/js/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/src/gate.js
CHANGED
|
@@ -968,7 +968,7 @@ class gate extends gate$1 {
|
|
|
968
968
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts // swap
|
|
969
969
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts-2 // future
|
|
970
970
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-the-contracts-with-specified-underlying-and-expiration-time // option
|
|
971
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
971
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
972
972
|
* @returns {object[]} an array of objects representing market data
|
|
973
973
|
*/
|
|
974
974
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -1565,7 +1565,7 @@ class gate extends gate$1 {
|
|
|
1565
1565
|
* @name gate#fetchCurrencies
|
|
1566
1566
|
* @description fetches all available currencies on an exchange
|
|
1567
1567
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-currencies-details
|
|
1568
|
-
* @param {object} [params] extra parameters specific to the
|
|
1568
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1569
1569
|
* @returns {object} an associative dictionary of currencies
|
|
1570
1570
|
*/
|
|
1571
1571
|
// sandbox/testnet only supports future markets
|
|
@@ -1677,7 +1677,7 @@ class gate extends gate$1 {
|
|
|
1677
1677
|
* @description fetch the current funding rate
|
|
1678
1678
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-a-single-contract
|
|
1679
1679
|
* @param {string} symbol unified market symbol
|
|
1680
|
-
* @param {object} [params] extra parameters specific to the
|
|
1680
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1681
1681
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1682
1682
|
*/
|
|
1683
1683
|
await this.loadMarkets();
|
|
@@ -1740,7 +1740,7 @@ class gate extends gate$1 {
|
|
|
1740
1740
|
* @description fetch the funding rate for multiple markets
|
|
1741
1741
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
1742
1742
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1743
|
-
* @param {object} [params] extra parameters specific to the
|
|
1743
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1744
1744
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
1745
1745
|
*/
|
|
1746
1746
|
await this.loadMarkets();
|
|
@@ -1911,7 +1911,7 @@ class gate extends gate$1 {
|
|
|
1911
1911
|
* @description fetch the deposit address for a currency associated with this account
|
|
1912
1912
|
* @see https://www.gate.io/docs/developers/apiv4/en/#generate-currency-deposit-address
|
|
1913
1913
|
* @param {string} code unified currency code
|
|
1914
|
-
* @param {object} [params] extra parameters specific to the
|
|
1914
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1915
1915
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1916
1916
|
*/
|
|
1917
1917
|
await this.loadMarkets();
|
|
@@ -1970,7 +1970,7 @@ class gate extends gate$1 {
|
|
|
1970
1970
|
* @description fetch the trading fees for a market
|
|
1971
1971
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
1972
1972
|
* @param {string} symbol unified market symbol
|
|
1973
|
-
* @param {object} [params] extra parameters specific to the
|
|
1973
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1974
1974
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1975
1975
|
*/
|
|
1976
1976
|
await this.loadMarkets();
|
|
@@ -2001,7 +2001,7 @@ class gate extends gate$1 {
|
|
|
2001
2001
|
* @name gate#fetchTradingFees
|
|
2002
2002
|
* @description fetch the trading fees for multiple markets
|
|
2003
2003
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2004
|
-
* @param {object} [params] extra parameters specific to the
|
|
2004
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2005
2005
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2006
2006
|
*/
|
|
2007
2007
|
await this.loadMarkets();
|
|
@@ -2067,7 +2067,7 @@ class gate extends gate$1 {
|
|
|
2067
2067
|
* @description please use fetchDepositWithdrawFees instead
|
|
2068
2068
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2069
2069
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2070
|
-
* @param {object} [params] extra parameters specific to the
|
|
2070
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2071
2071
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2072
2072
|
*/
|
|
2073
2073
|
await this.loadMarkets();
|
|
@@ -2125,7 +2125,7 @@ class gate extends gate$1 {
|
|
|
2125
2125
|
* @description fetch deposit and withdraw fees
|
|
2126
2126
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2127
2127
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2128
|
-
* @param {object} [params] extra parameters specific to the
|
|
2128
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2129
2129
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2130
2130
|
*/
|
|
2131
2131
|
await this.loadMarkets();
|
|
@@ -2210,7 +2210,7 @@ class gate extends gate$1 {
|
|
|
2210
2210
|
* @param {string} symbol unified market symbol
|
|
2211
2211
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2212
2212
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
2213
|
-
* @param {object} [params] extra parameters specific to the
|
|
2213
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2214
2214
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
2215
2215
|
*/
|
|
2216
2216
|
await this.loadMarkets();
|
|
@@ -2292,7 +2292,7 @@ class gate extends gate$1 {
|
|
|
2292
2292
|
* @see https://www.gate.io/docs/developers/apiv4/en/#options-order-book
|
|
2293
2293
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2294
2294
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2295
|
-
* @param {object} [params] extra parameters specific to the
|
|
2295
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2296
2296
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
2297
2297
|
*/
|
|
2298
2298
|
await this.loadMarkets();
|
|
@@ -2403,7 +2403,7 @@ class gate extends gate$1 {
|
|
|
2403
2403
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2404
2404
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2405
2405
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2406
|
-
* @param {object} [params] extra parameters specific to the
|
|
2406
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2407
2407
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2408
2408
|
*/
|
|
2409
2409
|
await this.loadMarkets();
|
|
@@ -2553,13 +2553,13 @@ class gate extends gate$1 {
|
|
|
2553
2553
|
/**
|
|
2554
2554
|
* @method
|
|
2555
2555
|
* @name gate#fetchTickers
|
|
2556
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
2556
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2557
2557
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-details-of-a-specifc-order
|
|
2558
2558
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers
|
|
2559
2559
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2560
2560
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2561
2561
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2562
|
-
* @param {object} [params] extra parameters specific to the
|
|
2562
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2563
2563
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2564
2564
|
*/
|
|
2565
2565
|
await this.loadMarkets();
|
|
@@ -2826,7 +2826,7 @@ class gate extends gate$1 {
|
|
|
2826
2826
|
* @param {string} timeframe the length of time each candle represents
|
|
2827
2827
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2828
2828
|
* @param {int} [limit] the maximum amount of candles to fetch, limit is conflicted with since and params["until"], If either since and params["until"] is specified, request will be rejected
|
|
2829
|
-
* @param {object} [params] extra parameters specific to the
|
|
2829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2830
2830
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
2831
2831
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
2832
2832
|
* @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)
|
|
@@ -2911,7 +2911,7 @@ class gate extends gate$1 {
|
|
|
2911
2911
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2912
2912
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2913
2913
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2914
|
-
* @param {object} [params] extra parameters specific to the
|
|
2914
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2915
2915
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
2916
2916
|
*/
|
|
2917
2917
|
if (symbol === undefined) {
|
|
@@ -3008,7 +3008,7 @@ class gate extends gate$1 {
|
|
|
3008
3008
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
3009
3009
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
3010
3010
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
3011
|
-
* @param {object} [params] extra parameters specific to the
|
|
3011
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3012
3012
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch
|
|
3013
3013
|
* @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)
|
|
3014
3014
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -3116,7 +3116,7 @@ class gate extends gate$1 {
|
|
|
3116
3116
|
* @param {string} symbol unified market symbol
|
|
3117
3117
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3118
3118
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3119
|
-
* @param {object} [params] extra parameters specific to the
|
|
3119
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3120
3120
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3121
3121
|
*/
|
|
3122
3122
|
if (symbol === undefined) {
|
|
@@ -3157,7 +3157,7 @@ class gate extends gate$1 {
|
|
|
3157
3157
|
* @param {string} symbol unified market symbol
|
|
3158
3158
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3159
3159
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3160
|
-
* @param {object} [params] extra parameters specific to the
|
|
3160
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3161
3161
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
3162
3162
|
* @param {string} [params.type] 'spot', 'swap', or 'future', if not provided this.options['defaultMarginMode'] is used
|
|
3163
3163
|
* @param {int} [params.until] The latest timestamp, in ms, that fetched trades were made
|
|
@@ -3436,7 +3436,7 @@ class gate extends gate$1 {
|
|
|
3436
3436
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3437
3437
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3438
3438
|
* @param {int} [params.until] end time in ms
|
|
3439
|
-
* @param {object} [params] extra parameters specific to the
|
|
3439
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3440
3440
|
* @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)
|
|
3441
3441
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3442
3442
|
*/
|
|
@@ -3473,7 +3473,7 @@ class gate extends gate$1 {
|
|
|
3473
3473
|
* @param {string} code unified currency code
|
|
3474
3474
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3475
3475
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3476
|
-
* @param {object} [params] extra parameters specific to the
|
|
3476
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3477
3477
|
* @param {int} [params.until] end time in ms
|
|
3478
3478
|
* @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)
|
|
3479
3479
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
@@ -3512,7 +3512,7 @@ class gate extends gate$1 {
|
|
|
3512
3512
|
* @param {float} amount the amount to withdraw
|
|
3513
3513
|
* @param {string} address the address to withdraw to
|
|
3514
3514
|
* @param {string} tag
|
|
3515
|
-
* @param {object} [params] extra parameters specific to the
|
|
3515
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3516
3516
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3517
3517
|
*/
|
|
3518
3518
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3668,7 +3668,7 @@ class gate extends gate$1 {
|
|
|
3668
3668
|
* @param {string} side 'buy' or 'sell'
|
|
3669
3669
|
* @param {float} amount the amount of currency to trade
|
|
3670
3670
|
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
3671
|
-
* @param {object} [params]
|
|
3671
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3672
3672
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
3673
3673
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
3674
3674
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4088,7 +4088,7 @@ class gate extends gate$1 {
|
|
|
4088
4088
|
* @param {string} side 'buy' or 'sell'
|
|
4089
4089
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
4090
4090
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
4091
|
-
* @param {object} [params] extra parameters specific to the
|
|
4091
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4092
4092
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4093
4093
|
*/
|
|
4094
4094
|
await this.loadMarkets();
|
|
@@ -4484,7 +4484,7 @@ class gate extends gate$1 {
|
|
|
4484
4484
|
* @param {string} symbol unified market symbol
|
|
4485
4485
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4486
4486
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
4487
|
-
* @param {object} [params] extra parameters specific to the
|
|
4487
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4488
4488
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4489
4489
|
* @param {string} [params.type] spot, margin, swap or future, if not provided this.options['defaultType'] is used
|
|
4490
4490
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for type='margin', if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4507,7 +4507,7 @@ class gate extends gate$1 {
|
|
|
4507
4507
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4508
4508
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4509
4509
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
4510
|
-
* @param {object} [params] extra parameters specific to the
|
|
4510
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4511
4511
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4512
4512
|
* @param {string} [params.type] spot, swap or future, if not provided this.options['defaultType'] is used
|
|
4513
4513
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4831,7 +4831,7 @@ class gate extends gate$1 {
|
|
|
4831
4831
|
* @see https://www.gate.io/docs/developers/apiv4/en/#cancel-all-open-orders-matched-2
|
|
4832
4832
|
* @see https://www.gate.io/docs/developers/apiv4/en/#cancel-all-open-orders-matched-3
|
|
4833
4833
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
4834
|
-
* @param {object} [params] extra parameters specific to the
|
|
4834
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4835
4835
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4836
4836
|
*/
|
|
4837
4837
|
await this.loadMarkets();
|
|
@@ -4889,7 +4889,7 @@ class gate extends gate$1 {
|
|
|
4889
4889
|
* @param {float} amount the amount of currency to transfer
|
|
4890
4890
|
* @param {string} fromAccount the account to transfer currency from
|
|
4891
4891
|
* @param {string} toAccount the account to transfer currency to
|
|
4892
|
-
* @param {object} [params] extra parameters specific to the
|
|
4892
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4893
4893
|
* @param {string} [params.symbol] Unified market symbol *required for type == margin*
|
|
4894
4894
|
* @returns A [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4895
4895
|
*/
|
|
@@ -4965,7 +4965,7 @@ class gate extends gate$1 {
|
|
|
4965
4965
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-leverage-2
|
|
4966
4966
|
* @param {float} leverage the rate of leverage
|
|
4967
4967
|
* @param {string} symbol unified market symbol
|
|
4968
|
-
* @param {object} [params] extra parameters specific to the
|
|
4968
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4969
4969
|
* @returns {object} response from the exchange
|
|
4970
4970
|
*/
|
|
4971
4971
|
if (symbol === undefined) {
|
|
@@ -5146,7 +5146,7 @@ class gate extends gate$1 {
|
|
|
5146
5146
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-single-position-2
|
|
5147
5147
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-specified-contract-position
|
|
5148
5148
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
5149
|
-
* @param {object} [params] extra parameters specific to the
|
|
5149
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5150
5150
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
5151
5151
|
*/
|
|
5152
5152
|
await this.loadMarkets();
|
|
@@ -5228,7 +5228,7 @@ class gate extends gate$1 {
|
|
|
5228
5228
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-positions-of-a-user-2
|
|
5229
5229
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-user-s-positions-of-specified-underlying
|
|
5230
5230
|
* @param {string[]|undefined} symbols Not used by gate, but parsed internally by CCXT
|
|
5231
|
-
* @param {object} [params] extra parameters specific to the
|
|
5231
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5232
5232
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
5233
5233
|
* @param {string} [params.type] swap, future or option, if not provided this.options['defaultType'] is used
|
|
5234
5234
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -5332,7 +5332,7 @@ class gate extends gate$1 {
|
|
|
5332
5332
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
5333
5333
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts-2
|
|
5334
5334
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
5335
|
-
* @param {object} [params] extra parameters specific to the
|
|
5335
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5336
5336
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
5337
5337
|
*/
|
|
5338
5338
|
await this.loadMarkets();
|
|
@@ -5697,7 +5697,7 @@ class gate extends gate$1 {
|
|
|
5697
5697
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-margin-2
|
|
5698
5698
|
* @param {string} symbol unified market symbol
|
|
5699
5699
|
* @param {float} amount the amount of margin to remove
|
|
5700
|
-
* @param {object} [params] extra parameters specific to the
|
|
5700
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5701
5701
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
5702
5702
|
*/
|
|
5703
5703
|
return await this.modifyMarginHelper(symbol, -amount, params);
|
|
@@ -5711,7 +5711,7 @@ class gate extends gate$1 {
|
|
|
5711
5711
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-margin-2
|
|
5712
5712
|
* @param {string} symbol unified market symbol
|
|
5713
5713
|
* @param {float} amount amount of margin to add
|
|
5714
|
-
* @param {object} [params] extra parameters specific to the
|
|
5714
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5715
5715
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
5716
5716
|
*/
|
|
5717
5717
|
return await this.modifyMarginHelper(symbol, amount, params);
|
|
@@ -5996,7 +5996,7 @@ class gate extends gate$1 {
|
|
|
5996
5996
|
* @param {string} code unified currency code
|
|
5997
5997
|
* @param {int} [since] timestamp in ms of the earliest ledger entry
|
|
5998
5998
|
* @param {int} [limit] max number of ledger entries to return
|
|
5999
|
-
* @param {object} [params] extra parameters specific to the
|
|
5999
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6000
6000
|
* @param {int} [params.until] end time in ms
|
|
6001
6001
|
* @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)
|
|
6002
6002
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -6236,7 +6236,7 @@ class gate extends gate$1 {
|
|
|
6236
6236
|
* @see https://www.gate.io/docs/developers/apiv4/en/#enable-or-disable-dual-mode
|
|
6237
6237
|
* @param {bool} hedged set to true to enable dual mode
|
|
6238
6238
|
* @param {string|undefined} symbol if passed, dual mode is set for all markets with the same settle currency
|
|
6239
|
-
* @param {object} params extra parameters specific to the
|
|
6239
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
6240
6240
|
* @param {string} params.settle settle currency
|
|
6241
6241
|
* @returns {object} response from the exchange
|
|
6242
6242
|
*/
|
|
@@ -6293,7 +6293,7 @@ class gate extends gate$1 {
|
|
|
6293
6293
|
* @param {string} symbol unified CCXT market symbol
|
|
6294
6294
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
6295
6295
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
6296
|
-
* @param {object} [params] exchange specific parameters for the
|
|
6296
|
+
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
6297
6297
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
6298
6298
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
6299
6299
|
*/
|
|
@@ -6339,7 +6339,7 @@ class gate extends gate$1 {
|
|
|
6339
6339
|
* @param {string} symbol unified CCXT market symbol
|
|
6340
6340
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
6341
6341
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
6342
|
-
* @param {object} [params] exchange specific parameters for the
|
|
6342
|
+
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
6343
6343
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
6344
6344
|
*/
|
|
6345
6345
|
if (symbol === undefined) {
|
|
@@ -6481,7 +6481,7 @@ class gate extends gate$1 {
|
|
|
6481
6481
|
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
6482
6482
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
6483
6483
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
6484
|
-
* @param {object} [params] extra parameters specific to the
|
|
6484
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6485
6485
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
6486
6486
|
*/
|
|
6487
6487
|
await this.loadMarkets();
|
package/dist/cjs/src/gemini.js
CHANGED
|
@@ -392,7 +392,7 @@ class gemini extends gemini$1 {
|
|
|
392
392
|
* @method
|
|
393
393
|
* @name gemini#fetchMarkets
|
|
394
394
|
* @description retrieves data on all markets for gemini
|
|
395
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
395
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
396
396
|
* @returns {object[]} an array of objects representing market data
|
|
397
397
|
*/
|
|
398
398
|
const method = this.safeValue(this.options, 'fetchMarketsMethod', 'fetch_markets_from_api');
|
|
@@ -654,7 +654,7 @@ class gemini extends gemini$1 {
|
|
|
654
654
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
655
655
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
656
656
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
657
|
-
* @param {object} [params] extra parameters specific to the
|
|
657
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
658
658
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
659
659
|
*/
|
|
660
660
|
await this.loadMarkets();
|
|
@@ -731,7 +731,7 @@ class gemini extends gemini$1 {
|
|
|
731
731
|
* @name gemini#fetchTicker
|
|
732
732
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
733
733
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
734
|
-
* @param {object} [params] extra parameters specific to the
|
|
734
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
735
735
|
* @param {object} [params.fetchTickerMethod] 'fetchTickerV2', 'fetchTickerV1' or 'fetchTickerV1AndV2' - 'fetchTickerV1' for original ccxt.gemini.fetchTicker - 'fetchTickerV1AndV2' for 2 api calls to get the result of both fetchTicker methods - default = 'fetchTickerV1'
|
|
736
736
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
737
737
|
*/
|
|
@@ -842,9 +842,9 @@ class gemini extends gemini$1 {
|
|
|
842
842
|
/**
|
|
843
843
|
* @method
|
|
844
844
|
* @name gemini#fetchTickers
|
|
845
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
845
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
846
846
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
847
|
-
* @param {object} [params] extra parameters specific to the
|
|
847
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
848
848
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
849
849
|
*/
|
|
850
850
|
await this.loadMarkets();
|
|
@@ -937,7 +937,7 @@ class gemini extends gemini$1 {
|
|
|
937
937
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
938
938
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
939
939
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
940
|
-
* @param {object} [params] extra parameters specific to the
|
|
940
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
941
941
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
942
942
|
*/
|
|
943
943
|
await this.loadMarkets();
|
|
@@ -985,7 +985,7 @@ class gemini extends gemini$1 {
|
|
|
985
985
|
* @method
|
|
986
986
|
* @name gemini#fetchTradingFees
|
|
987
987
|
* @description fetch the trading fees for multiple markets
|
|
988
|
-
* @param {object} [params] extra parameters specific to the
|
|
988
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
989
989
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
990
990
|
*/
|
|
991
991
|
await this.loadMarkets();
|
|
@@ -1043,7 +1043,7 @@ class gemini extends gemini$1 {
|
|
|
1043
1043
|
* @method
|
|
1044
1044
|
* @name gemini#fetchBalance
|
|
1045
1045
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1046
|
-
* @param {object} [params] extra parameters specific to the
|
|
1046
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1047
1047
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1048
1048
|
*/
|
|
1049
1049
|
await this.loadMarkets();
|
|
@@ -1225,7 +1225,7 @@ class gemini extends gemini$1 {
|
|
|
1225
1225
|
* @name gemini#fetchOrder
|
|
1226
1226
|
* @description fetches information on an order made by the user
|
|
1227
1227
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1228
|
-
* @param {object} [params] extra parameters specific to the
|
|
1228
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1229
1229
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1230
1230
|
*/
|
|
1231
1231
|
await this.loadMarkets();
|
|
@@ -1266,7 +1266,7 @@ class gemini extends gemini$1 {
|
|
|
1266
1266
|
* @param {string} symbol unified market symbol
|
|
1267
1267
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1268
1268
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1269
|
-
* @param {object} [params] extra parameters specific to the
|
|
1269
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1270
1270
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1271
1271
|
*/
|
|
1272
1272
|
await this.loadMarkets();
|
|
@@ -1313,7 +1313,7 @@ class gemini extends gemini$1 {
|
|
|
1313
1313
|
* @param {string} side 'buy' or 'sell'
|
|
1314
1314
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1315
1315
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1316
|
-
* @param {object} [params] extra parameters specific to the
|
|
1316
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1317
1317
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1318
1318
|
*/
|
|
1319
1319
|
await this.loadMarkets();
|
|
@@ -1407,7 +1407,7 @@ class gemini extends gemini$1 {
|
|
|
1407
1407
|
* @description cancels an open order
|
|
1408
1408
|
* @param {string} id order id
|
|
1409
1409
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1410
|
-
* @param {object} [params] extra parameters specific to the
|
|
1410
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1411
1411
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1412
1412
|
*/
|
|
1413
1413
|
await this.loadMarkets();
|
|
@@ -1449,7 +1449,7 @@ class gemini extends gemini$1 {
|
|
|
1449
1449
|
* @param {string} symbol unified market symbol
|
|
1450
1450
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1451
1451
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1452
|
-
* @param {object} [params] extra parameters specific to the
|
|
1452
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1453
1453
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1454
1454
|
*/
|
|
1455
1455
|
if (symbol === undefined) {
|
|
@@ -1478,7 +1478,7 @@ class gemini extends gemini$1 {
|
|
|
1478
1478
|
* @param {float} amount the amount to withdraw
|
|
1479
1479
|
* @param {string} address the address to withdraw to
|
|
1480
1480
|
* @param {string} tag
|
|
1481
|
-
* @param {object} [params] extra parameters specific to the
|
|
1481
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1482
1482
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1483
1483
|
*/
|
|
1484
1484
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1535,7 +1535,7 @@ class gemini extends gemini$1 {
|
|
|
1535
1535
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1536
1536
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1537
1537
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1538
|
-
* @param {object} [params] extra parameters specific to the
|
|
1538
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1539
1539
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1540
1540
|
*/
|
|
1541
1541
|
await this.loadMarkets();
|
|
@@ -1656,7 +1656,7 @@ class gemini extends gemini$1 {
|
|
|
1656
1656
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
1657
1657
|
* @see https://docs.gemini.com/rest-api/#get-deposit-addresses
|
|
1658
1658
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1659
|
-
* @param {object} [params] extra parameters specific to the
|
|
1659
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1660
1660
|
* @param {string} [params.network] *required* The chain of currency
|
|
1661
1661
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
1662
1662
|
*/
|
|
@@ -1744,7 +1744,7 @@ class gemini extends gemini$1 {
|
|
|
1744
1744
|
* @name gemini#createDepositAddress
|
|
1745
1745
|
* @description create a currency deposit address
|
|
1746
1746
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1747
|
-
* @param {object} [params] extra parameters specific to the
|
|
1747
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1748
1748
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1749
1749
|
*/
|
|
1750
1750
|
await this.loadMarkets();
|
|
@@ -1771,7 +1771,7 @@ class gemini extends gemini$1 {
|
|
|
1771
1771
|
* @param {string} timeframe the length of time each candle represents
|
|
1772
1772
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1773
1773
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1774
|
-
* @param {object} [params] extra parameters specific to the
|
|
1774
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1775
1775
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1776
1776
|
*/
|
|
1777
1777
|
await this.loadMarkets();
|