ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/kucoin.js
CHANGED
|
@@ -835,7 +835,7 @@ export default class kucoin extends Exchange {
|
|
|
835
835
|
* @name kucoin#fetchTime
|
|
836
836
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
837
837
|
* @see https://docs.kucoin.com/#server-time
|
|
838
|
-
* @param {object} [params] extra parameters specific to the
|
|
838
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
839
839
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
840
840
|
*/
|
|
841
841
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -854,7 +854,7 @@ export default class kucoin extends Exchange {
|
|
|
854
854
|
* @name kucoin#fetchStatus
|
|
855
855
|
* @description the latest known information on the availability of the exchange API
|
|
856
856
|
* @see https://docs.kucoin.com/#service-status
|
|
857
|
-
* @param {object} [params] extra parameters specific to the
|
|
857
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
858
858
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
859
859
|
*/
|
|
860
860
|
const response = await this.publicGetStatus(params);
|
|
@@ -884,7 +884,7 @@ export default class kucoin extends Exchange {
|
|
|
884
884
|
* @description retrieves data on all markets for kucoin
|
|
885
885
|
* @see https://docs.kucoin.com/#get-symbols-list-deprecated
|
|
886
886
|
* @see https://docs.kucoin.com/#get-all-tickers
|
|
887
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
887
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
888
888
|
* @returns {object[]} an array of objects representing market data
|
|
889
889
|
*/
|
|
890
890
|
const response = await this.publicGetSymbols(params);
|
|
@@ -1024,7 +1024,7 @@ export default class kucoin extends Exchange {
|
|
|
1024
1024
|
* @name kucoin#fetchCurrencies
|
|
1025
1025
|
* @description fetches all available currencies on an exchange
|
|
1026
1026
|
* @see https://docs.kucoin.com/#get-currencies
|
|
1027
|
-
* @param {object} params extra parameters specific to the
|
|
1027
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
1028
1028
|
* @returns {object} an associative dictionary of currencies
|
|
1029
1029
|
*/
|
|
1030
1030
|
const promises = [];
|
|
@@ -1185,7 +1185,7 @@ export default class kucoin extends Exchange {
|
|
|
1185
1185
|
* @name kucoin#fetchAccounts
|
|
1186
1186
|
* @description fetch all the accounts associated with a profile
|
|
1187
1187
|
* @see https://docs.kucoin.com/#list-accounts
|
|
1188
|
-
* @param {object} [params] extra parameters specific to the
|
|
1188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1189
1189
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1190
1190
|
*/
|
|
1191
1191
|
const response = await this.privateGetAccounts(params);
|
|
@@ -1237,7 +1237,7 @@ export default class kucoin extends Exchange {
|
|
|
1237
1237
|
* @description *DEPRECATED* please use fetchDepositWithdrawFee instead
|
|
1238
1238
|
* @see https://docs.kucoin.com/#get-withdrawal-quotas
|
|
1239
1239
|
* @param {string} code unified currency code
|
|
1240
|
-
* @param {object} params extra parameters specific to the
|
|
1240
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
1241
1241
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1242
1242
|
*/
|
|
1243
1243
|
await this.loadMarkets();
|
|
@@ -1267,7 +1267,7 @@ export default class kucoin extends Exchange {
|
|
|
1267
1267
|
* @description fetch the fee for deposits and withdrawals
|
|
1268
1268
|
* @see https://docs.kucoin.com/#get-withdrawal-quotas
|
|
1269
1269
|
* @param {string} code unified currency code
|
|
1270
|
-
* @param {object} [params] extra parameters specific to the
|
|
1270
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1271
1271
|
* @param {string} [params.network] The chain of currency. This only apply for multi-chain currency, and there is no need for single chain currency; you can query the chain through the response of the GET /api/v2/currencies/{currency} interface
|
|
1272
1272
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1273
1273
|
*/
|
|
@@ -1462,10 +1462,10 @@ export default class kucoin extends Exchange {
|
|
|
1462
1462
|
/**
|
|
1463
1463
|
* @method
|
|
1464
1464
|
* @name kucoin#fetchTickers
|
|
1465
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1465
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1466
1466
|
* @see https://docs.kucoin.com/#get-all-tickers
|
|
1467
1467
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1468
|
-
* @param {object} [params] extra parameters specific to the
|
|
1468
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1469
1469
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1470
1470
|
*/
|
|
1471
1471
|
await this.loadMarkets();
|
|
@@ -1520,7 +1520,7 @@ export default class kucoin extends Exchange {
|
|
|
1520
1520
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1521
1521
|
* @see https://docs.kucoin.com/#get-24hr-stats
|
|
1522
1522
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1523
|
-
* @param {object} [params] extra parameters specific to the
|
|
1523
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1524
1524
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1525
1525
|
*/
|
|
1526
1526
|
await this.loadMarkets();
|
|
@@ -1585,7 +1585,7 @@ export default class kucoin extends Exchange {
|
|
|
1585
1585
|
* @param {string} timeframe the length of time each candle represents
|
|
1586
1586
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1587
1587
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1588
|
-
* @param {object} [params] extra parameters specific to the
|
|
1588
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1589
1589
|
* @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)
|
|
1590
1590
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1591
1591
|
*/
|
|
@@ -1640,7 +1640,7 @@ export default class kucoin extends Exchange {
|
|
|
1640
1640
|
* @see https://docs.kucoin.com/#create-deposit-address
|
|
1641
1641
|
* @description create a currency deposit address
|
|
1642
1642
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1643
|
-
* @param {object} [params] extra parameters specific to the
|
|
1643
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1644
1644
|
* @param {string} [params.network] the blockchain network name
|
|
1645
1645
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1646
1646
|
*/
|
|
@@ -1668,7 +1668,7 @@ export default class kucoin extends Exchange {
|
|
|
1668
1668
|
* @description fetch the deposit address for a currency associated with this account
|
|
1669
1669
|
* @see https://docs.kucoin.com/#get-deposit-addresses-v2
|
|
1670
1670
|
* @param {string} code unified currency code
|
|
1671
|
-
* @param {object} [params] extra parameters specific to the
|
|
1671
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1672
1672
|
* @param {string} [params.network] the blockchain network name
|
|
1673
1673
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1674
1674
|
*/
|
|
@@ -1726,7 +1726,7 @@ export default class kucoin extends Exchange {
|
|
|
1726
1726
|
* @see https://docs.kucoin.com/#get-deposit-addresses-v2
|
|
1727
1727
|
* @description fetch the deposit address for a currency associated with this account
|
|
1728
1728
|
* @param {string} code unified currency code
|
|
1729
|
-
* @param {object} [params] extra parameters specific to the
|
|
1729
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1730
1730
|
* @returns {object} an array of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1731
1731
|
*/
|
|
1732
1732
|
await this.loadMarkets();
|
|
@@ -1768,7 +1768,7 @@ export default class kucoin extends Exchange {
|
|
|
1768
1768
|
* @see https://www.kucoin.com/docs/rest/spot-trading/market-data/get-full-order-book-aggregated-
|
|
1769
1769
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1770
1770
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1771
|
-
* @param {object} [params] extra parameters specific to the
|
|
1771
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1772
1772
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1773
1773
|
*/
|
|
1774
1774
|
await this.loadMarkets();
|
|
@@ -1859,7 +1859,7 @@ export default class kucoin extends Exchange {
|
|
|
1859
1859
|
* @param {string} side 'buy' or 'sell'
|
|
1860
1860
|
* @param {float} amount the amount of currency to trade
|
|
1861
1861
|
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
1862
|
-
* @param {object} [params]
|
|
1862
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1863
1863
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1864
1864
|
* @param {string} [params.marginMode] 'cross', // cross (cross mode) and isolated (isolated mode), set to cross by default, the isolated mode will be released soon, stay tuned
|
|
1865
1865
|
* @param {string} [params.timeInForce] GTC, GTT, IOC, or FOK, default is GTC, limit orders only
|
|
@@ -1939,7 +1939,7 @@ export default class kucoin extends Exchange {
|
|
|
1939
1939
|
* @see https://www.kucoin.com/docs/rest/spot-trading/orders/place-multiple-orders
|
|
1940
1940
|
* @see https://www.kucoin.com/docs/rest/spot-trading/spot-hf-trade-pro-account/place-multiple-hf-orders
|
|
1941
1941
|
* @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
1942
|
-
* @param {object} [params]
|
|
1942
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1943
1943
|
* @param {bool} [params.hf] false, // true for hf orders
|
|
1944
1944
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1945
1945
|
*/
|
|
@@ -2099,7 +2099,7 @@ export default class kucoin extends Exchange {
|
|
|
2099
2099
|
* @param {string} side not used
|
|
2100
2100
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
2101
2101
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
2102
|
-
* @param {object} [params] extra parameters specific to the
|
|
2102
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2103
2103
|
* @param {string} [params.clientOrderId] client order id, defaults to id if not passed
|
|
2104
2104
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2105
2105
|
*/
|
|
@@ -2146,7 +2146,7 @@ export default class kucoin extends Exchange {
|
|
|
2146
2146
|
* @see https://docs.kucoin.com/spot-hf/#cancel-order-by-clientoid
|
|
2147
2147
|
* @param {string} id order id
|
|
2148
2148
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2149
|
-
* @param {object} [params] extra parameters specific to the
|
|
2149
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2150
2150
|
* @param {bool} [params.stop] True if cancelling a stop order
|
|
2151
2151
|
* @param {bool} [params.hf] false, // true for hf order
|
|
2152
2152
|
* @returns Response from the exchange
|
|
@@ -2200,7 +2200,7 @@ export default class kucoin extends Exchange {
|
|
|
2200
2200
|
* @see https://docs.kucoin.com/spot#cancel-orders
|
|
2201
2201
|
* @see https://docs.kucoin.com/spot-hf/#cancel-all-hf-orders-by-symbol
|
|
2202
2202
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2203
|
-
* @param {object} [params] extra parameters specific to the
|
|
2203
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2204
2204
|
* @param {bool} [params.stop] *invalid for isolated margin* true if cancelling all stop orders
|
|
2205
2205
|
* @param {string} [params.marginMode] 'cross' or 'isolated'
|
|
2206
2206
|
* @param {string} [params.orderIds] *stop orders only* Comma seperated order IDs
|
|
@@ -2368,7 +2368,7 @@ export default class kucoin extends Exchange {
|
|
|
2368
2368
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2369
2369
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2370
2370
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2371
|
-
* @param {object} [params] extra parameters specific to the
|
|
2371
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2372
2372
|
* @param {int} [params.till] end time in ms
|
|
2373
2373
|
* @param {string} [params.side] buy or sell
|
|
2374
2374
|
* @param {string} [params.type] limit, market, limit_stop or market_stop
|
|
@@ -2398,7 +2398,7 @@ export default class kucoin extends Exchange {
|
|
|
2398
2398
|
* @param {string} symbol unified market symbol
|
|
2399
2399
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2400
2400
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2401
|
-
* @param {object} [params] extra parameters specific to the
|
|
2401
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2402
2402
|
* @param {int} [params.till] end time in ms
|
|
2403
2403
|
* @param {bool} [params.stop] true if fetching stop orders
|
|
2404
2404
|
* @param {string} [params.side] buy or sell
|
|
@@ -2688,7 +2688,7 @@ export default class kucoin extends Exchange {
|
|
|
2688
2688
|
* @param {string} symbol unified market symbol
|
|
2689
2689
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2690
2690
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2691
|
-
* @param {object} [params] extra parameters specific to the
|
|
2691
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2692
2692
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2693
2693
|
*/
|
|
2694
2694
|
const request = {
|
|
@@ -2706,7 +2706,7 @@ export default class kucoin extends Exchange {
|
|
|
2706
2706
|
* @param {string} symbol unified market symbol
|
|
2707
2707
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2708
2708
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2709
|
-
* @param {object} [params] extra parameters specific to the
|
|
2709
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2710
2710
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
2711
2711
|
* @param {bool} [params.hf] false, // true for hf order
|
|
2712
2712
|
* @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)
|
|
@@ -2815,7 +2815,7 @@ export default class kucoin extends Exchange {
|
|
|
2815
2815
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2816
2816
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2817
2817
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2818
|
-
* @param {object} [params] extra parameters specific to the
|
|
2818
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2819
2819
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2820
2820
|
*/
|
|
2821
2821
|
await this.loadMarkets();
|
|
@@ -2986,7 +2986,7 @@ export default class kucoin extends Exchange {
|
|
|
2986
2986
|
* @description fetch the trading fees for a market
|
|
2987
2987
|
* @see https://docs.kucoin.com/#actual-fee-rate-of-the-trading-pair
|
|
2988
2988
|
* @param {string} symbol unified market symbol
|
|
2989
|
-
* @param {object} [params] extra parameters specific to the
|
|
2989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2990
2990
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2991
2991
|
*/
|
|
2992
2992
|
await this.loadMarkets();
|
|
@@ -3029,7 +3029,7 @@ export default class kucoin extends Exchange {
|
|
|
3029
3029
|
* @param {float} amount the amount to withdraw
|
|
3030
3030
|
* @param {string} address the address to withdraw to
|
|
3031
3031
|
* @param {string} tag
|
|
3032
|
-
* @param {object} [params] extra parameters specific to the
|
|
3032
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3033
3033
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3034
3034
|
*/
|
|
3035
3035
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -3204,7 +3204,7 @@ export default class kucoin extends Exchange {
|
|
|
3204
3204
|
* @param {string} code unified currency code
|
|
3205
3205
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3206
3206
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3207
|
-
* @param {object} [params] extra parameters specific to the
|
|
3207
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3208
3208
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
3209
3209
|
* @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)
|
|
3210
3210
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
@@ -3288,7 +3288,7 @@ export default class kucoin extends Exchange {
|
|
|
3288
3288
|
* @param {string} code unified currency code
|
|
3289
3289
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3290
3290
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3291
|
-
* @param {object} [params] extra parameters specific to the
|
|
3291
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3292
3292
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
3293
3293
|
* @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)
|
|
3294
3294
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
@@ -3380,9 +3380,9 @@ export default class kucoin extends Exchange {
|
|
|
3380
3380
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
3381
3381
|
* @see https://docs.kucoin.com/#list-accounts
|
|
3382
3382
|
* @see https://docs.kucoin.com/#query-isolated-margin-account-info
|
|
3383
|
-
* @param {object} [params] extra parameters specific to the
|
|
3383
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3384
3384
|
* @param {object} [params.marginMode] 'cross' or 'isolated', margin type for fetching margin balance
|
|
3385
|
-
* @param {object} [params.type] extra parameters specific to the
|
|
3385
|
+
* @param {object} [params.type] extra parameters specific to the exchange API endpoint
|
|
3386
3386
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
3387
3387
|
*/
|
|
3388
3388
|
await this.loadMarkets();
|
|
@@ -3531,7 +3531,7 @@ export default class kucoin extends Exchange {
|
|
|
3531
3531
|
* @param {float} amount amount to transfer
|
|
3532
3532
|
* @param {string} fromAccount account to transfer from
|
|
3533
3533
|
* @param {string} toAccount account to transfer to
|
|
3534
|
-
* @param {object} [params] extra parameters specific to the
|
|
3534
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3535
3535
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
3536
3536
|
*/
|
|
3537
3537
|
await this.loadMarkets();
|
|
@@ -3813,7 +3813,7 @@ export default class kucoin extends Exchange {
|
|
|
3813
3813
|
* @param {string} code unified currency code, default is undefined
|
|
3814
3814
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
3815
3815
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
3816
|
-
* @param {object} [params] extra parameters specific to the
|
|
3816
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3817
3817
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
3818
3818
|
* @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)
|
|
3819
3819
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -3945,7 +3945,7 @@ export default class kucoin extends Exchange {
|
|
|
3945
3945
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
3946
3946
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
3947
3947
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
3948
|
-
* @param {object} [params] extra parameters specific to the
|
|
3948
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3949
3949
|
* @param {string} [params.marginMode] 'cross' or 'isolated' default is 'cross'
|
|
3950
3950
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
3951
3951
|
*/
|
|
@@ -4119,7 +4119,7 @@ export default class kucoin extends Exchange {
|
|
|
4119
4119
|
* @see https://docs.kucoin.com/#1-margin-borrowing
|
|
4120
4120
|
* @param {string} code unified currency code of the currency to borrow
|
|
4121
4121
|
* @param {float} amount the amount to borrow
|
|
4122
|
-
* @param {object} [params] extra parameters specific to the
|
|
4122
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoints
|
|
4123
4123
|
* @param {string} [params.timeInForce] either IOC or FOK
|
|
4124
4124
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
4125
4125
|
*/
|
|
@@ -4155,7 +4155,7 @@ export default class kucoin extends Exchange {
|
|
|
4155
4155
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
4156
4156
|
* @param {string} code unified currency code of the currency to borrow
|
|
4157
4157
|
* @param {float} amount the amount to borrow
|
|
4158
|
-
* @param {object} [params] extra parameters specific to the
|
|
4158
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoints
|
|
4159
4159
|
* @param {string} [params.timeInForce] either IOC or FOK
|
|
4160
4160
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
4161
4161
|
*/
|
|
@@ -4193,7 +4193,7 @@ export default class kucoin extends Exchange {
|
|
|
4193
4193
|
* @see https://docs.kucoin.com/#2-repayment
|
|
4194
4194
|
* @param {string} code unified currency code of the currency to repay
|
|
4195
4195
|
* @param {float} amount the amount to repay
|
|
4196
|
-
* @param {object} [params] extra parameters specific to the
|
|
4196
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoints
|
|
4197
4197
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
4198
4198
|
*/
|
|
4199
4199
|
await this.loadMarkets();
|
|
@@ -4227,7 +4227,7 @@ export default class kucoin extends Exchange {
|
|
|
4227
4227
|
* @param {string} symbol unified market symbol
|
|
4228
4228
|
* @param {string} code unified currency code of the currency to repay
|
|
4229
4229
|
* @param {float} amount the amount to repay
|
|
4230
|
-
* @param {object} [params] extra parameters specific to the
|
|
4230
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoints
|
|
4231
4231
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
4232
4232
|
*/
|
|
4233
4233
|
await this.loadMarkets();
|
|
@@ -4281,7 +4281,7 @@ export default class kucoin extends Exchange {
|
|
|
4281
4281
|
* @description fetch deposit and withdraw fees - *IMPORTANT* use fetchDepositWithdrawFee to get more in-depth info
|
|
4282
4282
|
* @see https://docs.kucoin.com/#get-currencies
|
|
4283
4283
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
4284
|
-
* @param {object} [params] extra parameters specific to the
|
|
4284
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4285
4285
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
4286
4286
|
*/
|
|
4287
4287
|
await this.loadMarkets();
|
package/js/src/kucoinfutures.js
CHANGED
|
@@ -324,7 +324,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
324
324
|
* @name kucoinfutures#fetchStatus
|
|
325
325
|
* @description the latest known information on the availability of the exchange API
|
|
326
326
|
* @see https://www.kucoin.com/docs/rest/futures-trading/market-data/get-service-status
|
|
327
|
-
* @param {object} [params] extra parameters specific to the
|
|
327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
328
328
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
329
329
|
*/
|
|
330
330
|
const response = await this.futuresPublicGetStatus(params);
|
|
@@ -518,7 +518,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
518
518
|
* @name kucoinfutures#fetchTime
|
|
519
519
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
520
520
|
* @see https://www.kucoin.com/docs/rest/futures-trading/market-data/get-server-time
|
|
521
|
-
* @param {object} [params] extra parameters specific to the
|
|
521
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
522
522
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
523
523
|
*/
|
|
524
524
|
const response = await this.futuresPublicGetTimestamp(params);
|
|
@@ -540,7 +540,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
540
540
|
* @param {string} timeframe the length of time each candle represents
|
|
541
541
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
542
542
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
543
|
-
* @param {object} [params] extra parameters specific to the
|
|
543
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
544
544
|
* @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)
|
|
545
545
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
546
546
|
*/
|
|
@@ -618,7 +618,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
618
618
|
* @description fetch the deposit address for a currency associated with this account
|
|
619
619
|
* @see https://www.kucoin.com/docs/rest/funding/deposit/get-deposit-address
|
|
620
620
|
* @param {string} code unified currency code
|
|
621
|
-
* @param {object} [params] extra parameters specific to the
|
|
621
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
622
622
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
623
623
|
*/
|
|
624
624
|
await this.loadMarkets();
|
|
@@ -659,7 +659,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
659
659
|
* @see https://www.kucoin.com/docs/rest/futures-trading/market-data/get-part-order-book-level-2
|
|
660
660
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
661
661
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
662
|
-
* @param {object} [params] extra parameters specific to the
|
|
662
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
663
663
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
664
664
|
*/
|
|
665
665
|
await this.loadMarkets();
|
|
@@ -717,7 +717,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
717
717
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
718
718
|
* @see https://www.kucoin.com/docs/rest/futures-trading/market-data/get-ticker
|
|
719
719
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
720
|
-
* @param {object} [params] extra parameters specific to the
|
|
720
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
721
721
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
722
722
|
*/
|
|
723
723
|
await this.loadMarkets();
|
|
@@ -801,7 +801,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
801
801
|
* @param {string} symbol unified market symbol
|
|
802
802
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
803
803
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
804
|
-
* @param {object} [params] extra parameters specific to the
|
|
804
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
805
805
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
806
806
|
*/
|
|
807
807
|
if (symbol === undefined) {
|
|
@@ -871,7 +871,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
871
871
|
* @see https://docs.kucoin.com/futures/#get-position-details
|
|
872
872
|
* @description fetch data on an open position
|
|
873
873
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
874
|
-
* @param {object} [params] extra parameters specific to the
|
|
874
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
875
875
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
876
876
|
*/
|
|
877
877
|
await this.loadMarkets();
|
|
@@ -934,7 +934,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
934
934
|
* @description fetch all open positions
|
|
935
935
|
* @see https://docs.kucoin.com/futures/#get-position-list
|
|
936
936
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
937
|
-
* @param {object} [params] extra parameters specific to the
|
|
937
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
938
938
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
939
939
|
*/
|
|
940
940
|
await this.loadMarkets();
|
|
@@ -1095,7 +1095,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1095
1095
|
* @param {string} side 'buy' or 'sell'
|
|
1096
1096
|
* @param {float} amount the amount of currency to trade
|
|
1097
1097
|
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
1098
|
-
* @param {object} [params]
|
|
1098
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1099
1099
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
1100
1100
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
1101
1101
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
@@ -1237,7 +1237,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1237
1237
|
* @see https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-futures-order-by-orderid
|
|
1238
1238
|
* @param {string} id order id
|
|
1239
1239
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1240
|
-
* @param {object} [params] extra parameters specific to the
|
|
1240
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1241
1241
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1242
1242
|
*/
|
|
1243
1243
|
await this.loadMarkets();
|
|
@@ -1265,7 +1265,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1265
1265
|
* @see https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-limit-orders
|
|
1266
1266
|
* @see https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-multiple-futures-stop-orders
|
|
1267
1267
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1268
|
-
* @param {object} [params] extra parameters specific to the
|
|
1268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1269
1269
|
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1270
1270
|
* @returns Response from the exchange
|
|
1271
1271
|
*/
|
|
@@ -1303,7 +1303,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1303
1303
|
* @see https://www.kucoin.com/docs/rest/futures-trading/positions/add-margin-manually
|
|
1304
1304
|
* @param {string} symbol unified market symbol
|
|
1305
1305
|
* @param {float} amount amount of margin to add
|
|
1306
|
-
* @param {object} [params] extra parameters specific to the
|
|
1306
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1307
1307
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
1308
1308
|
*/
|
|
1309
1309
|
await this.loadMarkets();
|
|
@@ -1555,7 +1555,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1555
1555
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1556
1556
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1557
1557
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1558
|
-
* @param {object} [params] extra parameters specific to the
|
|
1558
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1559
1559
|
* @param {int} [params.till] end time in ms
|
|
1560
1560
|
* @param {string} [params.side] buy or sell
|
|
1561
1561
|
* @param {string} [params.type] limit, or market
|
|
@@ -1577,7 +1577,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1577
1577
|
* @description fetches information on an order made by the user
|
|
1578
1578
|
* @see https://docs.kucoin.com/futures/#get-details-of-a-single-order
|
|
1579
1579
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1580
|
-
* @param {object} [params] extra parameters specific to the
|
|
1580
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1581
1581
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1582
1582
|
*/
|
|
1583
1583
|
await this.loadMarkets();
|
|
@@ -1762,7 +1762,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1762
1762
|
* @description fetch the current funding rate
|
|
1763
1763
|
* @see https://www.kucoin.com/docs/rest/futures-trading/market-data/get-current-funding-rate
|
|
1764
1764
|
* @param {string} symbol unified market symbol
|
|
1765
|
-
* @param {object} [params] extra parameters specific to the
|
|
1765
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1766
1766
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1767
1767
|
*/
|
|
1768
1768
|
await this.loadMarkets();
|
|
@@ -1827,7 +1827,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1827
1827
|
* @name kucoinfutures#fetchBalance
|
|
1828
1828
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1829
1829
|
* @see https://www.kucoin.com/docs/rest/funding/funding-overview/get-account-detail-futures
|
|
1830
|
-
* @param {object} [params] extra parameters specific to the
|
|
1830
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1831
1831
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1832
1832
|
*/
|
|
1833
1833
|
await this.loadMarkets();
|
|
@@ -1867,7 +1867,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1867
1867
|
* @param {float} amount amount to transfer
|
|
1868
1868
|
* @param {string} fromAccount account to transfer from
|
|
1869
1869
|
* @param {string} toAccount account to transfer to
|
|
1870
|
-
* @param {object} [params] extra parameters specific to the
|
|
1870
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1871
1871
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1872
1872
|
*/
|
|
1873
1873
|
if ((toAccount !== 'main' && toAccount !== 'funding') || (fromAccount !== 'futures' && fromAccount !== 'future' && fromAccount !== 'contract')) {
|
|
@@ -1933,7 +1933,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
1933
1933
|
* @param {string} symbol unified market symbol
|
|
1934
1934
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1935
1935
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1936
|
-
* @param {object} [params] extra parameters specific to the
|
|
1936
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1937
1937
|
* @param {int} [params.until] End time in ms
|
|
1938
1938
|
* @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)
|
|
1939
1939
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -2008,7 +2008,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
2008
2008
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2009
2009
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2010
2010
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2011
|
-
* @param {object} [params] extra parameters specific to the
|
|
2011
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2012
2012
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2013
2013
|
*/
|
|
2014
2014
|
await this.loadMarkets();
|
|
@@ -2180,7 +2180,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
2180
2180
|
* @param {string} code unified currency code
|
|
2181
2181
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2182
2182
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2183
|
-
* @param {object} [params] extra parameters specific to the
|
|
2183
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2184
2184
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2185
2185
|
*/
|
|
2186
2186
|
await this.loadMarkets();
|
|
@@ -2235,7 +2235,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
2235
2235
|
* @param {string} code unified currency code
|
|
2236
2236
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2237
2237
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2238
|
-
* @param {object} [params] extra parameters specific to the
|
|
2238
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2239
2239
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2240
2240
|
*/
|
|
2241
2241
|
await this.loadMarkets();
|
|
@@ -2289,7 +2289,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
2289
2289
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
2290
2290
|
* @see https://www.kucoin.com/docs/rest/futures-trading/risk-limit/get-futures-risk-limit-level
|
|
2291
2291
|
* @param {string} symbol unified market symbol
|
|
2292
|
-
* @param {object} [params] extra parameters specific to the
|
|
2292
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2293
2293
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
2294
2294
|
*/
|
|
2295
2295
|
await this.loadMarkets();
|
|
@@ -2362,7 +2362,7 @@ export default class kucoinfutures extends kucoin {
|
|
|
2362
2362
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2363
2363
|
* @param {int} [since] not used by kucuoinfutures
|
|
2364
2364
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2365
|
-
* @param {object} [params] extra parameters specific to the
|
|
2365
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2366
2366
|
* @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)
|
|
2367
2367
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
2368
2368
|
*/
|