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/js/src/gate.js
CHANGED
|
@@ -971,7 +971,7 @@ export default class gate extends Exchange {
|
|
|
971
971
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts // swap
|
|
972
972
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts-2 // future
|
|
973
973
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-the-contracts-with-specified-underlying-and-expiration-time // option
|
|
974
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
974
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
975
975
|
* @returns {object[]} an array of objects representing market data
|
|
976
976
|
*/
|
|
977
977
|
const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
|
|
@@ -1568,7 +1568,7 @@ export default class gate extends Exchange {
|
|
|
1568
1568
|
* @name gate#fetchCurrencies
|
|
1569
1569
|
* @description fetches all available currencies on an exchange
|
|
1570
1570
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-currencies-details
|
|
1571
|
-
* @param {object} [params] extra parameters specific to the
|
|
1571
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1572
1572
|
* @returns {object} an associative dictionary of currencies
|
|
1573
1573
|
*/
|
|
1574
1574
|
// sandbox/testnet only supports future markets
|
|
@@ -1680,7 +1680,7 @@ export default class gate extends Exchange {
|
|
|
1680
1680
|
* @description fetch the current funding rate
|
|
1681
1681
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-a-single-contract
|
|
1682
1682
|
* @param {string} symbol unified market symbol
|
|
1683
|
-
* @param {object} [params] extra parameters specific to the
|
|
1683
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1684
1684
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1685
1685
|
*/
|
|
1686
1686
|
await this.loadMarkets();
|
|
@@ -1743,7 +1743,7 @@ export default class gate extends Exchange {
|
|
|
1743
1743
|
* @description fetch the funding rate for multiple markets
|
|
1744
1744
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
1745
1745
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1746
|
-
* @param {object} [params] extra parameters specific to the
|
|
1746
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1747
1747
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
1748
1748
|
*/
|
|
1749
1749
|
await this.loadMarkets();
|
|
@@ -1914,7 +1914,7 @@ export default class gate extends Exchange {
|
|
|
1914
1914
|
* @description fetch the deposit address for a currency associated with this account
|
|
1915
1915
|
* @see https://www.gate.io/docs/developers/apiv4/en/#generate-currency-deposit-address
|
|
1916
1916
|
* @param {string} code unified currency code
|
|
1917
|
-
* @param {object} [params] extra parameters specific to the
|
|
1917
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1918
1918
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1919
1919
|
*/
|
|
1920
1920
|
await this.loadMarkets();
|
|
@@ -1973,7 +1973,7 @@ export default class gate extends Exchange {
|
|
|
1973
1973
|
* @description fetch the trading fees for a market
|
|
1974
1974
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
1975
1975
|
* @param {string} symbol unified market symbol
|
|
1976
|
-
* @param {object} [params] extra parameters specific to the
|
|
1976
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1977
1977
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1978
1978
|
*/
|
|
1979
1979
|
await this.loadMarkets();
|
|
@@ -2004,7 +2004,7 @@ export default class gate extends Exchange {
|
|
|
2004
2004
|
* @name gate#fetchTradingFees
|
|
2005
2005
|
* @description fetch the trading fees for multiple markets
|
|
2006
2006
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-personal-trading-fee
|
|
2007
|
-
* @param {object} [params] extra parameters specific to the
|
|
2007
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2008
2008
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
2009
2009
|
*/
|
|
2010
2010
|
await this.loadMarkets();
|
|
@@ -2070,7 +2070,7 @@ export default class gate extends Exchange {
|
|
|
2070
2070
|
* @description please use fetchDepositWithdrawFees instead
|
|
2071
2071
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2072
2072
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2073
|
-
* @param {object} [params] extra parameters specific to the
|
|
2073
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2074
2074
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2075
2075
|
*/
|
|
2076
2076
|
await this.loadMarkets();
|
|
@@ -2128,7 +2128,7 @@ export default class gate extends Exchange {
|
|
|
2128
2128
|
* @description fetch deposit and withdraw fees
|
|
2129
2129
|
* @see https://www.gate.io/docs/developers/apiv4/en/#retrieve-withdrawal-status
|
|
2130
2130
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2131
|
-
* @param {object} [params] extra parameters specific to the
|
|
2131
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2132
2132
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2133
2133
|
*/
|
|
2134
2134
|
await this.loadMarkets();
|
|
@@ -2213,7 +2213,7 @@ export default class gate extends Exchange {
|
|
|
2213
2213
|
* @param {string} symbol unified market symbol
|
|
2214
2214
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
2215
2215
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
2216
|
-
* @param {object} [params] extra parameters specific to the
|
|
2216
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2217
2217
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
2218
2218
|
*/
|
|
2219
2219
|
await this.loadMarkets();
|
|
@@ -2295,7 +2295,7 @@ export default class gate extends Exchange {
|
|
|
2295
2295
|
* @see https://www.gate.io/docs/developers/apiv4/en/#options-order-book
|
|
2296
2296
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2297
2297
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2298
|
-
* @param {object} [params] extra parameters specific to the
|
|
2298
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2299
2299
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
2300
2300
|
*/
|
|
2301
2301
|
await this.loadMarkets();
|
|
@@ -2406,7 +2406,7 @@ export default class gate extends Exchange {
|
|
|
2406
2406
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2407
2407
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2408
2408
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2409
|
-
* @param {object} [params] extra parameters specific to the
|
|
2409
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2410
2410
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2411
2411
|
*/
|
|
2412
2412
|
await this.loadMarkets();
|
|
@@ -2556,13 +2556,13 @@ export default class gate extends Exchange {
|
|
|
2556
2556
|
/**
|
|
2557
2557
|
* @method
|
|
2558
2558
|
* @name gate#fetchTickers
|
|
2559
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
2559
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2560
2560
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-details-of-a-specifc-order
|
|
2561
2561
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers
|
|
2562
2562
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-futures-tickers-2
|
|
2563
2563
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
2564
2564
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2565
|
-
* @param {object} [params] extra parameters specific to the
|
|
2565
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2566
2566
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2567
2567
|
*/
|
|
2568
2568
|
await this.loadMarkets();
|
|
@@ -2829,7 +2829,7 @@ export default class gate extends Exchange {
|
|
|
2829
2829
|
* @param {string} timeframe the length of time each candle represents
|
|
2830
2830
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2831
2831
|
* @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
|
|
2832
|
-
* @param {object} [params] extra parameters specific to the
|
|
2832
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2833
2833
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
2834
2834
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
2835
2835
|
* @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)
|
|
@@ -2914,7 +2914,7 @@ export default class gate extends Exchange {
|
|
|
2914
2914
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2915
2915
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2916
2916
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2917
|
-
* @param {object} [params] extra parameters specific to the
|
|
2917
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2918
2918
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
2919
2919
|
*/
|
|
2920
2920
|
if (symbol === undefined) {
|
|
@@ -3011,7 +3011,7 @@ export default class gate extends Exchange {
|
|
|
3011
3011
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
3012
3012
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
3013
3013
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
3014
|
-
* @param {object} [params] extra parameters specific to the
|
|
3014
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3015
3015
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch
|
|
3016
3016
|
* @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)
|
|
3017
3017
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -3119,7 +3119,7 @@ export default class gate extends Exchange {
|
|
|
3119
3119
|
* @param {string} symbol unified market symbol
|
|
3120
3120
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3121
3121
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3122
|
-
* @param {object} [params] extra parameters specific to the
|
|
3122
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3123
3123
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3124
3124
|
*/
|
|
3125
3125
|
if (symbol === undefined) {
|
|
@@ -3160,7 +3160,7 @@ export default class gate extends Exchange {
|
|
|
3160
3160
|
* @param {string} symbol unified market symbol
|
|
3161
3161
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3162
3162
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3163
|
-
* @param {object} [params] extra parameters specific to the
|
|
3163
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3164
3164
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
3165
3165
|
* @param {string} [params.type] 'spot', 'swap', or 'future', if not provided this.options['defaultMarginMode'] is used
|
|
3166
3166
|
* @param {int} [params.until] The latest timestamp, in ms, that fetched trades were made
|
|
@@ -3439,7 +3439,7 @@ export default class gate extends Exchange {
|
|
|
3439
3439
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3440
3440
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3441
3441
|
* @param {int} [params.until] end time in ms
|
|
3442
|
-
* @param {object} [params] extra parameters specific to the
|
|
3442
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3443
3443
|
* @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)
|
|
3444
3444
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3445
3445
|
*/
|
|
@@ -3476,7 +3476,7 @@ export default class gate extends Exchange {
|
|
|
3476
3476
|
* @param {string} code unified currency code
|
|
3477
3477
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3478
3478
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3479
|
-
* @param {object} [params] extra parameters specific to the
|
|
3479
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3480
3480
|
* @param {int} [params.until] end time in ms
|
|
3481
3481
|
* @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)
|
|
3482
3482
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
@@ -3515,7 +3515,7 @@ export default class gate extends Exchange {
|
|
|
3515
3515
|
* @param {float} amount the amount to withdraw
|
|
3516
3516
|
* @param {string} address the address to withdraw to
|
|
3517
3517
|
* @param {string} tag
|
|
3518
|
-
* @param {object} [params] extra parameters specific to the
|
|
3518
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3519
3519
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3520
3520
|
*/
|
|
3521
3521
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3671,7 +3671,7 @@ export default class gate extends Exchange {
|
|
|
3671
3671
|
* @param {string} side 'buy' or 'sell'
|
|
3672
3672
|
* @param {float} amount the amount of currency to trade
|
|
3673
3673
|
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
3674
|
-
* @param {object} [params]
|
|
3674
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3675
3675
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
3676
3676
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
3677
3677
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4091,7 +4091,7 @@ export default class gate extends Exchange {
|
|
|
4091
4091
|
* @param {string} side 'buy' or 'sell'
|
|
4092
4092
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
4093
4093
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
4094
|
-
* @param {object} [params] extra parameters specific to the
|
|
4094
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4095
4095
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4096
4096
|
*/
|
|
4097
4097
|
await this.loadMarkets();
|
|
@@ -4487,7 +4487,7 @@ export default class gate extends Exchange {
|
|
|
4487
4487
|
* @param {string} symbol unified market symbol
|
|
4488
4488
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4489
4489
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
4490
|
-
* @param {object} [params] extra parameters specific to the
|
|
4490
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4491
4491
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4492
4492
|
* @param {string} [params.type] spot, margin, swap or future, if not provided this.options['defaultType'] is used
|
|
4493
4493
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for type='margin', if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4510,7 +4510,7 @@ export default class gate extends Exchange {
|
|
|
4510
4510
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4511
4511
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4512
4512
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
4513
|
-
* @param {object} [params] extra parameters specific to the
|
|
4513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4514
4514
|
* @param {bool} [params.stop] true for fetching stop orders
|
|
4515
4515
|
* @param {string} [params.type] spot, swap or future, if not provided this.options['defaultType'] is used
|
|
4516
4516
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
@@ -4834,7 +4834,7 @@ export default class gate extends Exchange {
|
|
|
4834
4834
|
* @see https://www.gate.io/docs/developers/apiv4/en/#cancel-all-open-orders-matched-2
|
|
4835
4835
|
* @see https://www.gate.io/docs/developers/apiv4/en/#cancel-all-open-orders-matched-3
|
|
4836
4836
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
4837
|
-
* @param {object} [params] extra parameters specific to the
|
|
4837
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4838
4838
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4839
4839
|
*/
|
|
4840
4840
|
await this.loadMarkets();
|
|
@@ -4892,7 +4892,7 @@ export default class gate extends Exchange {
|
|
|
4892
4892
|
* @param {float} amount the amount of currency to transfer
|
|
4893
4893
|
* @param {string} fromAccount the account to transfer currency from
|
|
4894
4894
|
* @param {string} toAccount the account to transfer currency to
|
|
4895
|
-
* @param {object} [params] extra parameters specific to the
|
|
4895
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4896
4896
|
* @param {string} [params.symbol] Unified market symbol *required for type == margin*
|
|
4897
4897
|
* @returns A [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4898
4898
|
*/
|
|
@@ -4968,7 +4968,7 @@ export default class gate extends Exchange {
|
|
|
4968
4968
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-leverage-2
|
|
4969
4969
|
* @param {float} leverage the rate of leverage
|
|
4970
4970
|
* @param {string} symbol unified market symbol
|
|
4971
|
-
* @param {object} [params] extra parameters specific to the
|
|
4971
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4972
4972
|
* @returns {object} response from the exchange
|
|
4973
4973
|
*/
|
|
4974
4974
|
if (symbol === undefined) {
|
|
@@ -5149,7 +5149,7 @@ export default class gate extends Exchange {
|
|
|
5149
5149
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-single-position-2
|
|
5150
5150
|
* @see https://www.gate.io/docs/developers/apiv4/en/#get-specified-contract-position
|
|
5151
5151
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
5152
|
-
* @param {object} [params] extra parameters specific to the
|
|
5152
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5153
5153
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
5154
5154
|
*/
|
|
5155
5155
|
await this.loadMarkets();
|
|
@@ -5231,7 +5231,7 @@ export default class gate extends Exchange {
|
|
|
5231
5231
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-positions-of-a-user-2
|
|
5232
5232
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-user-s-positions-of-specified-underlying
|
|
5233
5233
|
* @param {string[]|undefined} symbols Not used by gate, but parsed internally by CCXT
|
|
5234
|
-
* @param {object} [params] extra parameters specific to the
|
|
5234
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5235
5235
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - default="usdt" for swap and "btc" for future
|
|
5236
5236
|
* @param {string} [params.type] swap, future or option, if not provided this.options['defaultType'] is used
|
|
5237
5237
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -5335,7 +5335,7 @@ export default class gate extends Exchange {
|
|
|
5335
5335
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts
|
|
5336
5336
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-all-futures-contracts-2
|
|
5337
5337
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
5338
|
-
* @param {object} [params] extra parameters specific to the
|
|
5338
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5339
5339
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
5340
5340
|
*/
|
|
5341
5341
|
await this.loadMarkets();
|
|
@@ -5700,7 +5700,7 @@ export default class gate extends Exchange {
|
|
|
5700
5700
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-margin-2
|
|
5701
5701
|
* @param {string} symbol unified market symbol
|
|
5702
5702
|
* @param {float} amount the amount of margin to remove
|
|
5703
|
-
* @param {object} [params] extra parameters specific to the
|
|
5703
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5704
5704
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
5705
5705
|
*/
|
|
5706
5706
|
return await this.modifyMarginHelper(symbol, -amount, params);
|
|
@@ -5714,7 +5714,7 @@ export default class gate extends Exchange {
|
|
|
5714
5714
|
* @see https://www.gate.io/docs/developers/apiv4/en/#update-position-margin-2
|
|
5715
5715
|
* @param {string} symbol unified market symbol
|
|
5716
5716
|
* @param {float} amount amount of margin to add
|
|
5717
|
-
* @param {object} [params] extra parameters specific to the
|
|
5717
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5718
5718
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
5719
5719
|
*/
|
|
5720
5720
|
return await this.modifyMarginHelper(symbol, amount, params);
|
|
@@ -5999,7 +5999,7 @@ export default class gate extends Exchange {
|
|
|
5999
5999
|
* @param {string} code unified currency code
|
|
6000
6000
|
* @param {int} [since] timestamp in ms of the earliest ledger entry
|
|
6001
6001
|
* @param {int} [limit] max number of ledger entries to return
|
|
6002
|
-
* @param {object} [params] extra parameters specific to the
|
|
6002
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6003
6003
|
* @param {int} [params.until] end time in ms
|
|
6004
6004
|
* @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)
|
|
6005
6005
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -6239,7 +6239,7 @@ export default class gate extends Exchange {
|
|
|
6239
6239
|
* @see https://www.gate.io/docs/developers/apiv4/en/#enable-or-disable-dual-mode
|
|
6240
6240
|
* @param {bool} hedged set to true to enable dual mode
|
|
6241
6241
|
* @param {string|undefined} symbol if passed, dual mode is set for all markets with the same settle currency
|
|
6242
|
-
* @param {object} params extra parameters specific to the
|
|
6242
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
6243
6243
|
* @param {string} params.settle settle currency
|
|
6244
6244
|
* @returns {object} response from the exchange
|
|
6245
6245
|
*/
|
|
@@ -6296,7 +6296,7 @@ export default class gate extends Exchange {
|
|
|
6296
6296
|
* @param {string} symbol unified CCXT market symbol
|
|
6297
6297
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
6298
6298
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
6299
|
-
* @param {object} [params] exchange specific parameters for the
|
|
6299
|
+
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
6300
6300
|
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
6301
6301
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
6302
6302
|
*/
|
|
@@ -6342,7 +6342,7 @@ export default class gate extends Exchange {
|
|
|
6342
6342
|
* @param {string} symbol unified CCXT market symbol
|
|
6343
6343
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
6344
6344
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
6345
|
-
* @param {object} [params] exchange specific parameters for the
|
|
6345
|
+
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
6346
6346
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
6347
6347
|
*/
|
|
6348
6348
|
if (symbol === undefined) {
|
|
@@ -6484,7 +6484,7 @@ export default class gate extends Exchange {
|
|
|
6484
6484
|
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
6485
6485
|
* @see https://www.gate.io/docs/developers/apiv4/en/#list-tickers-of-options-contracts
|
|
6486
6486
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
6487
|
-
* @param {object} [params] extra parameters specific to the
|
|
6487
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6488
6488
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
6489
6489
|
*/
|
|
6490
6490
|
await this.loadMarkets();
|
package/js/src/gemini.js
CHANGED
|
@@ -395,7 +395,7 @@ export default class gemini extends Exchange {
|
|
|
395
395
|
* @method
|
|
396
396
|
* @name gemini#fetchMarkets
|
|
397
397
|
* @description retrieves data on all markets for gemini
|
|
398
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
398
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
399
399
|
* @returns {object[]} an array of objects representing market data
|
|
400
400
|
*/
|
|
401
401
|
const method = this.safeValue(this.options, 'fetchMarketsMethod', 'fetch_markets_from_api');
|
|
@@ -657,7 +657,7 @@ export default class gemini extends Exchange {
|
|
|
657
657
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
658
658
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
659
659
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
660
|
-
* @param {object} [params] extra parameters specific to the
|
|
660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
661
661
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
662
662
|
*/
|
|
663
663
|
await this.loadMarkets();
|
|
@@ -734,7 +734,7 @@ export default class gemini extends Exchange {
|
|
|
734
734
|
* @name gemini#fetchTicker
|
|
735
735
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
736
736
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
737
|
-
* @param {object} [params] extra parameters specific to the
|
|
737
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
738
738
|
* @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'
|
|
739
739
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
740
740
|
*/
|
|
@@ -845,9 +845,9 @@ export default class gemini extends Exchange {
|
|
|
845
845
|
/**
|
|
846
846
|
* @method
|
|
847
847
|
* @name gemini#fetchTickers
|
|
848
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
848
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
849
849
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
850
|
-
* @param {object} [params] extra parameters specific to the
|
|
850
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
851
851
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
852
852
|
*/
|
|
853
853
|
await this.loadMarkets();
|
|
@@ -940,7 +940,7 @@ export default class gemini extends Exchange {
|
|
|
940
940
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
941
941
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
942
942
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
943
|
-
* @param {object} [params] extra parameters specific to the
|
|
943
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
944
944
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
945
945
|
*/
|
|
946
946
|
await this.loadMarkets();
|
|
@@ -988,7 +988,7 @@ export default class gemini extends Exchange {
|
|
|
988
988
|
* @method
|
|
989
989
|
* @name gemini#fetchTradingFees
|
|
990
990
|
* @description fetch the trading fees for multiple markets
|
|
991
|
-
* @param {object} [params] extra parameters specific to the
|
|
991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
992
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
993
993
|
*/
|
|
994
994
|
await this.loadMarkets();
|
|
@@ -1046,7 +1046,7 @@ export default class gemini extends Exchange {
|
|
|
1046
1046
|
* @method
|
|
1047
1047
|
* @name gemini#fetchBalance
|
|
1048
1048
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1049
|
-
* @param {object} [params] extra parameters specific to the
|
|
1049
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1050
1050
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1051
1051
|
*/
|
|
1052
1052
|
await this.loadMarkets();
|
|
@@ -1228,7 +1228,7 @@ export default class gemini extends Exchange {
|
|
|
1228
1228
|
* @name gemini#fetchOrder
|
|
1229
1229
|
* @description fetches information on an order made by the user
|
|
1230
1230
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1231
|
-
* @param {object} [params] extra parameters specific to the
|
|
1231
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1232
1232
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1233
1233
|
*/
|
|
1234
1234
|
await this.loadMarkets();
|
|
@@ -1269,7 +1269,7 @@ export default class gemini extends Exchange {
|
|
|
1269
1269
|
* @param {string} symbol unified market symbol
|
|
1270
1270
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1271
1271
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1272
|
-
* @param {object} [params] extra parameters specific to the
|
|
1272
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1273
1273
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1274
1274
|
*/
|
|
1275
1275
|
await this.loadMarkets();
|
|
@@ -1316,7 +1316,7 @@ export default class gemini extends Exchange {
|
|
|
1316
1316
|
* @param {string} side 'buy' or 'sell'
|
|
1317
1317
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1318
1318
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1319
|
-
* @param {object} [params] extra parameters specific to the
|
|
1319
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1320
1320
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1321
1321
|
*/
|
|
1322
1322
|
await this.loadMarkets();
|
|
@@ -1410,7 +1410,7 @@ export default class gemini extends Exchange {
|
|
|
1410
1410
|
* @description cancels an open order
|
|
1411
1411
|
* @param {string} id order id
|
|
1412
1412
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1413
|
-
* @param {object} [params] extra parameters specific to the
|
|
1413
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1414
1414
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1415
1415
|
*/
|
|
1416
1416
|
await this.loadMarkets();
|
|
@@ -1452,7 +1452,7 @@ export default class gemini extends Exchange {
|
|
|
1452
1452
|
* @param {string} symbol unified market symbol
|
|
1453
1453
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1454
1454
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1455
|
-
* @param {object} [params] extra parameters specific to the
|
|
1455
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1456
1456
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1457
1457
|
*/
|
|
1458
1458
|
if (symbol === undefined) {
|
|
@@ -1481,7 +1481,7 @@ export default class gemini extends Exchange {
|
|
|
1481
1481
|
* @param {float} amount the amount to withdraw
|
|
1482
1482
|
* @param {string} address the address to withdraw to
|
|
1483
1483
|
* @param {string} tag
|
|
1484
|
-
* @param {object} [params] extra parameters specific to the
|
|
1484
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1485
1485
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1486
1486
|
*/
|
|
1487
1487
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1538,7 +1538,7 @@ export default class gemini extends Exchange {
|
|
|
1538
1538
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1539
1539
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1540
1540
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1541
|
-
* @param {object} [params] extra parameters specific to the
|
|
1541
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1542
1542
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1543
1543
|
*/
|
|
1544
1544
|
await this.loadMarkets();
|
|
@@ -1659,7 +1659,7 @@ export default class gemini extends Exchange {
|
|
|
1659
1659
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
1660
1660
|
* @see https://docs.gemini.com/rest-api/#get-deposit-addresses
|
|
1661
1661
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1662
|
-
* @param {object} [params] extra parameters specific to the
|
|
1662
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1663
1663
|
* @param {string} [params.network] *required* The chain of currency
|
|
1664
1664
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
1665
1665
|
*/
|
|
@@ -1747,7 +1747,7 @@ export default class gemini extends Exchange {
|
|
|
1747
1747
|
* @name gemini#createDepositAddress
|
|
1748
1748
|
* @description create a currency deposit address
|
|
1749
1749
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1750
|
-
* @param {object} [params] extra parameters specific to the
|
|
1750
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1751
1751
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1752
1752
|
*/
|
|
1753
1753
|
await this.loadMarkets();
|
|
@@ -1774,7 +1774,7 @@ export default class gemini extends Exchange {
|
|
|
1774
1774
|
* @param {string} timeframe the length of time each candle represents
|
|
1775
1775
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1776
1776
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1777
|
-
* @param {object} [params] extra parameters specific to the
|
|
1777
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1778
1778
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1779
1779
|
*/
|
|
1780
1780
|
await this.loadMarkets();
|