ccxt 4.1.64 → 4.1.66
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 +2790 -2607
- 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 +232 -80
- 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 +46 -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.d.ts +20 -1
- package/js/src/base/Exchange.js +232 -80
- 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 +46 -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/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 +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/skip-tests.json +14 -7
package/dist/cjs/src/gate.js
CHANGED
|
@@ -942,6 +942,13 @@ class gate extends gate$1 {
|
|
|
942
942
|
}
|
|
943
943
|
else if (symbol in this.markets_by_id) {
|
|
944
944
|
const markets = this.markets_by_id[symbol];
|
|
945
|
+
const defaultType = this.safeString2(this.options, 'defaultType', 'defaultSubType', 'spot');
|
|
946
|
+
for (let i = 0; i < markets.length; i++) {
|
|
947
|
+
const market = markets[i];
|
|
948
|
+
if (market[defaultType]) {
|
|
949
|
+
return market;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
945
952
|
return markets[0];
|
|
946
953
|
}
|
|
947
954
|
else if ((symbol.indexOf('-C') > -1) || (symbol.indexOf('-P') > -1)) {
|
|
@@ -968,7 +975,7 @@ class gate extends gate$1 {
|
|
|
968
975
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts // swap
|
|
969
976
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts-2 // future
|
|
970
977
|
* @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
|
|
978
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
972
979
|
* @returns {object[]} an array of objects representing market data
|
|
973
980
|
*/
|
|
974
981
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -1565,7 +1572,7 @@ class gate extends gate$1 {
|
|
|
1565
1572
|
* @name gate#fetchCurrencies
|
|
1566
1573
|
* @description fetches all available currencies on an exchange
|
|
1567
1574
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-currencies-details
|
|
1568
|
-
* @param {object} [params] extra parameters specific to the
|
|
1575
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1569
1576
|
* @returns {object} an associative dictionary of currencies
|
|
1570
1577
|
*/
|
|
1571
1578
|
// sandbox/testnet only supports future markets
|
|
@@ -1677,7 +1684,7 @@ class gate extends gate$1 {
|
|
|
1677
1684
|
* @description fetch the current funding rate
|
|
1678
1685
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-a-single-contract
|
|
1679
1686
|
* @param {string} symbol unified market symbol
|
|
1680
|
-
* @param {object} [params] extra parameters specific to the
|
|
1687
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1681
1688
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1682
1689
|
*/
|
|
1683
1690
|
await this.loadMarkets();
|
|
@@ -1740,7 +1747,7 @@ class gate extends gate$1 {
|
|
|
1740
1747
|
* @description fetch the funding rate for multiple markets
|
|
1741
1748
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
1742
1749
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1743
|
-
* @param {object} [params] extra parameters specific to the
|
|
1750
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1744
1751
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
1745
1752
|
*/
|
|
1746
1753
|
await this.loadMarkets();
|
|
@@ -1911,7 +1918,7 @@ class gate extends gate$1 {
|
|
|
1911
1918
|
* @description fetch the deposit address for a currency associated with this account
|
|
1912
1919
|
* @see https://www.gate.io/docs/developers/apiv4/en/#generate-currency-deposit-address
|
|
1913
1920
|
* @param {string} code unified currency code
|
|
1914
|
-
* @param {object} [params] extra parameters specific to the
|
|
1921
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1915
1922
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1916
1923
|
*/
|
|
1917
1924
|
await this.loadMarkets();
|
|
@@ -1970,7 +1977,7 @@ class gate extends gate$1 {
|
|
|
1970
1977
|
* @description fetch the trading fees for a market
|
|
1971
1978
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
1972
1979
|
* @param {string} symbol unified market symbol
|
|
1973
|
-
* @param {object} [params] extra parameters specific to the
|
|
1980
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1974
1981
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1975
1982
|
*/
|
|
1976
1983
|
await this.loadMarkets();
|
|
@@ -2001,7 +2008,7 @@ class gate extends gate$1 {
|
|
|
2001
2008
|
* @name gate#fetchTradingFees
|
|
2002
2009
|
* @description fetch the trading fees for multiple markets
|
|
2003
2010
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2004
|
-
* @param {object} [params] extra parameters specific to the
|
|
2011
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2005
2012
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2006
2013
|
*/
|
|
2007
2014
|
await this.loadMarkets();
|
|
@@ -2067,7 +2074,7 @@ class gate extends gate$1 {
|
|
|
2067
2074
|
* @description please use fetchDepositWithdrawFees instead
|
|
2068
2075
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2069
2076
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2070
|
-
* @param {object} [params] extra parameters specific to the
|
|
2077
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2071
2078
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2072
2079
|
*/
|
|
2073
2080
|
await this.loadMarkets();
|
|
@@ -2125,7 +2132,7 @@ class gate extends gate$1 {
|
|
|
2125
2132
|
* @description fetch deposit and withdraw fees
|
|
2126
2133
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2127
2134
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2128
|
-
* @param {object} [params] extra parameters specific to the
|
|
2135
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2129
2136
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2130
2137
|
*/
|
|
2131
2138
|
await this.loadMarkets();
|
|
@@ -2210,7 +2217,7 @@ class gate extends gate$1 {
|
|
|
2210
2217
|
* @param {string} symbol unified market symbol
|
|
2211
2218
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2212
2219
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
2213
|
-
* @param {object} [params] extra parameters specific to the
|
|
2220
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2214
2221
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
2215
2222
|
*/
|
|
2216
2223
|
await this.loadMarkets();
|
|
@@ -2292,7 +2299,7 @@ class gate extends gate$1 {
|
|
|
2292
2299
|
* @see https://www.gate.io/docs/developers/apiv4/en/#options-order-book
|
|
2293
2300
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2294
2301
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2295
|
-
* @param {object} [params] extra parameters specific to the
|
|
2302
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2296
2303
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
2297
2304
|
*/
|
|
2298
2305
|
await this.loadMarkets();
|
|
@@ -2403,7 +2410,7 @@ class gate extends gate$1 {
|
|
|
2403
2410
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2404
2411
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2405
2412
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2406
|
-
* @param {object} [params] extra parameters specific to the
|
|
2413
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2407
2414
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2408
2415
|
*/
|
|
2409
2416
|
await this.loadMarkets();
|
|
@@ -2553,13 +2560,13 @@ class gate extends gate$1 {
|
|
|
2553
2560
|
/**
|
|
2554
2561
|
* @method
|
|
2555
2562
|
* @name gate#fetchTickers
|
|
2556
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
2563
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2557
2564
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-details-of-a-specifc-order
|
|
2558
2565
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers
|
|
2559
2566
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2560
2567
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2561
2568
|
* @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
|
|
2569
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2563
2570
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2564
2571
|
*/
|
|
2565
2572
|
await this.loadMarkets();
|
|
@@ -2826,7 +2833,7 @@ class gate extends gate$1 {
|
|
|
2826
2833
|
* @param {string} timeframe the length of time each candle represents
|
|
2827
2834
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2828
2835
|
* @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
|
|
2836
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2830
2837
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
2831
2838
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
2832
2839
|
* @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 +2918,7 @@ class gate extends gate$1 {
|
|
|
2911
2918
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2912
2919
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2913
2920
|
* @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
|
|
2921
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2915
2922
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
2916
2923
|
*/
|
|
2917
2924
|
if (symbol === undefined) {
|
|
@@ -3008,7 +3015,7 @@ class gate extends gate$1 {
|
|
|
3008
3015
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
3009
3016
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
3010
3017
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
3011
|
-
* @param {object} [params] extra parameters specific to the
|
|
3018
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3012
3019
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch
|
|
3013
3020
|
* @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
3021
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -3116,7 +3123,7 @@ class gate extends gate$1 {
|
|
|
3116
3123
|
* @param {string} symbol unified market symbol
|
|
3117
3124
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3118
3125
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3119
|
-
* @param {object} [params] extra parameters specific to the
|
|
3126
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3120
3127
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3121
3128
|
*/
|
|
3122
3129
|
if (symbol === undefined) {
|
|
@@ -3157,7 +3164,7 @@ class gate extends gate$1 {
|
|
|
3157
3164
|
* @param {string} symbol unified market symbol
|
|
3158
3165
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3159
3166
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3160
|
-
* @param {object} [params] extra parameters specific to the
|
|
3167
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3161
3168
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
3162
3169
|
* @param {string} [params.type] 'spot', 'swap', or 'future', if not provided this.options['defaultMarginMode'] is used
|
|
3163
3170
|
* @param {int} [params.until] The latest timestamp, in ms, that fetched trades were made
|
|
@@ -3436,7 +3443,7 @@ class gate extends gate$1 {
|
|
|
3436
3443
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3437
3444
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3438
3445
|
* @param {int} [params.until] end time in ms
|
|
3439
|
-
* @param {object} [params] extra parameters specific to the
|
|
3446
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3440
3447
|
* @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
3448
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3442
3449
|
*/
|
|
@@ -3473,7 +3480,7 @@ class gate extends gate$1 {
|
|
|
3473
3480
|
* @param {string} code unified currency code
|
|
3474
3481
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3475
3482
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3476
|
-
* @param {object} [params] extra parameters specific to the
|
|
3483
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3477
3484
|
* @param {int} [params.until] end time in ms
|
|
3478
3485
|
* @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
3486
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
@@ -3512,7 +3519,7 @@ class gate extends gate$1 {
|
|
|
3512
3519
|
* @param {float} amount the amount to withdraw
|
|
3513
3520
|
* @param {string} address the address to withdraw to
|
|
3514
3521
|
* @param {string} tag
|
|
3515
|
-
* @param {object} [params] extra parameters specific to the
|
|
3522
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3516
3523
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3517
3524
|
*/
|
|
3518
3525
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3668,7 +3675,7 @@ class gate extends gate$1 {
|
|
|
3668
3675
|
* @param {string} side 'buy' or 'sell'
|
|
3669
3676
|
* @param {float} amount the amount of currency to trade
|
|
3670
3677
|
* @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]
|
|
3678
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3672
3679
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
3673
3680
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
3674
3681
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4088,7 +4095,7 @@ class gate extends gate$1 {
|
|
|
4088
4095
|
* @param {string} side 'buy' or 'sell'
|
|
4089
4096
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
4090
4097
|
* @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
|
|
4098
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4092
4099
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4093
4100
|
*/
|
|
4094
4101
|
await this.loadMarkets();
|
|
@@ -4484,7 +4491,7 @@ class gate extends gate$1 {
|
|
|
4484
4491
|
* @param {string} symbol unified market symbol
|
|
4485
4492
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4486
4493
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
4487
|
-
* @param {object} [params] extra parameters specific to the
|
|
4494
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4488
4495
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4489
4496
|
* @param {string} [params.type] spot, margin, swap or future, if not provided this.options['defaultType'] is used
|
|
4490
4497
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for type='margin', if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4507,7 +4514,7 @@ class gate extends gate$1 {
|
|
|
4507
4514
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4508
4515
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4509
4516
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
4510
|
-
* @param {object} [params] extra parameters specific to the
|
|
4517
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4511
4518
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4512
4519
|
* @param {string} [params.type] spot, swap or future, if not provided this.options['defaultType'] is used
|
|
4513
4520
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4831,7 +4838,7 @@ class gate extends gate$1 {
|
|
|
4831
4838
|
* @see https://www.gate.io/docs/developers/apiv4/en/#cancel-all-open-orders-matched-2
|
|
4832
4839
|
* @see https://www.gate.io/docs/developers/apiv4/en/#cancel-all-open-orders-matched-3
|
|
4833
4840
|
* @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
|
|
4841
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4835
4842
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4836
4843
|
*/
|
|
4837
4844
|
await this.loadMarkets();
|
|
@@ -4889,7 +4896,7 @@ class gate extends gate$1 {
|
|
|
4889
4896
|
* @param {float} amount the amount of currency to transfer
|
|
4890
4897
|
* @param {string} fromAccount the account to transfer currency from
|
|
4891
4898
|
* @param {string} toAccount the account to transfer currency to
|
|
4892
|
-
* @param {object} [params] extra parameters specific to the
|
|
4899
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4893
4900
|
* @param {string} [params.symbol] Unified market symbol *required for type == margin*
|
|
4894
4901
|
* @returns A [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4895
4902
|
*/
|
|
@@ -4965,7 +4972,7 @@ class gate extends gate$1 {
|
|
|
4965
4972
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-leverage-2
|
|
4966
4973
|
* @param {float} leverage the rate of leverage
|
|
4967
4974
|
* @param {string} symbol unified market symbol
|
|
4968
|
-
* @param {object} [params] extra parameters specific to the
|
|
4975
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4969
4976
|
* @returns {object} response from the exchange
|
|
4970
4977
|
*/
|
|
4971
4978
|
if (symbol === undefined) {
|
|
@@ -5146,7 +5153,7 @@ class gate extends gate$1 {
|
|
|
5146
5153
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-single-position-2
|
|
5147
5154
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-specified-contract-position
|
|
5148
5155
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
5149
|
-
* @param {object} [params] extra parameters specific to the
|
|
5156
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5150
5157
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
5151
5158
|
*/
|
|
5152
5159
|
await this.loadMarkets();
|
|
@@ -5228,7 +5235,7 @@ class gate extends gate$1 {
|
|
|
5228
5235
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-positions-of-a-user-2
|
|
5229
5236
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-user-s-positions-of-specified-underlying
|
|
5230
5237
|
* @param {string[]|undefined} symbols Not used by gate, but parsed internally by CCXT
|
|
5231
|
-
* @param {object} [params] extra parameters specific to the
|
|
5238
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5232
5239
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
5233
5240
|
* @param {string} [params.type] swap, future or option, if not provided this.options['defaultType'] is used
|
|
5234
5241
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -5332,7 +5339,7 @@ class gate extends gate$1 {
|
|
|
5332
5339
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
5333
5340
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts-2
|
|
5334
5341
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
5335
|
-
* @param {object} [params] extra parameters specific to the
|
|
5342
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5336
5343
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
5337
5344
|
*/
|
|
5338
5345
|
await this.loadMarkets();
|
|
@@ -5697,7 +5704,7 @@ class gate extends gate$1 {
|
|
|
5697
5704
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-margin-2
|
|
5698
5705
|
* @param {string} symbol unified market symbol
|
|
5699
5706
|
* @param {float} amount the amount of margin to remove
|
|
5700
|
-
* @param {object} [params] extra parameters specific to the
|
|
5707
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5701
5708
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
5702
5709
|
*/
|
|
5703
5710
|
return await this.modifyMarginHelper(symbol, -amount, params);
|
|
@@ -5711,7 +5718,7 @@ class gate extends gate$1 {
|
|
|
5711
5718
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-margin-2
|
|
5712
5719
|
* @param {string} symbol unified market symbol
|
|
5713
5720
|
* @param {float} amount amount of margin to add
|
|
5714
|
-
* @param {object} [params] extra parameters specific to the
|
|
5721
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5715
5722
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
5716
5723
|
*/
|
|
5717
5724
|
return await this.modifyMarginHelper(symbol, amount, params);
|
|
@@ -5996,7 +6003,7 @@ class gate extends gate$1 {
|
|
|
5996
6003
|
* @param {string} code unified currency code
|
|
5997
6004
|
* @param {int} [since] timestamp in ms of the earliest ledger entry
|
|
5998
6005
|
* @param {int} [limit] max number of ledger entries to return
|
|
5999
|
-
* @param {object} [params] extra parameters specific to the
|
|
6006
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6000
6007
|
* @param {int} [params.until] end time in ms
|
|
6001
6008
|
* @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
6009
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -6236,7 +6243,7 @@ class gate extends gate$1 {
|
|
|
6236
6243
|
* @see https://www.gate.io/docs/developers/apiv4/en/#enable-or-disable-dual-mode
|
|
6237
6244
|
* @param {bool} hedged set to true to enable dual mode
|
|
6238
6245
|
* @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
|
|
6246
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
6240
6247
|
* @param {string} params.settle settle currency
|
|
6241
6248
|
* @returns {object} response from the exchange
|
|
6242
6249
|
*/
|
|
@@ -6293,7 +6300,7 @@ class gate extends gate$1 {
|
|
|
6293
6300
|
* @param {string} symbol unified CCXT market symbol
|
|
6294
6301
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
6295
6302
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
6296
|
-
* @param {object} [params] exchange specific parameters for the
|
|
6303
|
+
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
6297
6304
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
6298
6305
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
6299
6306
|
*/
|
|
@@ -6339,7 +6346,7 @@ class gate extends gate$1 {
|
|
|
6339
6346
|
* @param {string} symbol unified CCXT market symbol
|
|
6340
6347
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
6341
6348
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
6342
|
-
* @param {object} [params] exchange specific parameters for the
|
|
6349
|
+
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
6343
6350
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
6344
6351
|
*/
|
|
6345
6352
|
if (symbol === undefined) {
|
|
@@ -6481,7 +6488,7 @@ class gate extends gate$1 {
|
|
|
6481
6488
|
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
6482
6489
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
6483
6490
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
6484
|
-
* @param {object} [params] extra parameters specific to the
|
|
6491
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6485
6492
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
6486
6493
|
*/
|
|
6487
6494
|
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();
|