ccxt 4.1.64 → 4.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +2790 -2607
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +232 -80
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +1 -0
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +46 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +32 -32
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +8 -8
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.d.ts +20 -1
- package/js/src/base/Exchange.js +232 -80
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +1 -0
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +46 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +28 -28
- package/js/src/krakenfutures.js +9 -9
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +17 -17
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +32 -32
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +8 -8
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
- package/skip-tests.json +14 -7
package/js/src/coinex.js
CHANGED
|
@@ -466,7 +466,7 @@ export default class coinex extends Exchange {
|
|
|
466
466
|
* @method
|
|
467
467
|
* @name coinex#fetchMarkets
|
|
468
468
|
* @description retrieves data on all markets for coinex
|
|
469
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
469
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
470
470
|
* @returns {object[]} an array of objects representing market data
|
|
471
471
|
*/
|
|
472
472
|
let promises = [
|
|
@@ -738,7 +738,7 @@ export default class coinex extends Exchange {
|
|
|
738
738
|
* @name coinex#fetchTicker
|
|
739
739
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
740
740
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
741
|
-
* @param {object} [params] extra parameters specific to the
|
|
741
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
742
742
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
743
743
|
*/
|
|
744
744
|
await this.loadMarkets();
|
|
@@ -808,11 +808,11 @@ export default class coinex extends Exchange {
|
|
|
808
808
|
/**
|
|
809
809
|
* @method
|
|
810
810
|
* @name coinex#fetchTickers
|
|
811
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
811
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
812
812
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot001_market008_all_market_ticker
|
|
813
813
|
* @see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http009_market_ticker_all
|
|
814
814
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
815
|
-
* @param {object} [params] extra parameters specific to the
|
|
815
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
816
816
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
817
817
|
*/
|
|
818
818
|
await this.loadMarkets();
|
|
@@ -906,7 +906,7 @@ export default class coinex extends Exchange {
|
|
|
906
906
|
* @method
|
|
907
907
|
* @name coinex#fetchTime
|
|
908
908
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
909
|
-
* @param {object} [params] extra parameters specific to the
|
|
909
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
910
910
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
911
911
|
*/
|
|
912
912
|
const response = await this.perpetualPublicGetTime(params);
|
|
@@ -926,7 +926,7 @@ export default class coinex extends Exchange {
|
|
|
926
926
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
927
927
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
928
928
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
929
|
-
* @param {object} [params] extra parameters specific to the
|
|
929
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
930
930
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
931
931
|
*/
|
|
932
932
|
await this.loadMarkets();
|
|
@@ -1123,7 +1123,7 @@ export default class coinex extends Exchange {
|
|
|
1123
1123
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1124
1124
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1125
1125
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1126
|
-
* @param {object} [params] extra parameters specific to the
|
|
1126
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1127
1127
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1128
1128
|
*/
|
|
1129
1129
|
await this.loadMarkets();
|
|
@@ -1163,7 +1163,7 @@ export default class coinex extends Exchange {
|
|
|
1163
1163
|
* @name coinex#fetchTradingFee
|
|
1164
1164
|
* @description fetch the trading fees for a market
|
|
1165
1165
|
* @param {string} symbol unified market symbol
|
|
1166
|
-
* @param {object} [params] extra parameters specific to the
|
|
1166
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1167
1167
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1168
1168
|
*/
|
|
1169
1169
|
await this.loadMarkets();
|
|
@@ -1196,7 +1196,7 @@ export default class coinex extends Exchange {
|
|
|
1196
1196
|
* @method
|
|
1197
1197
|
* @name coinex#fetchTradingFees
|
|
1198
1198
|
* @description fetch the trading fees for multiple markets
|
|
1199
|
-
* @param {object} [params] extra parameters specific to the
|
|
1199
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1200
1200
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1201
1201
|
*/
|
|
1202
1202
|
await this.loadMarkets();
|
|
@@ -1272,7 +1272,7 @@ export default class coinex extends Exchange {
|
|
|
1272
1272
|
* @param {string} timeframe the length of time each candle represents
|
|
1273
1273
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1274
1274
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1275
|
-
* @param {object} [params] extra parameters specific to the
|
|
1275
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1276
1276
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1277
1277
|
*/
|
|
1278
1278
|
await this.loadMarkets();
|
|
@@ -1513,7 +1513,7 @@ export default class coinex extends Exchange {
|
|
|
1513
1513
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account004_investment_balance // financial
|
|
1514
1514
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account006_margin_account // margin
|
|
1515
1515
|
* @see https://viabtc.github.io/coinex_api_en_doc/futures/#docsfutures001_http016_asset_query // swap
|
|
1516
|
-
* @param {object} [params] extra parameters specific to the
|
|
1516
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1517
1517
|
* @param {string} [params.type] 'margin', 'swap', 'financial', or 'spot'
|
|
1518
1518
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1519
1519
|
*/
|
|
@@ -1860,7 +1860,7 @@ export default class coinex extends Exchange {
|
|
|
1860
1860
|
* @param {string} side 'buy' or 'sell'
|
|
1861
1861
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1862
1862
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1863
|
-
* @param {object} [params] extra parameters specific to the
|
|
1863
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1864
1864
|
* @param {float} triggerPrice price at which to triger stop orders
|
|
1865
1865
|
* @param {float} stopPrice price at which to triger stop orders
|
|
1866
1866
|
* @param {float} stopLossPrice price at which to trigger stop-loss orders
|
|
@@ -2132,7 +2132,7 @@ export default class coinex extends Exchange {
|
|
|
2132
2132
|
* @param {string} side 'buy' or 'sell'
|
|
2133
2133
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
2134
2134
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2135
|
-
* @param {object} [params] extra parameters specific to the
|
|
2135
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2136
2136
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2137
2137
|
*/
|
|
2138
2138
|
if (symbol === undefined) {
|
|
@@ -2195,7 +2195,7 @@ export default class coinex extends Exchange {
|
|
|
2195
2195
|
* @description cancels an open order
|
|
2196
2196
|
* @param {string} id order id
|
|
2197
2197
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2198
|
-
* @param {object} [params] extra parameters specific to the
|
|
2198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2199
2199
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2200
2200
|
*/
|
|
2201
2201
|
if (symbol === undefined) {
|
|
@@ -2344,7 +2344,7 @@ export default class coinex extends Exchange {
|
|
|
2344
2344
|
* @name coinex#cancelAllOrders
|
|
2345
2345
|
* @description cancel all open orders in a market
|
|
2346
2346
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
2347
|
-
* @param {object} [params] extra parameters specific to the
|
|
2347
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2348
2348
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2349
2349
|
*/
|
|
2350
2350
|
if (symbol === undefined) {
|
|
@@ -2394,7 +2394,7 @@ export default class coinex extends Exchange {
|
|
|
2394
2394
|
* @name coinex#fetchOrder
|
|
2395
2395
|
* @description fetches information on an order made by the user
|
|
2396
2396
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2397
|
-
* @param {object} [params] extra parameters specific to the
|
|
2397
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2398
2398
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2399
2399
|
*/
|
|
2400
2400
|
if (symbol === undefined) {
|
|
@@ -2736,7 +2736,7 @@ export default class coinex extends Exchange {
|
|
|
2736
2736
|
* @param {string} symbol unified market symbol
|
|
2737
2737
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2738
2738
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2739
|
-
* @param {object} [params] extra parameters specific to the
|
|
2739
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2740
2740
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2741
2741
|
*/
|
|
2742
2742
|
return await this.fetchOrdersByStatus('pending', symbol, since, limit, params);
|
|
@@ -2749,7 +2749,7 @@ export default class coinex extends Exchange {
|
|
|
2749
2749
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2750
2750
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2751
2751
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2752
|
-
* @param {object} [params] extra parameters specific to the
|
|
2752
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2753
2753
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2754
2754
|
*/
|
|
2755
2755
|
return await this.fetchOrdersByStatus('finished', symbol, since, limit, params);
|
|
@@ -2760,7 +2760,7 @@ export default class coinex extends Exchange {
|
|
|
2760
2760
|
* @name coinex#createDepositAddress
|
|
2761
2761
|
* @description create a currency deposit address
|
|
2762
2762
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2763
|
-
* @param {object} [params] extra parameters specific to the
|
|
2763
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2764
2764
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2765
2765
|
*/
|
|
2766
2766
|
await this.loadMarkets();
|
|
@@ -2792,7 +2792,7 @@ export default class coinex extends Exchange {
|
|
|
2792
2792
|
* @name coinex#fetchDepositAddress
|
|
2793
2793
|
* @description fetch the deposit address for a currency associated with this account
|
|
2794
2794
|
* @param {string} code unified currency code
|
|
2795
|
-
* @param {object} [params] extra parameters specific to the
|
|
2795
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2796
2796
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2797
2797
|
*/
|
|
2798
2798
|
await this.loadMarkets();
|
|
@@ -2888,7 +2888,7 @@ export default class coinex extends Exchange {
|
|
|
2888
2888
|
* @param {string} symbol unified market symbol
|
|
2889
2889
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2890
2890
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2891
|
-
* @param {object} [params] extra parameters specific to the
|
|
2891
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2892
2892
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2893
2893
|
*/
|
|
2894
2894
|
await this.loadMarkets();
|
|
@@ -3024,7 +3024,7 @@ export default class coinex extends Exchange {
|
|
|
3024
3024
|
* @name coinex#fetchPositions
|
|
3025
3025
|
* @description fetch all open positions
|
|
3026
3026
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3027
|
-
* @param {object} [params] extra parameters specific to the
|
|
3027
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3028
3028
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3029
3029
|
*/
|
|
3030
3030
|
await this.loadMarkets();
|
|
@@ -3119,7 +3119,7 @@ export default class coinex extends Exchange {
|
|
|
3119
3119
|
* @name coinex#fetchPosition
|
|
3120
3120
|
* @description fetch data on a single open contract trade position
|
|
3121
3121
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
3122
|
-
* @param {object} [params] extra parameters specific to the
|
|
3122
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3123
3123
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3124
3124
|
*/
|
|
3125
3125
|
await this.loadMarkets();
|
|
@@ -3302,7 +3302,7 @@ export default class coinex extends Exchange {
|
|
|
3302
3302
|
* @description set margin mode to 'cross' or 'isolated'
|
|
3303
3303
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
3304
3304
|
* @param {string} symbol unified market symbol
|
|
3305
|
-
* @param {object} [params] extra parameters specific to the
|
|
3305
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3306
3306
|
* @returns {object} response from the exchange
|
|
3307
3307
|
*/
|
|
3308
3308
|
if (symbol === undefined) {
|
|
@@ -3351,7 +3351,7 @@ export default class coinex extends Exchange {
|
|
|
3351
3351
|
* @description set the level of leverage for a market
|
|
3352
3352
|
* @param {float} leverage the rate of leverage
|
|
3353
3353
|
* @param {string} symbol unified market symbol
|
|
3354
|
-
* @param {object} [params] extra parameters specific to the
|
|
3354
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3355
3355
|
* @param {string} [params.marginMode] 'cross' or 'isolated' (default is 'cross')
|
|
3356
3356
|
* @returns {object} response from the exchange
|
|
3357
3357
|
*/
|
|
@@ -3390,7 +3390,7 @@ export default class coinex extends Exchange {
|
|
|
3390
3390
|
* @name coinex#fetchLeverageTiers
|
|
3391
3391
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3392
3392
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3393
|
-
* @param {object} [params] extra parameters specific to the
|
|
3393
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3394
3394
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
3395
3395
|
*/
|
|
3396
3396
|
await this.loadMarkets();
|
|
@@ -3555,7 +3555,7 @@ export default class coinex extends Exchange {
|
|
|
3555
3555
|
* @description add margin
|
|
3556
3556
|
* @param {string} symbol unified market symbol
|
|
3557
3557
|
* @param {float} amount amount of margin to add
|
|
3558
|
-
* @param {object} [params] extra parameters specific to the
|
|
3558
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3559
3559
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
3560
3560
|
*/
|
|
3561
3561
|
return await this.modifyMarginHelper(symbol, amount, 1, params);
|
|
@@ -3567,7 +3567,7 @@ export default class coinex extends Exchange {
|
|
|
3567
3567
|
* @description remove margin from a position
|
|
3568
3568
|
* @param {string} symbol unified market symbol
|
|
3569
3569
|
* @param {float} amount the amount of margin to remove
|
|
3570
|
-
* @param {object} [params] extra parameters specific to the
|
|
3570
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3571
3571
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
3572
3572
|
*/
|
|
3573
3573
|
return await this.modifyMarginHelper(symbol, amount, 2, params);
|
|
@@ -3580,7 +3580,7 @@ export default class coinex extends Exchange {
|
|
|
3580
3580
|
* @param {string} symbol unified market symbol
|
|
3581
3581
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3582
3582
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3583
|
-
* @param {object} [params] extra parameters specific to the
|
|
3583
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3584
3584
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
3585
3585
|
*/
|
|
3586
3586
|
if (symbol === undefined) {
|
|
@@ -3653,7 +3653,7 @@ export default class coinex extends Exchange {
|
|
|
3653
3653
|
* @name coinex#fetchFundingRate
|
|
3654
3654
|
* @description fetch the current funding rate
|
|
3655
3655
|
* @param {string} symbol unified market symbol
|
|
3656
|
-
* @param {object} [params] extra parameters specific to the
|
|
3656
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3657
3657
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
3658
3658
|
*/
|
|
3659
3659
|
await this.loadMarkets();
|
|
@@ -3761,7 +3761,7 @@ export default class coinex extends Exchange {
|
|
|
3761
3761
|
* @name coinex#fetchFundingRates
|
|
3762
3762
|
* @description fetch the current funding rates
|
|
3763
3763
|
* @param {string[]} symbols unified market symbols
|
|
3764
|
-
* @param {object} [params] extra parameters specific to the
|
|
3764
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3765
3765
|
* @returns {object[]} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
3766
3766
|
*/
|
|
3767
3767
|
await this.loadMarkets();
|
|
@@ -3834,7 +3834,7 @@ export default class coinex extends Exchange {
|
|
|
3834
3834
|
* @param {float} amount the amount to withdraw
|
|
3835
3835
|
* @param {string} address the address to withdraw to
|
|
3836
3836
|
* @param {string} tag
|
|
3837
|
-
* @param {object} [params] extra parameters specific to the
|
|
3837
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3838
3838
|
* @param {string} [params.network] unified network code
|
|
3839
3839
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3840
3840
|
*/
|
|
@@ -3900,7 +3900,7 @@ export default class coinex extends Exchange {
|
|
|
3900
3900
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
3901
3901
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
3902
3902
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
3903
|
-
* @param {object} [params] extra parameters specific to the
|
|
3903
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3904
3904
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3905
3905
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
3906
3906
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
@@ -4090,7 +4090,7 @@ export default class coinex extends Exchange {
|
|
|
4090
4090
|
* @param {float} amount amount to transfer
|
|
4091
4091
|
* @param {string} fromAccount account to transfer from
|
|
4092
4092
|
* @param {string} toAccount account to transfer to
|
|
4093
|
-
* @param {object} [params] extra parameters specific to the
|
|
4093
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4094
4094
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4095
4095
|
*/
|
|
4096
4096
|
await this.loadMarkets();
|
|
@@ -4202,7 +4202,7 @@ export default class coinex extends Exchange {
|
|
|
4202
4202
|
* @param {string} code unified currency code of the currency transferred
|
|
4203
4203
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4204
4204
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4205
|
-
* @param {object} [params] extra parameters specific to the
|
|
4205
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4206
4206
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4207
4207
|
*/
|
|
4208
4208
|
await this.loadMarkets();
|
|
@@ -4286,7 +4286,7 @@ export default class coinex extends Exchange {
|
|
|
4286
4286
|
* @param {string} code unified currency code
|
|
4287
4287
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
4288
4288
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
4289
|
-
* @param {object} [params] extra parameters specific to the
|
|
4289
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4290
4290
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
4291
4291
|
*/
|
|
4292
4292
|
const request = {};
|
|
@@ -4352,7 +4352,7 @@ export default class coinex extends Exchange {
|
|
|
4352
4352
|
* @param {string} code unified currency code
|
|
4353
4353
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
4354
4354
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
4355
|
-
* @param {object} [params] extra parameters specific to the
|
|
4355
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4356
4356
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
4357
4357
|
*/
|
|
4358
4358
|
const request = {};
|
|
@@ -4449,7 +4449,7 @@ export default class coinex extends Exchange {
|
|
|
4449
4449
|
* @name coinex#fetchIsolatedBorrowRate
|
|
4450
4450
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
4451
4451
|
* @param {string} symbol unified symbol of the market to fetch the borrow rate for
|
|
4452
|
-
* @param {object} [params] extra parameters specific to the
|
|
4452
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4453
4453
|
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
|
|
4454
4454
|
*/
|
|
4455
4455
|
await this.loadMarkets();
|
|
@@ -4486,7 +4486,7 @@ export default class coinex extends Exchange {
|
|
|
4486
4486
|
// @method
|
|
4487
4487
|
// @name coinex#fetchIsolatedBorrowRates
|
|
4488
4488
|
// @description fetch the borrow interest rates of all currencies
|
|
4489
|
-
// @param {object} [params] extra parameters specific to the
|
|
4489
|
+
// @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4490
4490
|
// <<<<<<< HEAD
|
|
4491
4491
|
// @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
|
|
4492
4492
|
// =======
|
|
@@ -4620,7 +4620,7 @@ export default class coinex extends Exchange {
|
|
|
4620
4620
|
* @param {string} symbol unified market symbol, required for coinex
|
|
4621
4621
|
* @param {string} code unified currency code of the currency to borrow
|
|
4622
4622
|
* @param {float} amount the amount to borrow
|
|
4623
|
-
* @param {object} [params] extra parameters specific to the
|
|
4623
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4624
4624
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
4625
4625
|
*/
|
|
4626
4626
|
await this.loadMarkets();
|
|
@@ -4657,7 +4657,7 @@ export default class coinex extends Exchange {
|
|
|
4657
4657
|
* @param {string} symbol unified market symbol, required for coinex
|
|
4658
4658
|
* @param {string} code unified currency code of the currency to repay
|
|
4659
4659
|
* @param {float} amount the amount to repay
|
|
4660
|
-
* @param {object} [params] extra parameters specific to the
|
|
4660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4661
4661
|
* @param {string} [params.loan_id] extra parameter that is not required
|
|
4662
4662
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
4663
4663
|
*/
|
|
@@ -4716,7 +4716,7 @@ export default class coinex extends Exchange {
|
|
|
4716
4716
|
* @description fetch deposit and withdraw fees
|
|
4717
4717
|
* @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot001_market010_asset_config
|
|
4718
4718
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
4719
|
-
* @param {object} [params] extra parameters specific to the
|
|
4719
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4720
4720
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
4721
4721
|
*/
|
|
4722
4722
|
await this.loadMarkets();
|
package/js/src/coinlist.js
CHANGED
|
@@ -303,7 +303,7 @@ export default class coinlist extends Exchange {
|
|
|
303
303
|
* @name coinlist#fetchTime
|
|
304
304
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
305
305
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-system-time
|
|
306
|
-
* @param {object} [params] extra parameters specific to the
|
|
306
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
307
307
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
308
308
|
*/
|
|
309
309
|
const response = await this.publicGetV1Time(params);
|
|
@@ -322,7 +322,7 @@ export default class coinlist extends Exchange {
|
|
|
322
322
|
* @name coinlist#fetchCurrencies
|
|
323
323
|
* @description fetches all available currencies on an exchange
|
|
324
324
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-supported-assets
|
|
325
|
-
* @param {object} [params] extra parameters specific to the
|
|
325
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
326
326
|
* @returns {object} an associative dictionary of currencies
|
|
327
327
|
*/
|
|
328
328
|
const response = await this.publicGetV1Assets(params);
|
|
@@ -386,7 +386,7 @@ export default class coinlist extends Exchange {
|
|
|
386
386
|
* @name coinlist#fetchMarkets
|
|
387
387
|
* @description retrieves data on all markets for coinlist
|
|
388
388
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-symbols
|
|
389
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
389
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
390
390
|
* @returns {object[]} an array of objects representing market data
|
|
391
391
|
*/
|
|
392
392
|
const response = await this.publicGetV1Symbols(params);
|
|
@@ -481,10 +481,10 @@ export default class coinlist extends Exchange {
|
|
|
481
481
|
/**
|
|
482
482
|
* @method
|
|
483
483
|
* @name coinlist#fetchTickers
|
|
484
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
484
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
485
485
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-symbol-summaries
|
|
486
486
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
487
|
-
* @param {object} [params] extra parameters specific to the
|
|
487
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
488
488
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
489
489
|
*/
|
|
490
490
|
await this.loadMarkets();
|
|
@@ -521,7 +521,7 @@ export default class coinlist extends Exchange {
|
|
|
521
521
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
522
522
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-market-summary
|
|
523
523
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
524
|
-
* @param {object} [params] extra parameters specific to the
|
|
524
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
525
525
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
526
526
|
*/
|
|
527
527
|
await this.loadMarkets();
|
|
@@ -613,7 +613,7 @@ export default class coinlist extends Exchange {
|
|
|
613
613
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-order-book-level-2
|
|
614
614
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
615
615
|
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
616
|
-
* @param {object} [params] extra parameters specific to the
|
|
616
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
617
617
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
618
618
|
*/
|
|
619
619
|
await this.loadMarkets();
|
|
@@ -654,7 +654,7 @@ export default class coinlist extends Exchange {
|
|
|
654
654
|
* @param {string} timeframe the length of time each candle represents
|
|
655
655
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
656
656
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
657
|
-
* @param {object} [params] extra parameters specific to the
|
|
657
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
658
658
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
659
659
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
660
660
|
*/
|
|
@@ -738,7 +738,7 @@ export default class coinlist extends Exchange {
|
|
|
738
738
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
739
739
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
740
740
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
741
|
-
* @param {object} [params] extra parameters specific to the
|
|
741
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
742
742
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
743
743
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
744
744
|
*/
|
|
@@ -870,7 +870,7 @@ export default class coinlist extends Exchange {
|
|
|
870
870
|
* @name coinlist#fetchTradingFees
|
|
871
871
|
* @description fetch the trading fees for multiple markets
|
|
872
872
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-fees
|
|
873
|
-
* @param {object} [params] extra parameters specific to the
|
|
873
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
874
874
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
875
875
|
*/
|
|
876
876
|
await this.loadMarkets();
|
|
@@ -1051,7 +1051,7 @@ export default class coinlist extends Exchange {
|
|
|
1051
1051
|
* @name coinlist#fetchAccounts
|
|
1052
1052
|
* @description fetch all the accounts associated with a profile
|
|
1053
1053
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-accounts
|
|
1054
|
-
* @param {object} [params] extra parameters specific to the
|
|
1054
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1055
1055
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1056
1056
|
*/
|
|
1057
1057
|
await this.loadMarkets();
|
|
@@ -1089,7 +1089,7 @@ export default class coinlist extends Exchange {
|
|
|
1089
1089
|
* @name coinlist#fetchBalance
|
|
1090
1090
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1091
1091
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#list-balances
|
|
1092
|
-
* @param {object} [params] extra parameters specific to the
|
|
1092
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1093
1093
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1094
1094
|
*/
|
|
1095
1095
|
await this.loadMarkets();
|
|
@@ -1138,7 +1138,7 @@ export default class coinlist extends Exchange {
|
|
|
1138
1138
|
* @param {string} symbol unified market symbol
|
|
1139
1139
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1140
1140
|
* @param {int} [limit] the maximum number of trades structures to retrieve (default 200, max 500)
|
|
1141
|
-
* @param {object} [params] extra parameters specific to the
|
|
1141
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1142
1142
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1143
1143
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1144
1144
|
*/
|
|
@@ -1202,7 +1202,7 @@ export default class coinlist extends Exchange {
|
|
|
1202
1202
|
* @param {string} symbol unified market symbol
|
|
1203
1203
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1204
1204
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1205
|
-
* @param {object} [params] extra parameters specific to the
|
|
1205
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1206
1206
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1207
1207
|
*/
|
|
1208
1208
|
const request = {
|
|
@@ -1219,7 +1219,7 @@ export default class coinlist extends Exchange {
|
|
|
1219
1219
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1220
1220
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1221
1221
|
* @param {int} [limit] the maximum number of orde structures to retrieve (default 200, max 500)
|
|
1222
|
-
* @param {object} [params] extra parameters specific to the
|
|
1222
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1223
1223
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1224
1224
|
* @param {string|string[]} [params.status] the status of the order - 'accepted', 'done', 'canceled', 'rejected', 'pending' (default [ 'accepted', 'done', 'canceled', 'rejected', 'pending' ])
|
|
1225
1225
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1286,7 +1286,7 @@ export default class coinlist extends Exchange {
|
|
|
1286
1286
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#get-specific-order-by-id
|
|
1287
1287
|
* @param {int|string} id order id
|
|
1288
1288
|
* @param {string} symbol not used by coinlist fetchOrder ()
|
|
1289
|
-
* @param {object} [params] extra parameters specific to the
|
|
1289
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1290
1290
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1291
1291
|
*/
|
|
1292
1292
|
await this.loadMarkets();
|
|
@@ -1329,7 +1329,7 @@ export default class coinlist extends Exchange {
|
|
|
1329
1329
|
* @param {string} symbol unified market symbol
|
|
1330
1330
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1331
1331
|
* @param {int} [limit] the maximum number of open order structures to retrieve (default 200, max 500)
|
|
1332
|
-
* @param {object} [params] extra parameters specific to the
|
|
1332
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1333
1333
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1334
1334
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1335
1335
|
*/
|
|
@@ -1348,7 +1348,7 @@ export default class coinlist extends Exchange {
|
|
|
1348
1348
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1349
1349
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1350
1350
|
* @param {int} [limit] the maximum number of closed order structures to retrieve (default 200, max 500)
|
|
1351
|
-
* @param {object} [params] extra parameters specific to the
|
|
1351
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1352
1352
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1353
1353
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1354
1354
|
*/
|
|
@@ -1367,7 +1367,7 @@ export default class coinlist extends Exchange {
|
|
|
1367
1367
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1368
1368
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1369
1369
|
* @param {int} [limit] the maximum number of canceled order structures to retrieve (default 200, max 500)
|
|
1370
|
-
* @param {object} [params] extra parameters specific to the
|
|
1370
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1371
1371
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1372
1372
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1373
1373
|
*/
|
|
@@ -1384,7 +1384,7 @@ export default class coinlist extends Exchange {
|
|
|
1384
1384
|
* @description cancel open orders of market
|
|
1385
1385
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#cancel-all-orders
|
|
1386
1386
|
* @param {string} symbol unified market symbol
|
|
1387
|
-
* @param {object} [params] extra parameters specific to the
|
|
1387
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1388
1388
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1389
1389
|
*/
|
|
1390
1390
|
await this.loadMarkets();
|
|
@@ -1412,7 +1412,7 @@ export default class coinlist extends Exchange {
|
|
|
1412
1412
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#cancel-specific-order-by-id
|
|
1413
1413
|
* @param {string} id order id
|
|
1414
1414
|
* @param {string} symbol not used by coinlist cancelOrder ()
|
|
1415
|
-
* @param {object} [params] extra parameters specific to the
|
|
1415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1416
1416
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1417
1417
|
*/
|
|
1418
1418
|
await this.loadMarkets();
|
|
@@ -1437,7 +1437,7 @@ export default class coinlist extends Exchange {
|
|
|
1437
1437
|
* @see https://trade-docs.coinlist.co/?javascript--nodejs#cancel-specific-orders
|
|
1438
1438
|
* @param {string[]} ids order ids
|
|
1439
1439
|
* @param {string} symbol not used by coinlist cancelOrders ()
|
|
1440
|
-
* @param {object} [params] extra parameters specific to the
|
|
1440
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1441
1441
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1442
1442
|
*/
|
|
1443
1443
|
await this.loadMarkets();
|
|
@@ -1456,7 +1456,7 @@ export default class coinlist extends Exchange {
|
|
|
1456
1456
|
* @param {string} side 'buy' or 'sell'
|
|
1457
1457
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1458
1458
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1459
|
-
* @param {object} [params] extra parameters specific to the
|
|
1459
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1460
1460
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately (default false)
|
|
1461
1461
|
* @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)
|
|
1462
1462
|
* @param {string} [params.clientOrderId] client order id (default undefined)
|
|
@@ -1533,7 +1533,7 @@ export default class coinlist extends Exchange {
|
|
|
1533
1533
|
* @param {string} side 'buy' or 'sell'
|
|
1534
1534
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1535
1535
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1536
|
-
* @param {object} [params] extra parameters specific to the
|
|
1536
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1537
1537
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1538
1538
|
*/
|
|
1539
1539
|
await this.loadMarkets();
|
|
@@ -1712,7 +1712,7 @@ export default class coinlist extends Exchange {
|
|
|
1712
1712
|
* @param {float} amount amount to transfer
|
|
1713
1713
|
* @param {string} fromAccount account to transfer from
|
|
1714
1714
|
* @param {string} toAccount account to transfer to
|
|
1715
|
-
* @param {object} [params] extra parameters specific to the
|
|
1715
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1716
1716
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1717
1717
|
*/
|
|
1718
1718
|
await this.loadMarkets();
|
|
@@ -1763,7 +1763,7 @@ export default class coinlist extends Exchange {
|
|
|
1763
1763
|
* @param {string} code unified currency code
|
|
1764
1764
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1765
1765
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 200, max 500)
|
|
1766
|
-
* @param {object} [params] extra parameters specific to the
|
|
1766
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1767
1767
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1768
1768
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1769
1769
|
*/
|
|
@@ -1883,7 +1883,7 @@ export default class coinlist extends Exchange {
|
|
|
1883
1883
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals
|
|
1884
1884
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal
|
|
1885
1885
|
* @param {int} [limit] max number of deposit/withdrawals to return (default 200, max 500)
|
|
1886
|
-
* @param {object} [params] extra parameters specific to the
|
|
1886
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1887
1887
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1888
1888
|
*/
|
|
1889
1889
|
if (code === undefined) {
|
|
@@ -1961,7 +1961,7 @@ export default class coinlist extends Exchange {
|
|
|
1961
1961
|
* @param {float} amount the amount to withdraw
|
|
1962
1962
|
* @param {string} address the address to withdraw to
|
|
1963
1963
|
* @param {string} tag
|
|
1964
|
-
* @param {object} [params] extra parameters specific to the
|
|
1964
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1965
1965
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1966
1966
|
*/
|
|
1967
1967
|
await this.loadMarkets();
|
|
@@ -2059,7 +2059,7 @@ export default class coinlist extends Exchange {
|
|
|
2059
2059
|
* @param {string} code unified currency code, default is undefined
|
|
2060
2060
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2061
2061
|
* @param {int} [limit] max number of ledger entrys to return (default 200, max 500)
|
|
2062
|
-
* @param {object} [params] extra parameters specific to the
|
|
2062
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2063
2063
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
2064
2064
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2065
2065
|
*/
|