ccxt 4.3.53 → 4.3.55
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.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +1 -1
- package/dist/cjs/src/alpaca.js +1 -1
- package/dist/cjs/src/ascendex.js +6 -4
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +6 -6
- package/dist/cjs/src/bingx.js +4 -4
- package/dist/cjs/src/bit2c.js +1 -1
- package/dist/cjs/src/bitbank.js +1 -1
- package/dist/cjs/src/bitbns.js +1 -1
- package/dist/cjs/src/bitfinex.js +1 -1
- package/dist/cjs/src/bitfinex2.js +1 -1
- package/dist/cjs/src/bitflyer.js +1 -1
- package/dist/cjs/src/bitget.js +2 -2
- package/dist/cjs/src/bithumb.js +1 -1
- package/dist/cjs/src/bitmart.js +3 -3
- package/dist/cjs/src/bitmex.js +1 -1
- package/dist/cjs/src/bitopro.js +1 -1
- package/dist/cjs/src/bitrue.js +1 -1
- package/dist/cjs/src/bitso.js +1 -1
- package/dist/cjs/src/bitstamp.js +1 -1
- package/dist/cjs/src/bitteam.js +1 -1
- package/dist/cjs/src/bitvavo.js +2 -2
- package/dist/cjs/src/bl3p.js +1 -1
- package/dist/cjs/src/blockchaincom.js +28 -28
- package/dist/cjs/src/blofin.js +1 -1
- package/dist/cjs/src/btcalpha.js +4 -12
- package/dist/cjs/src/btcbox.js +1 -1
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bybit.js +2 -2
- package/dist/cjs/src/cex.js +2 -2
- package/dist/cjs/src/coinbase.js +33 -33
- package/dist/cjs/src/coinbaseexchange.js +1 -1
- package/dist/cjs/src/coinbaseinternational.js +1 -1
- package/dist/cjs/src/coincheck.js +1 -1
- package/dist/cjs/src/coinex.js +2 -2
- package/dist/cjs/src/coinlist.js +2 -2
- package/dist/cjs/src/coinmate.js +1 -1
- package/dist/cjs/src/coinmetro.js +1 -1
- package/dist/cjs/src/coinone.js +1 -1
- package/dist/cjs/src/coinsph.js +1 -1
- package/dist/cjs/src/coinspot.js +1 -1
- package/dist/cjs/src/cryptocom.js +1 -1
- package/dist/cjs/src/currencycom.js +1 -1
- package/dist/cjs/src/delta.js +2 -2
- package/dist/cjs/src/deribit.js +4 -4
- package/dist/cjs/src/digifinex.js +2 -2
- package/dist/cjs/src/exmo.js +2 -2
- package/dist/cjs/src/gate.js +2 -2
- package/dist/cjs/src/gemini.js +1 -1
- package/dist/cjs/src/hitbtc.js +1 -1
- package/dist/cjs/src/hollaex.js +1 -1
- package/dist/cjs/src/htx.js +3 -3
- package/dist/cjs/src/huobijp.js +1 -1
- package/dist/cjs/src/hyperliquid.js +2 -2
- package/dist/cjs/src/idex.js +1 -1
- package/dist/cjs/src/independentreserve.js +1 -1
- package/dist/cjs/src/indodax.js +1 -1
- package/dist/cjs/src/kraken.js +2 -2
- package/dist/cjs/src/kucoin.js +136 -47
- package/dist/cjs/src/kucoinfutures.js +1 -1
- package/dist/cjs/src/kuna.js +1 -1
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/lbank.js +1 -1
- package/dist/cjs/src/luno.js +1 -1
- package/dist/cjs/src/lykke.js +1 -1
- package/dist/cjs/src/mercado.js +1 -1
- package/dist/cjs/src/mexc.js +1 -1
- package/dist/cjs/src/ndax.js +1 -1
- package/dist/cjs/src/novadax.js +1 -1
- package/dist/cjs/src/oceanex.js +1 -1
- package/dist/cjs/src/okcoin.js +1 -1
- package/dist/cjs/src/okx.js +3 -3
- package/dist/cjs/src/onetrading.js +1 -1
- package/dist/cjs/src/oxfun.js +2 -2
- package/dist/cjs/src/p2b.js +1 -1
- package/dist/cjs/src/paymium.js +1 -1
- package/dist/cjs/src/phemex.js +30 -3
- package/dist/cjs/src/poloniex.js +6 -4
- package/dist/cjs/src/poloniexfutures.js +1 -1
- package/dist/cjs/src/pro/binance.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +2 -2
- package/dist/cjs/src/pro/bybit.js +22 -14
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbase.js +23 -1
- package/dist/cjs/src/pro/cryptocom.js +1 -1
- package/dist/cjs/src/pro/gate.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +1 -1
- package/dist/cjs/src/pro/kraken.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +66 -28
- package/dist/cjs/src/pro/okx.js +2 -2
- package/dist/cjs/src/pro/oxfun.js +2 -2
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/vertex.js +2 -2
- package/dist/cjs/src/probit.js +1 -1
- package/dist/cjs/src/timex.js +1 -1
- package/dist/cjs/src/tokocrypto.js +1 -1
- package/dist/cjs/src/tradeogre.js +1 -1
- package/dist/cjs/src/upbit.js +1 -1
- package/dist/cjs/src/vertex.js +2 -2
- package/dist/cjs/src/wavesexchange.js +1 -1
- package/dist/cjs/src/wazirx.js +1 -1
- package/dist/cjs/src/whitebit.js +2 -2
- package/dist/cjs/src/woo.js +34 -26
- package/dist/cjs/src/woofipro.js +3 -3
- package/dist/cjs/src/yobit.js +1 -1
- package/dist/cjs/src/zaif.js +1 -1
- package/dist/cjs/src/zonda.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/kucoin.d.ts +3 -0
- package/js/src/abstract/kucoinfutures.d.ts +3 -0
- package/js/src/ace.js +1 -1
- package/js/src/alpaca.js +1 -1
- package/js/src/ascendex.d.ts +1 -1
- package/js/src/ascendex.js +6 -4
- package/js/src/base/types.d.ts +4 -0
- package/js/src/bigone.js +1 -1
- package/js/src/binance.js +6 -6
- package/js/src/bingx.js +4 -4
- package/js/src/bit2c.js +1 -1
- package/js/src/bitbank.js +1 -1
- package/js/src/bitbns.js +1 -1
- package/js/src/bitfinex.js +1 -1
- package/js/src/bitfinex2.js +1 -1
- package/js/src/bitflyer.js +1 -1
- package/js/src/bitget.js +2 -2
- package/js/src/bithumb.js +1 -1
- package/js/src/bitmart.js +3 -3
- package/js/src/bitmex.js +1 -1
- package/js/src/bitopro.js +1 -1
- package/js/src/bitrue.js +1 -1
- package/js/src/bitso.js +1 -1
- package/js/src/bitstamp.js +1 -1
- package/js/src/bitteam.js +1 -1
- package/js/src/bitvavo.js +2 -2
- package/js/src/bl3p.js +1 -1
- package/js/src/blockchaincom.js +28 -28
- package/js/src/blofin.js +1 -1
- package/js/src/btcalpha.js +5 -13
- package/js/src/btcbox.js +1 -1
- package/js/src/btcmarkets.js +1 -1
- package/js/src/btcturk.js +1 -1
- package/js/src/bybit.js +2 -2
- package/js/src/cex.js +2 -2
- package/js/src/coinbase.js +33 -33
- package/js/src/coinbaseexchange.js +1 -1
- package/js/src/coinbaseinternational.js +1 -1
- package/js/src/coincheck.js +1 -1
- package/js/src/coinex.js +2 -2
- package/js/src/coinlist.js +2 -2
- package/js/src/coinmate.js +1 -1
- package/js/src/coinmetro.js +1 -1
- package/js/src/coinone.js +1 -1
- package/js/src/coinsph.js +1 -1
- package/js/src/coinspot.js +1 -1
- package/js/src/cryptocom.js +1 -1
- package/js/src/currencycom.js +1 -1
- package/js/src/delta.js +2 -2
- package/js/src/deribit.js +4 -4
- package/js/src/digifinex.js +2 -2
- package/js/src/exmo.js +2 -2
- package/js/src/gate.js +2 -2
- package/js/src/gemini.js +1 -1
- package/js/src/hitbtc.js +1 -1
- package/js/src/hollaex.js +1 -1
- package/js/src/htx.js +3 -3
- package/js/src/huobijp.js +1 -1
- package/js/src/hyperliquid.js +2 -2
- package/js/src/idex.js +1 -1
- package/js/src/independentreserve.js +1 -1
- package/js/src/indodax.js +1 -1
- package/js/src/kraken.js +2 -2
- package/js/src/kucoin.d.ts +1 -0
- package/js/src/kucoin.js +136 -47
- package/js/src/kucoinfutures.js +1 -1
- package/js/src/kuna.js +1 -1
- package/js/src/latoken.js +1 -1
- package/js/src/lbank.js +1 -1
- package/js/src/luno.js +1 -1
- package/js/src/lykke.js +1 -1
- package/js/src/mercado.js +1 -1
- package/js/src/mexc.js +1 -1
- package/js/src/ndax.js +1 -1
- package/js/src/novadax.js +1 -1
- package/js/src/oceanex.js +1 -1
- package/js/src/okcoin.js +1 -1
- package/js/src/okx.js +3 -3
- package/js/src/onetrading.js +1 -1
- package/js/src/oxfun.js +2 -2
- package/js/src/p2b.js +1 -1
- package/js/src/paymium.js +1 -1
- package/js/src/phemex.d.ts +1 -1
- package/js/src/phemex.js +30 -3
- package/js/src/poloniex.js +6 -4
- package/js/src/poloniexfutures.js +1 -1
- package/js/src/pro/binance.js +3 -3
- package/js/src/pro/bitvavo.js +2 -2
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +22 -14
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbase.d.ts +1 -0
- package/js/src/pro/coinbase.js +23 -1
- package/js/src/pro/cryptocom.js +1 -1
- package/js/src/pro/gate.js +2 -2
- package/js/src/pro/hitbtc.js +1 -1
- package/js/src/pro/kraken.js +2 -2
- package/js/src/pro/kucoin.js +66 -28
- package/js/src/pro/okx.js +2 -2
- package/js/src/pro/oxfun.js +2 -2
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/vertex.js +2 -2
- package/js/src/probit.js +1 -1
- package/js/src/timex.js +1 -1
- package/js/src/tokocrypto.js +1 -1
- package/js/src/tradeogre.js +1 -1
- package/js/src/upbit.js +1 -1
- package/js/src/vertex.js +2 -2
- package/js/src/wavesexchange.js +1 -1
- package/js/src/wazirx.js +1 -1
- package/js/src/whitebit.js +2 -2
- package/js/src/woo.d.ts +1 -0
- package/js/src/woo.js +34 -26
- package/js/src/woofipro.js +3 -3
- package/js/src/yobit.js +1 -1
- package/js/src/zaif.js +1 -1
- package/js/src/zonda.js +1 -1
- package/package.json +54 -52
|
@@ -1631,7 +1631,7 @@ export default class coinbaseinternational extends Exchange {
|
|
|
1631
1631
|
* @param {string} type 'market' or 'limit'
|
|
1632
1632
|
* @param {string} side 'buy' or 'sell'
|
|
1633
1633
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1634
|
-
* @param {float} [price] the price at which the order is to be
|
|
1634
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1635
1635
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1636
1636
|
* @param {string} params.clientOrderId client order id
|
|
1637
1637
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/coincheck.js
CHANGED
|
@@ -585,7 +585,7 @@ export default class coincheck extends Exchange {
|
|
|
585
585
|
* @param {string} type 'market' or 'limit'
|
|
586
586
|
* @param {string} side 'buy' or 'sell'
|
|
587
587
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
588
|
-
* @param {float} [price] the price at which the order is to be
|
|
588
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
589
589
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
590
590
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
591
591
|
*/
|
package/js/src/coinex.js
CHANGED
|
@@ -2114,7 +2114,7 @@ export default class coinex extends Exchange {
|
|
|
2114
2114
|
* @param {string} type 'market' or 'limit'
|
|
2115
2115
|
* @param {string} side 'buy' or 'sell'
|
|
2116
2116
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
2117
|
-
* @param {float} [price] the price at which the order is to be
|
|
2117
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2118
2118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2119
2119
|
* @param {float} [params.triggerPrice] price to trigger stop orders
|
|
2120
2120
|
* @param {float} [params.stopLossPrice] price to trigger stop loss orders
|
|
@@ -2751,7 +2751,7 @@ export default class coinex extends Exchange {
|
|
|
2751
2751
|
* @param {string} type 'market' or 'limit'
|
|
2752
2752
|
* @param {string} side 'buy' or 'sell'
|
|
2753
2753
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
2754
|
-
* @param {float} [price] the price at which the order is to be
|
|
2754
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2755
2755
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2756
2756
|
* @param {float} [params.triggerPrice] the price to trigger stop orders
|
|
2757
2757
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/coinlist.js
CHANGED
|
@@ -1489,7 +1489,7 @@ export default class coinlist extends Exchange {
|
|
|
1489
1489
|
* @param {string} type 'market' or 'limit' or 'stop_market' or 'stop_limit' or 'take_market' or 'take_limit'
|
|
1490
1490
|
* @param {string} side 'buy' or 'sell'
|
|
1491
1491
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1492
|
-
* @param {float} [price] the price at which the order is to be
|
|
1492
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1493
1493
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1494
1494
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately (default false)
|
|
1495
1495
|
* @param {float} [params.triggerPrice] only for the 'stop_market', 'stop_limit', 'take_market' or 'take_limit' orders (the price at which an order is triggered)
|
|
@@ -1566,7 +1566,7 @@ export default class coinlist extends Exchange {
|
|
|
1566
1566
|
* @param {string} type 'market' or 'limit' or 'stop_market' or 'stop_limit' or 'take_market' or 'take_limit'
|
|
1567
1567
|
* @param {string} side 'buy' or 'sell'
|
|
1568
1568
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1569
|
-
* @param {float} [price] the price at which the order is to be
|
|
1569
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1570
1570
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1571
1571
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1572
1572
|
*/
|
package/js/src/coinmate.js
CHANGED
|
@@ -987,7 +987,7 @@ export default class coinmate extends Exchange {
|
|
|
987
987
|
* @param {string} type 'market' or 'limit'
|
|
988
988
|
* @param {string} side 'buy' or 'sell'
|
|
989
989
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
990
|
-
* @param {float} [price] the price at which the order is to be
|
|
990
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
991
991
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
992
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
993
993
|
*/
|
package/js/src/coinmetro.js
CHANGED
|
@@ -1191,7 +1191,7 @@ export default class coinmetro extends Exchange {
|
|
|
1191
1191
|
* @param {string} type 'market' or 'limit'
|
|
1192
1192
|
* @param {string} side 'buy' or 'sell'
|
|
1193
1193
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1194
|
-
* @param {float} [price] the price at which the order is to be
|
|
1194
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1195
1195
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount in market orders
|
|
1197
1197
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", "GTD"
|
package/js/src/coinone.js
CHANGED
|
@@ -750,7 +750,7 @@ export default class coinone extends Exchange {
|
|
|
750
750
|
* @param {string} type must be 'limit'
|
|
751
751
|
* @param {string} side 'buy' or 'sell'
|
|
752
752
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
753
|
-
* @param {float} [price] the price at which the order is to be
|
|
753
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
754
754
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
755
755
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
756
756
|
*/
|
package/js/src/coinsph.js
CHANGED
|
@@ -1109,7 +1109,7 @@ export default class coinsph extends Exchange {
|
|
|
1109
1109
|
* @param {string} type 'market', 'limit', 'stop_loss', 'take_profit', 'stop_loss_limit', 'take_profit_limit' or 'limit_maker'
|
|
1110
1110
|
* @param {string} side 'buy' or 'sell'
|
|
1111
1111
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1112
|
-
* @param {float} [price] the price at which the order is to be
|
|
1112
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1113
1113
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1114
1114
|
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
|
|
1115
1115
|
* @param {bool} [params.test] set to true to test an order, no order will be created but the request will be validated
|
package/js/src/coinspot.js
CHANGED
|
@@ -502,7 +502,7 @@ export default class coinspot extends Exchange {
|
|
|
502
502
|
* @param {string} type must be 'limit'
|
|
503
503
|
* @param {string} side 'buy' or 'sell'
|
|
504
504
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
505
|
-
* @param {float} [price] the price at which the order is to be
|
|
505
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
506
506
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
507
507
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
508
508
|
*/
|
package/js/src/cryptocom.js
CHANGED
|
@@ -1148,7 +1148,7 @@ export default class cryptocom extends Exchange {
|
|
|
1148
1148
|
* @param {string} type 'market', 'limit', 'stop_loss', 'stop_limit', 'take_profit', 'take_profit_limit'
|
|
1149
1149
|
* @param {string} side 'buy' or 'sell'
|
|
1150
1150
|
* @param {float} amount how much you want to trade in units of base currency
|
|
1151
|
-
* @param {float} [price] the price at which the order is to be
|
|
1151
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1152
1152
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1153
1153
|
* @param {string} [params.timeInForce] 'GTC', 'IOC', 'FOK' or 'PO'
|
|
1154
1154
|
* @param {string} [params.ref_price_type] 'MARK_PRICE', 'INDEX_PRICE', 'LAST_PRICE' which trigger price type to use, default is MARK_PRICE
|
package/js/src/currencycom.js
CHANGED
|
@@ -1274,7 +1274,7 @@ export default class currencycom extends Exchange {
|
|
|
1274
1274
|
* @param {string} type 'market' or 'limit'
|
|
1275
1275
|
* @param {string} side 'buy' or 'sell'
|
|
1276
1276
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1277
|
-
* @param {float} [price] the price at which the order is to be
|
|
1277
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1278
1278
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1279
1279
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1280
1280
|
*/
|
package/js/src/delta.js
CHANGED
|
@@ -1806,7 +1806,7 @@ export default class delta extends Exchange {
|
|
|
1806
1806
|
* @param {string} type 'market' or 'limit'
|
|
1807
1807
|
* @param {string} side 'buy' or 'sell'
|
|
1808
1808
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1809
|
-
* @param {float} [price] the price at which the order is to be
|
|
1809
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1810
1810
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1811
1811
|
* @param {bool} [params.reduceOnly] *contract only* indicates if this order is to reduce the size of a position
|
|
1812
1812
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1889,7 +1889,7 @@ export default class delta extends Exchange {
|
|
|
1889
1889
|
* @param {string} type 'market' or 'limit'
|
|
1890
1890
|
* @param {string} side 'buy' or 'sell'
|
|
1891
1891
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1892
|
-
* @param {float} [price] the price at which the order is to be
|
|
1892
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency
|
|
1893
1893
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1894
1894
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1895
1895
|
*/
|
package/js/src/deribit.js
CHANGED
|
@@ -1874,8 +1874,8 @@ export default class deribit extends Exchange {
|
|
|
1874
1874
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1875
1875
|
* @param {string} type 'market' or 'limit'
|
|
1876
1876
|
* @param {string} side 'buy' or 'sell'
|
|
1877
|
-
* @param {float} amount how much you want to trade in units of the base currency. For
|
|
1878
|
-
* @param {float} [price] the price at which the order is to be
|
|
1877
|
+
* @param {float} amount how much you want to trade in units of the base currency. For perpetual and inverse futures the amount is in USD units. For options it is in the underlying assets base currency.
|
|
1878
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1879
1879
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1880
1880
|
* @param {string} [params.trigger] the trigger type 'index_price', 'mark_price', or 'last_price', default is 'last_price'
|
|
1881
1881
|
* @param {float} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
@@ -2052,8 +2052,8 @@ export default class deribit extends Exchange {
|
|
|
2052
2052
|
* @param {string} [symbol] unified symbol of the market to edit an order in
|
|
2053
2053
|
* @param {string} [type] 'market' or 'limit'
|
|
2054
2054
|
* @param {string} [side] 'buy' or 'sell'
|
|
2055
|
-
* @param {float} amount how much you want to trade in units of the base currency
|
|
2056
|
-
* @param {float} [price] the price at which the order is to be
|
|
2055
|
+
* @param {float} amount how much you want to trade in units of the base currency. For perpetual and inverse futures the amount is in USD units. For options it is in the underlying assets base currency.
|
|
2056
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2057
2057
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2058
2058
|
* @param {float} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
2059
2059
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
package/js/src/digifinex.js
CHANGED
|
@@ -1579,7 +1579,7 @@ export default class digifinex extends Exchange {
|
|
|
1579
1579
|
* @param {string} type 'market' or 'limit'
|
|
1580
1580
|
* @param {string} side 'buy' or 'sell'
|
|
1581
1581
|
* @param {float} amount how much you want to trade in units of the base currency, spot market orders use the quote currency, swap requires the number of contracts
|
|
1582
|
-
* @param {float} [price] the price at which the order is to be
|
|
1582
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1583
1583
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1584
1584
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1585
1585
|
* @param {bool} [params.postOnly] true or false
|
|
@@ -1736,7 +1736,7 @@ export default class digifinex extends Exchange {
|
|
|
1736
1736
|
* @param {string} type 'market' or 'limit'
|
|
1737
1737
|
* @param {string} side 'buy' or 'sell'
|
|
1738
1738
|
* @param {float} amount how much you want to trade in units of the base currency, spot market orders use the quote currency, swap requires the number of contracts
|
|
1739
|
-
* @param {float} [price] the price at which the order is to be
|
|
1739
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1740
1740
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1741
1741
|
* @returns {object} request to be sent to the exchange
|
|
1742
1742
|
*/
|
package/js/src/exmo.js
CHANGED
|
@@ -1418,7 +1418,7 @@ export default class exmo extends Exchange {
|
|
|
1418
1418
|
* @param {string} type 'market' or 'limit'
|
|
1419
1419
|
* @param {string} side 'buy' or 'sell'
|
|
1420
1420
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1421
|
-
* @param {float} [price] the price at which the order is to be
|
|
1421
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1422
1422
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1423
1423
|
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1424
1424
|
* @param {string} [params.timeInForce] *spot only* 'fok', 'ioc' or 'post_only'
|
|
@@ -2066,7 +2066,7 @@ export default class exmo extends Exchange {
|
|
|
2066
2066
|
* @param {string} type not used by exmo editOrder
|
|
2067
2067
|
* @param {string} side not used by exmo editOrder
|
|
2068
2068
|
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
2069
|
-
* @param {float} [price] the price at which the order is to be
|
|
2069
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2070
2070
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2071
2071
|
* @param {float} [params.triggerPrice] stop price for stop-market and stop-limit orders
|
|
2072
2072
|
* @param {string} params.marginMode must be set to isolated
|
package/js/src/gate.js
CHANGED
|
@@ -3759,7 +3759,7 @@ export default class gate extends Exchange {
|
|
|
3759
3759
|
* @param {string} type 'limit' or 'market' *"market" is contract only*
|
|
3760
3760
|
* @param {string} side 'buy' or 'sell'
|
|
3761
3761
|
* @param {float} amount the amount of currency to trade
|
|
3762
|
-
* @param {float} [price]
|
|
3762
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
3763
3763
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3764
3764
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
3765
3765
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
@@ -4264,7 +4264,7 @@ export default class gate extends Exchange {
|
|
|
4264
4264
|
* @param {string} type 'market' or 'limit'
|
|
4265
4265
|
* @param {string} side 'buy' or 'sell'
|
|
4266
4266
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
4267
|
-
* @param {float} [price] the price at which the order is to be
|
|
4267
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
4268
4268
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4269
4269
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
4270
4270
|
*/
|
package/js/src/gemini.js
CHANGED
|
@@ -1450,7 +1450,7 @@ export default class gemini extends Exchange {
|
|
|
1450
1450
|
* @param {string} type must be 'limit'
|
|
1451
1451
|
* @param {string} side 'buy' or 'sell'
|
|
1452
1452
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1453
|
-
* @param {float} [price] the price at which the order is to be
|
|
1453
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1454
1454
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1455
1455
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1456
1456
|
*/
|
package/js/src/hitbtc.js
CHANGED
|
@@ -2292,7 +2292,7 @@ export default class hitbtc extends Exchange {
|
|
|
2292
2292
|
* @param {string} type 'market' or 'limit'
|
|
2293
2293
|
* @param {string} side 'buy' or 'sell'
|
|
2294
2294
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2295
|
-
* @param {float} [price] the price at which the order is to be
|
|
2295
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2296
2296
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2297
2297
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported for spot-margin, swap supports both, default is 'cross'
|
|
2298
2298
|
* @param {bool} [params.margin] true for creating a margin order
|
package/js/src/hollaex.js
CHANGED
|
@@ -1148,7 +1148,7 @@ export default class hollaex extends Exchange {
|
|
|
1148
1148
|
* @param {string} type 'market' or 'limit'
|
|
1149
1149
|
* @param {string} side 'buy' or 'sell'
|
|
1150
1150
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1151
|
-
* @param {float} [price] the price at which the order is to be
|
|
1151
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1152
1152
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1153
1153
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1154
1154
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
|
package/js/src/htx.js
CHANGED
|
@@ -5149,7 +5149,7 @@ export default class htx extends Exchange {
|
|
|
5149
5149
|
* @param {string} type 'market' or 'limit'
|
|
5150
5150
|
* @param {string} side 'buy' or 'sell'
|
|
5151
5151
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
5152
|
-
* @param {float} [price] the price at which the order is to be
|
|
5152
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5153
5153
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5154
5154
|
* @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
|
|
5155
5155
|
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
|
|
@@ -5276,7 +5276,7 @@ export default class htx extends Exchange {
|
|
|
5276
5276
|
* @param {string} type 'market' or 'limit'
|
|
5277
5277
|
* @param {string} side 'buy' or 'sell'
|
|
5278
5278
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
5279
|
-
* @param {float} [price] the price at which the order is to be
|
|
5279
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5280
5280
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5281
5281
|
* @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
|
|
5282
5282
|
* @param {float} [params.trailingPercent] *contract only* the percent to trail away from the current market price
|
|
@@ -5384,7 +5384,7 @@ export default class htx extends Exchange {
|
|
|
5384
5384
|
* @param {string} type 'market' or 'limit'
|
|
5385
5385
|
* @param {string} side 'buy' or 'sell'
|
|
5386
5386
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
5387
|
-
* @param {float} [price] the price at which the order is to be
|
|
5387
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5388
5388
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5389
5389
|
* @param {float} [params.stopPrice] the price a trigger order is triggered at
|
|
5390
5390
|
* @param {string} [params.triggerType] *contract trigger orders only* ge: greater than or equal to, le: less than or equal to
|
package/js/src/huobijp.js
CHANGED
|
@@ -1391,7 +1391,7 @@ export default class huobijp extends Exchange {
|
|
|
1391
1391
|
* @param {string} type 'market' or 'limit'
|
|
1392
1392
|
* @param {string} side 'buy' or 'sell'
|
|
1393
1393
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1394
|
-
* @param {float} [price] the price at which the order is to be
|
|
1394
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1395
1395
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1396
1396
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1397
1397
|
*/
|
package/js/src/hyperliquid.js
CHANGED
|
@@ -1019,7 +1019,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1019
1019
|
* @param {string} type 'market' or 'limit'
|
|
1020
1020
|
* @param {string} side 'buy' or 'sell'
|
|
1021
1021
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1022
|
-
* @param {float} [price] the price at which the order is to be
|
|
1022
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1023
1023
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1024
1024
|
* @param {string} [params.timeInForce] 'Gtc', 'Ioc', 'Alo'
|
|
1025
1025
|
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
@@ -1435,7 +1435,7 @@ export default class hyperliquid extends Exchange {
|
|
|
1435
1435
|
* @param {string} type 'market' or 'limit'
|
|
1436
1436
|
* @param {string} side 'buy' or 'sell'
|
|
1437
1437
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1438
|
-
* @param {float} [price] the price at which the order is to be
|
|
1438
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1439
1439
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1440
1440
|
* @param {string} [params.timeInForce] 'Gtc', 'Ioc', 'Alo'
|
|
1441
1441
|
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
package/js/src/idex.js
CHANGED
|
@@ -1169,7 +1169,7 @@ export default class idex extends Exchange {
|
|
|
1169
1169
|
* @param {string} type 'market' or 'limit'
|
|
1170
1170
|
* @param {string} side 'buy' or 'sell'
|
|
1171
1171
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1172
|
-
* @param {float} [price] the price at which the order is to be
|
|
1172
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1173
1173
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1174
1174
|
* @param {bool} [params.test] set to true to test an order, no order will be created but the request will be validated
|
|
1175
1175
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -701,7 +701,7 @@ export default class independentreserve extends Exchange {
|
|
|
701
701
|
* @param {string} type 'market' or 'limit'
|
|
702
702
|
* @param {string} side 'buy' or 'sell'
|
|
703
703
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
704
|
-
* @param {float} [price] the price at which the order is to be
|
|
704
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
705
705
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
706
706
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
707
707
|
*/
|
package/js/src/indodax.js
CHANGED
|
@@ -831,7 +831,7 @@ export default class indodax extends Exchange {
|
|
|
831
831
|
* @param {string} type 'market' or 'limit'
|
|
832
832
|
* @param {string} side 'buy' or 'sell'
|
|
833
833
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
834
|
-
* @param {float} [price] the price at which the order is to be
|
|
834
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
835
835
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
836
836
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
837
837
|
*/
|
package/js/src/kraken.js
CHANGED
|
@@ -1394,7 +1394,7 @@ export default class kraken extends Exchange {
|
|
|
1394
1394
|
* @param {string} type 'market' or 'limit'
|
|
1395
1395
|
* @param {string} side 'buy' or 'sell'
|
|
1396
1396
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1397
|
-
* @param {float} [price] the price at which the order is to be
|
|
1397
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1398
1398
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1399
1399
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
|
|
1400
1400
|
* @param {bool} [params.reduceOnly] *margin only* indicates if this order is to reduce the size of a position
|
|
@@ -1840,7 +1840,7 @@ export default class kraken extends Exchange {
|
|
|
1840
1840
|
* @param {string} type 'market' or 'limit'
|
|
1841
1841
|
* @param {string} side 'buy' or 'sell'
|
|
1842
1842
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1843
|
-
* @param {float} [price] the price at which the order is to be
|
|
1843
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1844
1844
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1845
1845
|
* @param {float} [params.stopLossPrice] *margin only* the price that a stop loss order is triggered at
|
|
1846
1846
|
* @param {float} [params.takeProfitPrice] *margin only* the price that a take profit order is triggered at
|
package/js/src/kucoin.d.ts
CHANGED
|
@@ -176,6 +176,7 @@ export default class kucoin extends Exchange {
|
|
|
176
176
|
info: any;
|
|
177
177
|
};
|
|
178
178
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
179
|
+
setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
|
|
179
180
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
|
180
181
|
url: any;
|
|
181
182
|
method: string;
|