ccxt 4.0.74 → 4.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2047 -1932
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +21 -21
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +5 -5
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +21 -21
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.js +5 -5
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/dist/cjs/src/idex.js
CHANGED
|
@@ -321,7 +321,7 @@ class idex extends idex$1 {
|
|
|
321
321
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
322
322
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
323
323
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
324
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
324
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
325
325
|
*/
|
|
326
326
|
await this.loadMarkets();
|
|
327
327
|
const market = this.market(symbol);
|
|
@@ -357,7 +357,7 @@ class idex extends idex$1 {
|
|
|
357
357
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
358
358
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
359
359
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
360
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
360
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
361
361
|
*/
|
|
362
362
|
await this.loadMarkets();
|
|
363
363
|
// [
|
|
@@ -607,7 +607,7 @@ class idex extends idex$1 {
|
|
|
607
607
|
* @name idex#fetchTradingFees
|
|
608
608
|
* @description fetch the trading fees for multiple markets
|
|
609
609
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
610
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
610
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
611
611
|
*/
|
|
612
612
|
this.checkRequiredCredentials();
|
|
613
613
|
await this.loadMarkets();
|
|
@@ -654,7 +654,7 @@ class idex extends idex$1 {
|
|
|
654
654
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
655
655
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
656
656
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
657
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
657
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
658
658
|
*/
|
|
659
659
|
await this.loadMarkets();
|
|
660
660
|
const market = this.market(symbol);
|
|
@@ -827,7 +827,7 @@ class idex extends idex$1 {
|
|
|
827
827
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
828
828
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
829
829
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
830
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
830
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
831
831
|
*/
|
|
832
832
|
this.checkRequiredCredentials();
|
|
833
833
|
await this.loadMarkets();
|
|
@@ -893,7 +893,7 @@ class idex extends idex$1 {
|
|
|
893
893
|
* @description fetches information on an order made by the user
|
|
894
894
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
895
895
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
896
|
-
* @returns {object} An [order structure]{@link https://
|
|
896
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
897
897
|
*/
|
|
898
898
|
const request = {
|
|
899
899
|
'orderId': id,
|
|
@@ -909,7 +909,7 @@ class idex extends idex$1 {
|
|
|
909
909
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
910
910
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
911
911
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
912
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
912
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
913
913
|
*/
|
|
914
914
|
const request = {
|
|
915
915
|
'closed': false,
|
|
@@ -925,7 +925,7 @@ class idex extends idex$1 {
|
|
|
925
925
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
926
926
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
927
927
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
928
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
928
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
929
929
|
*/
|
|
930
930
|
const request = {
|
|
931
931
|
'closed': true,
|
|
@@ -1136,9 +1136,9 @@ class idex extends idex$1 {
|
|
|
1136
1136
|
* @param {string} type 'market' or 'limit'
|
|
1137
1137
|
* @param {string} side 'buy' or 'sell'
|
|
1138
1138
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1139
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1139
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1140
1140
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1141
|
-
* @returns {object} an [order structure]{@link https://
|
|
1141
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1142
1142
|
*/
|
|
1143
1143
|
this.checkRequiredCredentials();
|
|
1144
1144
|
await this.loadMarkets();
|
|
@@ -1335,7 +1335,7 @@ class idex extends idex$1 {
|
|
|
1335
1335
|
* @param {string} address the address to withdraw to
|
|
1336
1336
|
* @param {string} tag
|
|
1337
1337
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1338
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1338
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1339
1339
|
*/
|
|
1340
1340
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1341
1341
|
this.checkRequiredCredentials();
|
|
@@ -1385,7 +1385,7 @@ class idex extends idex$1 {
|
|
|
1385
1385
|
* @description cancel all open orders
|
|
1386
1386
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1387
1387
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1388
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1388
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1389
1389
|
*/
|
|
1390
1390
|
this.checkRequiredCredentials();
|
|
1391
1391
|
await this.loadMarkets();
|
|
@@ -1425,7 +1425,7 @@ class idex extends idex$1 {
|
|
|
1425
1425
|
* @param {string} id order id
|
|
1426
1426
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1427
1427
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1428
|
-
* @returns {object} An [order structure]{@link https://
|
|
1428
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1429
1429
|
*/
|
|
1430
1430
|
this.checkRequiredCredentials();
|
|
1431
1431
|
await this.loadMarkets();
|
|
@@ -1476,7 +1476,7 @@ class idex extends idex$1 {
|
|
|
1476
1476
|
* @param {string} id deposit id
|
|
1477
1477
|
* @param {string} code not used by idex fetchDeposit ()
|
|
1478
1478
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1479
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1479
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1480
1480
|
*/
|
|
1481
1481
|
await this.loadMarkets();
|
|
1482
1482
|
const nonce = this.uuidv1();
|
|
@@ -1497,7 +1497,7 @@ class idex extends idex$1 {
|
|
|
1497
1497
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1498
1498
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1499
1499
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1500
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1500
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1501
1501
|
*/
|
|
1502
1502
|
params = this.extend({
|
|
1503
1503
|
'method': 'privateGetDeposits',
|
|
@@ -1526,7 +1526,7 @@ class idex extends idex$1 {
|
|
|
1526
1526
|
* @param {string} id withdrawal id
|
|
1527
1527
|
* @param {string} code not used by idex.fetchWithdrawal
|
|
1528
1528
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1529
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1529
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
await this.loadMarkets();
|
|
1532
1532
|
const nonce = this.uuidv1();
|
|
@@ -1547,7 +1547,7 @@ class idex extends idex$1 {
|
|
|
1547
1547
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1548
1548
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1549
1549
|
* @param {object} [params] extra parameters specific to the idex api endpoint
|
|
1550
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1550
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1551
1551
|
*/
|
|
1552
1552
|
params = this.extend({
|
|
1553
1553
|
'method': 'privateGetWithdrawals',
|
|
@@ -250,7 +250,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
250
250
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
251
251
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
252
252
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
253
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
253
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
254
254
|
*/
|
|
255
255
|
await this.loadMarkets();
|
|
256
256
|
const market = this.market(symbol);
|
|
@@ -316,7 +316,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
316
316
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
317
317
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
318
318
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
319
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
319
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
320
320
|
*/
|
|
321
321
|
await this.loadMarkets();
|
|
322
322
|
const market = this.market(symbol);
|
|
@@ -461,7 +461,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
461
461
|
* @description fetches information on an order made by the user
|
|
462
462
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
463
463
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
464
|
-
* @returns {object} An [order structure]{@link https://
|
|
464
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
465
465
|
*/
|
|
466
466
|
await this.loadMarkets();
|
|
467
467
|
const response = await this.privatePostGetOrderDetails(this.extend({
|
|
@@ -482,7 +482,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
482
482
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
483
483
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
484
484
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
485
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
485
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
486
486
|
*/
|
|
487
487
|
await this.loadMarkets();
|
|
488
488
|
const request = this.ordered({});
|
|
@@ -510,7 +510,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
510
510
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
511
511
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
512
512
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
513
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
513
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
514
514
|
*/
|
|
515
515
|
await this.loadMarkets();
|
|
516
516
|
const request = this.ordered({});
|
|
@@ -538,7 +538,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
538
538
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
539
539
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
540
540
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
541
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
541
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
542
542
|
*/
|
|
543
543
|
await this.loadMarkets();
|
|
544
544
|
const pageIndex = this.safeInteger(params, 'pageIndex', 1);
|
|
@@ -624,7 +624,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
624
624
|
* @name independentreserve#fetchTradingFees
|
|
625
625
|
* @description fetch the trading fees for multiple markets
|
|
626
626
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
627
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
627
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
628
628
|
*/
|
|
629
629
|
await this.loadMarkets();
|
|
630
630
|
const response = await this.privatePostGetBrokerageFees(params);
|
|
@@ -673,9 +673,9 @@ class independentreserve extends independentreserve$1 {
|
|
|
673
673
|
* @param {string} type 'market' or 'limit'
|
|
674
674
|
* @param {string} side 'buy' or 'sell'
|
|
675
675
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
676
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
676
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
677
677
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
678
|
-
* @returns {object} an [order structure]{@link https://
|
|
678
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
679
679
|
*/
|
|
680
680
|
await this.loadMarkets();
|
|
681
681
|
const market = this.market(symbol);
|
|
@@ -706,7 +706,7 @@ class independentreserve extends independentreserve$1 {
|
|
|
706
706
|
* @param {string} id order id
|
|
707
707
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
708
708
|
* @param {object} [params] extra parameters specific to the independentreserve api endpoint
|
|
709
|
-
* @returns {object} An [order structure]{@link https://
|
|
709
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
710
710
|
*/
|
|
711
711
|
await this.loadMarkets();
|
|
712
712
|
const request = {
|
package/dist/cjs/src/indodax.js
CHANGED
|
@@ -355,7 +355,7 @@ class indodax extends indodax$1 {
|
|
|
355
355
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
356
356
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
357
357
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
358
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
358
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
359
359
|
*/
|
|
360
360
|
await this.loadMarkets();
|
|
361
361
|
const market = this.market(symbol);
|
|
@@ -413,7 +413,7 @@ class indodax extends indodax$1 {
|
|
|
413
413
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
414
414
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
415
415
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
416
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
416
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
417
417
|
*/
|
|
418
418
|
await this.loadMarkets();
|
|
419
419
|
const market = this.market(symbol);
|
|
@@ -446,7 +446,7 @@ class indodax extends indodax$1 {
|
|
|
446
446
|
* @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
|
|
447
447
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
448
448
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
449
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
449
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
450
450
|
*/
|
|
451
451
|
await this.loadMarkets();
|
|
452
452
|
//
|
|
@@ -599,7 +599,7 @@ class indodax extends indodax$1 {
|
|
|
599
599
|
* @description fetches information on an order made by the user
|
|
600
600
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
601
601
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
602
|
-
* @returns {object} An [order structure]{@link https://
|
|
602
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
603
603
|
*/
|
|
604
604
|
if (symbol === undefined) {
|
|
605
605
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol');
|
|
@@ -624,7 +624,7 @@ class indodax extends indodax$1 {
|
|
|
624
624
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
625
625
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
626
626
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
627
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
627
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
628
628
|
*/
|
|
629
629
|
await this.loadMarkets();
|
|
630
630
|
let market = undefined;
|
|
@@ -664,7 +664,7 @@ class indodax extends indodax$1 {
|
|
|
664
664
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
665
665
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
666
666
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
667
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
667
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
668
668
|
*/
|
|
669
669
|
if (symbol === undefined) {
|
|
670
670
|
throw new errors.ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -691,9 +691,9 @@ class indodax extends indodax$1 {
|
|
|
691
691
|
* @param {string} type 'market' or 'limit'
|
|
692
692
|
* @param {string} side 'buy' or 'sell'
|
|
693
693
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
694
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
694
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
695
695
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
696
|
-
* @returns {object} an [order structure]{@link https://
|
|
696
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
697
697
|
*/
|
|
698
698
|
if (type !== 'limit') {
|
|
699
699
|
throw new errors.ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -729,7 +729,7 @@ class indodax extends indodax$1 {
|
|
|
729
729
|
* @param {string} id order id
|
|
730
730
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
731
731
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
732
|
-
* @returns {object} An [order structure]{@link https://
|
|
732
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
733
733
|
*/
|
|
734
734
|
if (symbol === undefined) {
|
|
735
735
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -754,7 +754,7 @@ class indodax extends indodax$1 {
|
|
|
754
754
|
* @description fetch the fee for a transaction
|
|
755
755
|
* @param {string} code unified currency code
|
|
756
756
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
757
|
-
* @returns {object} a [fee structure]{@link https://
|
|
757
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
758
758
|
*/
|
|
759
759
|
await this.loadMarkets();
|
|
760
760
|
const currency = this.currency(code);
|
|
@@ -789,7 +789,7 @@ class indodax extends indodax$1 {
|
|
|
789
789
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
790
790
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
791
791
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
792
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
792
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
793
793
|
*/
|
|
794
794
|
await this.loadMarkets();
|
|
795
795
|
const request = {};
|
|
@@ -891,7 +891,7 @@ class indodax extends indodax$1 {
|
|
|
891
891
|
* @param {string} address the address to withdraw to
|
|
892
892
|
* @param {string} tag
|
|
893
893
|
* @param {object} [params] extra parameters specific to the indodax api endpoint
|
|
894
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
894
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
895
895
|
*/
|
|
896
896
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
897
897
|
this.checkAddress(address);
|
package/dist/cjs/src/kraken.js
CHANGED
|
@@ -600,7 +600,7 @@ class kraken extends kraken$1 {
|
|
|
600
600
|
* @description fetch the trading fees for a market
|
|
601
601
|
* @param {string} symbol unified market symbol
|
|
602
602
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
603
|
-
* @returns {object} a [fee structure]{@link https://
|
|
603
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
604
604
|
*/
|
|
605
605
|
await this.loadMarkets();
|
|
606
606
|
const market = this.market(symbol);
|
|
@@ -669,7 +669,7 @@ class kraken extends kraken$1 {
|
|
|
669
669
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
670
670
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
671
671
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
672
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
672
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
673
673
|
*/
|
|
674
674
|
await this.loadMarkets();
|
|
675
675
|
const market = this.market(symbol);
|
|
@@ -770,7 +770,7 @@ class kraken extends kraken$1 {
|
|
|
770
770
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
771
771
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
772
772
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
773
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
773
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
774
774
|
*/
|
|
775
775
|
await this.loadMarkets();
|
|
776
776
|
const request = {};
|
|
@@ -806,7 +806,7 @@ class kraken extends kraken$1 {
|
|
|
806
806
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
807
807
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
808
808
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
809
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
809
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
810
810
|
*/
|
|
811
811
|
await this.loadMarkets();
|
|
812
812
|
const darkpool = symbol.indexOf('.d') >= 0;
|
|
@@ -964,7 +964,7 @@ class kraken extends kraken$1 {
|
|
|
964
964
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
965
965
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
966
966
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
967
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
967
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
968
968
|
*/
|
|
969
969
|
// https://www.kraken.com/features/api#get-ledgers-info
|
|
970
970
|
await this.loadMarkets();
|
|
@@ -1238,11 +1238,11 @@ class kraken extends kraken$1 {
|
|
|
1238
1238
|
* @param {string} type 'market' or 'limit'
|
|
1239
1239
|
* @param {string} side 'buy' or 'sell'
|
|
1240
1240
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1241
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1241
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1242
1242
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1243
1243
|
* @param {bool} params.postOnly
|
|
1244
1244
|
* @param {bool} params.reduceOnly
|
|
1245
|
-
* @returns {object} an [order structure]{@link https://
|
|
1245
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1246
1246
|
*/
|
|
1247
1247
|
await this.loadMarkets();
|
|
1248
1248
|
const market = this.market(symbol);
|
|
@@ -1571,9 +1571,9 @@ class kraken extends kraken$1 {
|
|
|
1571
1571
|
* @param {string} type 'market' or 'limit'
|
|
1572
1572
|
* @param {string} side 'buy' or 'sell'
|
|
1573
1573
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1574
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1574
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1575
1575
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1576
|
-
* @returns {object} an [order structure]{@link https://
|
|
1576
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1577
1577
|
*/
|
|
1578
1578
|
await this.loadMarkets();
|
|
1579
1579
|
const market = this.market(symbol);
|
|
@@ -1615,7 +1615,7 @@ class kraken extends kraken$1 {
|
|
|
1615
1615
|
* @description fetches information on an order made by the user
|
|
1616
1616
|
* @param {string} symbol not used by kraken fetchOrder
|
|
1617
1617
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1618
|
-
* @returns {object} An [order structure]{@link https://
|
|
1618
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1619
1619
|
*/
|
|
1620
1620
|
await this.loadMarkets();
|
|
1621
1621
|
const clientOrderId = this.safeValue2(params, 'userref', 'clientOrderId');
|
|
@@ -1687,7 +1687,7 @@ class kraken extends kraken$1 {
|
|
|
1687
1687
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1688
1688
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1689
1689
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1690
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1690
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1691
1691
|
*/
|
|
1692
1692
|
const orderTrades = this.safeValue(params, 'trades');
|
|
1693
1693
|
const tradeIds = [];
|
|
@@ -1785,7 +1785,7 @@ class kraken extends kraken$1 {
|
|
|
1785
1785
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1786
1786
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1787
1787
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1788
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1788
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1789
1789
|
*/
|
|
1790
1790
|
await this.loadMarkets();
|
|
1791
1791
|
const request = {
|
|
@@ -1843,7 +1843,7 @@ class kraken extends kraken$1 {
|
|
|
1843
1843
|
* @param {string} id order id
|
|
1844
1844
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1845
1845
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1846
|
-
* @returns {object} An [order structure]{@link https://
|
|
1846
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1847
1847
|
*/
|
|
1848
1848
|
await this.loadMarkets();
|
|
1849
1849
|
let response = undefined;
|
|
@@ -1873,7 +1873,7 @@ class kraken extends kraken$1 {
|
|
|
1873
1873
|
* @param {string[]} ids open orders transaction ID (txid) or user reference (userref)
|
|
1874
1874
|
* @param {string} symbol unified market symbol
|
|
1875
1875
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1876
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1876
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1877
1877
|
*/
|
|
1878
1878
|
const request = {
|
|
1879
1879
|
'orders': ids,
|
|
@@ -1896,7 +1896,7 @@ class kraken extends kraken$1 {
|
|
|
1896
1896
|
* @description cancel all open orders
|
|
1897
1897
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1898
1898
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1899
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1899
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1900
1900
|
*/
|
|
1901
1901
|
await this.loadMarkets();
|
|
1902
1902
|
return await this.privatePostCancelAll(params);
|
|
@@ -1910,7 +1910,7 @@ class kraken extends kraken$1 {
|
|
|
1910
1910
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1911
1911
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1912
1912
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1913
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1913
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1914
1914
|
*/
|
|
1915
1915
|
await this.loadMarkets();
|
|
1916
1916
|
const request = {};
|
|
@@ -1941,7 +1941,7 @@ class kraken extends kraken$1 {
|
|
|
1941
1941
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1942
1942
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1943
1943
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
1944
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1944
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1945
1945
|
*/
|
|
1946
1946
|
await this.loadMarkets();
|
|
1947
1947
|
const request = {};
|
|
@@ -2138,7 +2138,7 @@ class kraken extends kraken$1 {
|
|
|
2138
2138
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2139
2139
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2140
2140
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
2141
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2141
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2142
2142
|
*/
|
|
2143
2143
|
// https://www.kraken.com/en-us/help/api#deposit-status
|
|
2144
2144
|
if (code === undefined) {
|
|
@@ -2196,7 +2196,7 @@ class kraken extends kraken$1 {
|
|
|
2196
2196
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2197
2197
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2198
2198
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
2199
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2199
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2200
2200
|
*/
|
|
2201
2201
|
// https://www.kraken.com/en-us/help/api#withdraw-status
|
|
2202
2202
|
if (code === undefined) {
|
|
@@ -2230,7 +2230,7 @@ class kraken extends kraken$1 {
|
|
|
2230
2230
|
* @description create a currency deposit address
|
|
2231
2231
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2232
2232
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
2233
|
-
* @returns {object} an [address structure]{@link https://
|
|
2233
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2234
2234
|
*/
|
|
2235
2235
|
const request = {
|
|
2236
2236
|
'new': 'true',
|
|
@@ -2276,7 +2276,7 @@ class kraken extends kraken$1 {
|
|
|
2276
2276
|
* @description fetch the deposit address for a currency associated with this account
|
|
2277
2277
|
* @param {string} code unified currency code
|
|
2278
2278
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
2279
|
-
* @returns {object} an [address structure]{@link https://
|
|
2279
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2280
2280
|
*/
|
|
2281
2281
|
await this.loadMarkets();
|
|
2282
2282
|
const currency = this.currency(code);
|
|
@@ -2360,7 +2360,7 @@ class kraken extends kraken$1 {
|
|
|
2360
2360
|
* @param {string} address the address to withdraw to
|
|
2361
2361
|
* @param {string} tag
|
|
2362
2362
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
2363
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2363
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2364
2364
|
*/
|
|
2365
2365
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2366
2366
|
this.checkAddress(address);
|
|
@@ -2393,7 +2393,7 @@ class kraken extends kraken$1 {
|
|
|
2393
2393
|
* @description fetch all open positions
|
|
2394
2394
|
* @param {string[]|undefined} symbols not used by kraken fetchPositions ()
|
|
2395
2395
|
* @param {object} [params] extra parameters specific to the kraken api endpoint
|
|
2396
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2396
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2397
2397
|
*/
|
|
2398
2398
|
await this.loadMarkets();
|
|
2399
2399
|
const request = {
|
|
@@ -2465,7 +2465,7 @@ class kraken extends kraken$1 {
|
|
|
2465
2465
|
* @param {str} code Unified currency code
|
|
2466
2466
|
* @param {float} amount Size of the transfer
|
|
2467
2467
|
* @param {dict} [params] Exchange specific parameters
|
|
2468
|
-
* @returns a [transfer structure]{@link https://
|
|
2468
|
+
* @returns a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2469
2469
|
*/
|
|
2470
2470
|
return await this.transfer(code, amount, 'spot', 'swap', params);
|
|
2471
2471
|
}
|
|
@@ -2480,7 +2480,7 @@ class kraken extends kraken$1 {
|
|
|
2480
2480
|
* @param {string} fromAccount 'spot' or 'Spot Wallet'
|
|
2481
2481
|
* @param {string} toAccount 'swap' or 'Futures Wallet'
|
|
2482
2482
|
* @param {object} [params] Exchange specific parameters
|
|
2483
|
-
* @returns a [transfer structure]{@link https://
|
|
2483
|
+
* @returns a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2484
2484
|
*/
|
|
2485
2485
|
await this.loadMarkets();
|
|
2486
2486
|
const currency = this.currency(code);
|