ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
|
@@ -602,7 +602,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
602
602
|
* @name tokocrypto#fetchTime
|
|
603
603
|
* @see https://www.tokocrypto.com/apidocs/#check-server-time
|
|
604
604
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
605
|
-
* @param {object} [params] extra parameters specific to the
|
|
605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
606
606
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
607
607
|
*/
|
|
608
608
|
const response = await this.publicGetOpenV1CommonTime(params);
|
|
@@ -617,7 +617,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
617
617
|
* @name tokocrypto#fetchMarkets
|
|
618
618
|
* @see https://www.tokocrypto.com/apidocs/#get-all-supported-trading-symbol
|
|
619
619
|
* @description retrieves data on all markets for tokocrypto
|
|
620
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
620
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
621
621
|
* @returns {object[]} an array of objects representing market data
|
|
622
622
|
*/
|
|
623
623
|
const response = await this.publicGetOpenV1CommonSymbols(params);
|
|
@@ -785,7 +785,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
785
785
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
786
786
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
787
787
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
788
|
-
* @param {object} [params] extra parameters specific to the
|
|
788
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
789
789
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
790
790
|
*/
|
|
791
791
|
await this.loadMarkets();
|
|
@@ -995,7 +995,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
995
995
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
996
996
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
997
997
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
998
|
-
* @param {object} [params] extra parameters specific to the
|
|
998
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
999
999
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1000
1000
|
*/
|
|
1001
1001
|
await this.loadMarkets();
|
|
@@ -1157,15 +1157,13 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1157
1157
|
* @method
|
|
1158
1158
|
* @name tokocrypto#fetchTickers
|
|
1159
1159
|
* @see https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics
|
|
1160
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1160
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1161
1161
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1162
|
-
* @param {object} [params] extra parameters specific to the
|
|
1162
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1163
1163
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1164
1164
|
*/
|
|
1165
1165
|
await this.loadMarkets();
|
|
1166
|
-
const
|
|
1167
|
-
const method = this.safeString(this.options, 'fetchTickersMethod', defaultMethod);
|
|
1168
|
-
const response = await this[method](params);
|
|
1166
|
+
const response = await this.binanceGetTicker24hr(params);
|
|
1169
1167
|
return this.parseTickers(response, symbols);
|
|
1170
1168
|
}
|
|
1171
1169
|
getMarketIdByType(market) {
|
|
@@ -1181,7 +1179,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1181
1179
|
* @see https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics
|
|
1182
1180
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1183
1181
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1184
|
-
* @param {object} [params] extra parameters specific to the
|
|
1182
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1185
1183
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1186
1184
|
*/
|
|
1187
1185
|
await this.loadMarkets();
|
|
@@ -1203,7 +1201,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1203
1201
|
* @see https://binance-docs.github.io/apidocs/spot/en/#symbol-order-book-ticker
|
|
1204
1202
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
1205
1203
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1206
|
-
* @param {object} [params] extra parameters specific to the
|
|
1204
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1207
1205
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1208
1206
|
*/
|
|
1209
1207
|
await this.loadMarkets();
|
|
@@ -1264,7 +1262,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1264
1262
|
* @param {string} timeframe the length of time each candle represents
|
|
1265
1263
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1266
1264
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1267
|
-
* @param {object} [params] extra parameters specific to the
|
|
1265
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1268
1266
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
1269
1267
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
1270
1268
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -1319,7 +1317,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1319
1317
|
* @name tokocrypto#fetchBalance
|
|
1320
1318
|
* @see https://www.tokocrypto.com/apidocs/#account-information-signed
|
|
1321
1319
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1322
|
-
* @param {object} [params] extra parameters specific to the
|
|
1320
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1323
1321
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
1324
1322
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
1325
1323
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
@@ -1574,7 +1572,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1574
1572
|
* @param {string} side 'buy' or 'sell'
|
|
1575
1573
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1576
1574
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1577
|
-
* @param {object} [params] extra parameters specific to the
|
|
1575
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1578
1576
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1579
1577
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1580
1578
|
*/
|
|
@@ -1750,7 +1748,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1750
1748
|
* @see https://www.tokocrypto.com/apidocs/#all-orders-signed
|
|
1751
1749
|
* @description fetches information on an order made by the user
|
|
1752
1750
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1753
|
-
* @param {object} [params] extra parameters specific to the
|
|
1751
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1754
1752
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1755
1753
|
*/
|
|
1756
1754
|
const request = {
|
|
@@ -1801,7 +1799,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1801
1799
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1802
1800
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1803
1801
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1804
|
-
* @param {object} [params] extra parameters specific to the
|
|
1802
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1805
1803
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1806
1804
|
*/
|
|
1807
1805
|
if (symbol === undefined) {
|
|
@@ -1872,7 +1870,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1872
1870
|
* @param {string} symbol unified market symbol
|
|
1873
1871
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1874
1872
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1875
|
-
* @param {object} [params] extra parameters specific to the
|
|
1873
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1876
1874
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1877
1875
|
*/
|
|
1878
1876
|
const request = { 'type': 1 }; // -1 = all, 1 = open, 2 = closed
|
|
@@ -1887,7 +1885,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1887
1885
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1888
1886
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1889
1887
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1890
|
-
* @param {object} [params] extra parameters specific to the
|
|
1888
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1891
1889
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1892
1890
|
*/
|
|
1893
1891
|
const request = { 'type': 2 }; // -1 = all, 1 = open, 2 = closed
|
|
@@ -1901,7 +1899,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1901
1899
|
* @description cancels an open order
|
|
1902
1900
|
* @param {string} id order id
|
|
1903
1901
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1904
|
-
* @param {object} [params] extra parameters specific to the
|
|
1902
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1905
1903
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1906
1904
|
*/
|
|
1907
1905
|
const request = {
|
|
@@ -1947,7 +1945,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1947
1945
|
* @param {string} symbol unified market symbol
|
|
1948
1946
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1949
1947
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1950
|
-
* @param {object} [params] extra parameters specific to the
|
|
1948
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1951
1949
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1952
1950
|
*/
|
|
1953
1951
|
if (symbol === undefined) {
|
|
@@ -2006,7 +2004,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2006
2004
|
* @see https://www.tokocrypto.com/apidocs/#deposit-address-signed
|
|
2007
2005
|
* @description fetch the deposit address for a currency associated with this account
|
|
2008
2006
|
* @param {string} code unified currency code
|
|
2009
|
-
* @param {object} [params] extra parameters specific to the
|
|
2007
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2010
2008
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2011
2009
|
*/
|
|
2012
2010
|
await this.loadMarkets();
|
|
@@ -2064,7 +2062,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2064
2062
|
* @param {string} code unified currency code
|
|
2065
2063
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2066
2064
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2067
|
-
* @param {object} [params] extra parameters specific to the
|
|
2065
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2068
2066
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
2069
2067
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2070
2068
|
*/
|
|
@@ -2125,7 +2123,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2125
2123
|
* @param {string} code unified currency code
|
|
2126
2124
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2127
2125
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2128
|
-
* @param {object} [params] extra parameters specific to the
|
|
2126
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2129
2127
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2130
2128
|
*/
|
|
2131
2129
|
await this.loadMarkets();
|
|
@@ -2318,7 +2316,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2318
2316
|
* @param {float} amount the amount to withdraw
|
|
2319
2317
|
* @param {string} address the address to withdraw to
|
|
2320
2318
|
* @param {string} tag
|
|
2321
|
-
* @param {object} [params] extra parameters specific to the
|
|
2319
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2322
2320
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2323
2321
|
*/
|
|
2324
2322
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/dist/cjs/src/upbit.js
CHANGED
|
@@ -401,7 +401,7 @@ class upbit extends upbit$1 {
|
|
|
401
401
|
* @name upbit#fetchMarkets
|
|
402
402
|
* @see https://docs.upbit.com/reference/%EB%A7%88%EC%BC%93-%EC%BD%94%EB%93%9C-%EC%A1%B0%ED%9A%8C
|
|
403
403
|
* @description retrieves data on all markets for upbit
|
|
404
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
404
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
405
405
|
* @returns {object[]} an array of objects representing market data
|
|
406
406
|
*/
|
|
407
407
|
const response = await this.publicGetMarketAll(params);
|
|
@@ -497,7 +497,7 @@ class upbit extends upbit$1 {
|
|
|
497
497
|
* @name upbit#fetchBalance
|
|
498
498
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
|
|
499
499
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
500
|
-
* @param {object} [params] extra parameters specific to the
|
|
500
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
501
501
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
502
502
|
*/
|
|
503
503
|
await this.loadMarkets();
|
|
@@ -524,7 +524,7 @@ class upbit extends upbit$1 {
|
|
|
524
524
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
525
525
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
526
526
|
* @param {int} [limit] not used by upbit fetchOrderBooks ()
|
|
527
|
-
* @param {object} [params] extra parameters specific to the
|
|
527
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
528
528
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
529
529
|
*/
|
|
530
530
|
await this.loadMarkets();
|
|
@@ -598,7 +598,7 @@ class upbit extends upbit$1 {
|
|
|
598
598
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
599
599
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
600
600
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
601
|
-
* @param {object} [params] extra parameters specific to the
|
|
601
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
602
602
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
603
603
|
*/
|
|
604
604
|
const orderbooks = await this.fetchOrderBooks([symbol], limit, params);
|
|
@@ -665,9 +665,9 @@ class upbit extends upbit$1 {
|
|
|
665
665
|
* @method
|
|
666
666
|
* @name upbit#fetchTickers
|
|
667
667
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
668
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
668
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
669
669
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
670
|
-
* @param {object} [params] extra parameters specific to the
|
|
670
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
671
671
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
672
672
|
*/
|
|
673
673
|
await this.loadMarkets();
|
|
@@ -732,7 +732,7 @@ class upbit extends upbit$1 {
|
|
|
732
732
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
733
733
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
734
734
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
735
|
-
* @param {object} [params] extra parameters specific to the
|
|
735
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
736
736
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
737
737
|
*/
|
|
738
738
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -819,7 +819,7 @@ class upbit extends upbit$1 {
|
|
|
819
819
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
820
820
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
821
821
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
822
|
-
* @param {object} [params] extra parameters specific to the
|
|
822
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
823
823
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
824
824
|
*/
|
|
825
825
|
await this.loadMarkets();
|
|
@@ -863,7 +863,7 @@ class upbit extends upbit$1 {
|
|
|
863
863
|
* @see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EA%B0%80%EB%8A%A5-%EC%A0%95%EB%B3%B4
|
|
864
864
|
* @description fetch the trading fees for a market
|
|
865
865
|
* @param {string} symbol unified market symbol
|
|
866
|
-
* @param {object} [params] extra parameters specific to the
|
|
866
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
867
867
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
868
868
|
*/
|
|
869
869
|
await this.loadMarkets();
|
|
@@ -956,7 +956,7 @@ class upbit extends upbit$1 {
|
|
|
956
956
|
* @param {string} timeframe the length of time each candle represents
|
|
957
957
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
958
958
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
959
|
-
* @param {object} [params] extra parameters specific to the
|
|
959
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
960
960
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
961
961
|
*/
|
|
962
962
|
await this.loadMarkets();
|
|
@@ -1027,7 +1027,7 @@ class upbit extends upbit$1 {
|
|
|
1027
1027
|
* @param {string} side 'buy' or 'sell'
|
|
1028
1028
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1029
1029
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1030
|
-
* @param {object} [params] extra parameters specific to the
|
|
1030
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1031
1031
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1032
1032
|
*/
|
|
1033
1033
|
if (type === 'market') {
|
|
@@ -1110,7 +1110,7 @@ class upbit extends upbit$1 {
|
|
|
1110
1110
|
* @description cancels an open order
|
|
1111
1111
|
* @param {string} id order id
|
|
1112
1112
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
1113
|
-
* @param {object} [params] extra parameters specific to the
|
|
1113
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1114
1114
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1115
1115
|
*/
|
|
1116
1116
|
await this.loadMarkets();
|
|
@@ -1148,7 +1148,7 @@ class upbit extends upbit$1 {
|
|
|
1148
1148
|
* @param {string} code unified currency code
|
|
1149
1149
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1150
1150
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1151
|
-
* @param {object} [params] extra parameters specific to the
|
|
1151
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1152
1152
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1153
1153
|
*/
|
|
1154
1154
|
await this.loadMarkets();
|
|
@@ -1192,7 +1192,7 @@ class upbit extends upbit$1 {
|
|
|
1192
1192
|
* @param {string} code unified currency code
|
|
1193
1193
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1194
1194
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1195
|
-
* @param {object} [params] extra parameters specific to the
|
|
1195
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
await this.loadMarkets();
|
|
@@ -1497,7 +1497,7 @@ class upbit extends upbit$1 {
|
|
|
1497
1497
|
* @param {string} symbol unified market symbol
|
|
1498
1498
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1499
1499
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1500
|
-
* @param {object} [params] extra parameters specific to the
|
|
1500
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1501
1501
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1502
1502
|
*/
|
|
1503
1503
|
return await this.fetchOrdersByState('wait', symbol, since, limit, params);
|
|
@@ -1511,7 +1511,7 @@ class upbit extends upbit$1 {
|
|
|
1511
1511
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1512
1512
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1513
1513
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1514
|
-
* @param {object} [params] extra parameters specific to the
|
|
1514
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1515
1515
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1516
1516
|
*/
|
|
1517
1517
|
return await this.fetchOrdersByState('done', symbol, since, limit, params);
|
|
@@ -1525,7 +1525,7 @@ class upbit extends upbit$1 {
|
|
|
1525
1525
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1526
1526
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1527
1527
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1528
|
-
* @param {object} [params] extra parameters specific to the
|
|
1528
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1529
1529
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
return await this.fetchOrdersByState('cancel', symbol, since, limit, params);
|
|
@@ -1537,7 +1537,7 @@ class upbit extends upbit$1 {
|
|
|
1537
1537
|
* @see https://docs.upbit.com/reference/%EA%B0%9C%EB%B3%84-%EC%A3%BC%EB%AC%B8-%EC%A1%B0%ED%9A%8C
|
|
1538
1538
|
* @description fetches information on an order made by the user
|
|
1539
1539
|
* @param {string} symbol not used by upbit fetchOrder
|
|
1540
|
-
* @param {object} [params] extra parameters specific to the
|
|
1540
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1541
1541
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1542
1542
|
*/
|
|
1543
1543
|
await this.loadMarkets();
|
|
@@ -1597,7 +1597,7 @@ class upbit extends upbit$1 {
|
|
|
1597
1597
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C
|
|
1598
1598
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1599
1599
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1600
|
-
* @param {object} [params] extra parameters specific to the
|
|
1600
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1601
1601
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1602
1602
|
*/
|
|
1603
1603
|
await this.loadMarkets();
|
|
@@ -1651,7 +1651,7 @@ class upbit extends upbit$1 {
|
|
|
1651
1651
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C
|
|
1652
1652
|
* @description fetch the deposit address for a currency associated with this account
|
|
1653
1653
|
* @param {string} code unified currency code
|
|
1654
|
-
* @param {object} [params] extra parameters specific to the
|
|
1654
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1655
1655
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1656
1656
|
*/
|
|
1657
1657
|
await this.loadMarkets();
|
|
@@ -1675,7 +1675,7 @@ class upbit extends upbit$1 {
|
|
|
1675
1675
|
* @see https://docs.upbit.com/reference/%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%83%9D%EC%84%B1-%EC%9A%94%EC%B2%AD
|
|
1676
1676
|
* @description create a currency deposit address
|
|
1677
1677
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1678
|
-
* @param {object} [params] extra parameters specific to the
|
|
1678
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1679
1679
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1680
1680
|
*/
|
|
1681
1681
|
await this.loadMarkets();
|
|
@@ -1716,7 +1716,7 @@ class upbit extends upbit$1 {
|
|
|
1716
1716
|
* @param {float} amount the amount to withdraw
|
|
1717
1717
|
* @param {string} address the address to withdraw to
|
|
1718
1718
|
* @param {string} tag
|
|
1719
|
-
* @param {object} [params] extra parameters specific to the
|
|
1719
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1720
1720
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1721
1721
|
*/
|
|
1722
1722
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -489,7 +489,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
489
489
|
* @method
|
|
490
490
|
* @name wavesexchange#fetchMarkets
|
|
491
491
|
* @description retrieves data on all markets for wavesexchange
|
|
492
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
492
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
493
493
|
* @returns {object[]} an array of objects representing market data
|
|
494
494
|
*/
|
|
495
495
|
const response = await this.marketGetTickers();
|
|
@@ -591,7 +591,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
591
591
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
592
592
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
593
593
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
594
|
-
* @param {object} [params] extra parameters specific to the
|
|
594
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
595
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
596
596
|
*/
|
|
597
597
|
await this.loadMarkets();
|
|
@@ -737,7 +737,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
737
737
|
* @method
|
|
738
738
|
* @name wavesexchange#signIn
|
|
739
739
|
* @description sign in, must be called prior to using other authenticated methods
|
|
740
|
-
* @param {object} [params] extra parameters specific to the
|
|
740
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
741
741
|
* @returns response from exchange
|
|
742
742
|
*/
|
|
743
743
|
if (!this.safeString(this.options, 'accessToken')) {
|
|
@@ -851,7 +851,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
851
851
|
* @name wavesexchange#fetchTicker
|
|
852
852
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
853
853
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
854
|
-
* @param {object} [params] extra parameters specific to the
|
|
854
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
855
855
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
856
856
|
*/
|
|
857
857
|
await this.loadMarkets();
|
|
@@ -892,9 +892,9 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
892
892
|
/**
|
|
893
893
|
* @method
|
|
894
894
|
* @name wavesexchange#fetchTickers
|
|
895
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
895
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
896
896
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
897
|
-
* @param {object} [params] extra parameters specific to the
|
|
897
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
898
898
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
899
899
|
*/
|
|
900
900
|
await this.loadMarkets();
|
|
@@ -938,7 +938,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
938
938
|
* @param {string} timeframe the length of time each candle represents
|
|
939
939
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
940
940
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
941
|
-
* @param {object} [params] extra parameters specific to the
|
|
941
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
942
942
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
943
943
|
*/
|
|
944
944
|
await this.loadMarkets();
|
|
@@ -1056,7 +1056,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1056
1056
|
* @name wavesexchange#fetchDepositAddress
|
|
1057
1057
|
* @description fetch the deposit address for a currency associated with this account
|
|
1058
1058
|
* @param {string} code unified currency code
|
|
1059
|
-
* @param {object} [params] extra parameters specific to the
|
|
1059
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1060
1060
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1061
1061
|
*/
|
|
1062
1062
|
await this.signIn();
|
|
@@ -1289,7 +1289,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1289
1289
|
* @param {string} side 'buy' or 'sell'
|
|
1290
1290
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1291
1291
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1292
|
-
* @param {object} [params] extra parameters specific to the
|
|
1292
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1293
1293
|
* @param {float} [params.stopPrice] The price at which a stop order is triggered at
|
|
1294
1294
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1295
1295
|
*/
|
|
@@ -1472,7 +1472,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1472
1472
|
* @description cancels an open order
|
|
1473
1473
|
* @param {string} id order id
|
|
1474
1474
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1475
|
-
* @param {object} [params] extra parameters specific to the
|
|
1475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1476
1476
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1477
1477
|
*/
|
|
1478
1478
|
this.checkRequiredDependencies();
|
|
@@ -1519,7 +1519,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1519
1519
|
* @name wavesexchange#fetchOrder
|
|
1520
1520
|
* @description fetches information on an order made by the user
|
|
1521
1521
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1522
|
-
* @param {object} [params] extra parameters specific to the
|
|
1522
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1523
1523
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1524
1524
|
*/
|
|
1525
1525
|
this.checkRequiredDependencies();
|
|
@@ -1554,7 +1554,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1554
1554
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1555
1555
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1556
1556
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1557
|
-
* @param {object} [params] extra parameters specific to the
|
|
1557
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1558
1558
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1559
1559
|
*/
|
|
1560
1560
|
this.checkRequiredDependencies();
|
|
@@ -1606,7 +1606,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1606
1606
|
* @param {string} symbol unified market symbol
|
|
1607
1607
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1608
1608
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1609
|
-
* @param {object} [params] extra parameters specific to the
|
|
1609
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1610
1610
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1611
1611
|
*/
|
|
1612
1612
|
await this.loadMarkets();
|
|
@@ -1631,7 +1631,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1631
1631
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1632
1632
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1633
1633
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1634
|
-
* @param {object} [params] extra parameters specific to the
|
|
1634
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1635
1635
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1636
1636
|
*/
|
|
1637
1637
|
await this.loadMarkets();
|
|
@@ -1834,7 +1834,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1834
1834
|
* @method
|
|
1835
1835
|
* @name wavesexchange#fetchBalance
|
|
1836
1836
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1837
|
-
* @param {object} [params] extra parameters specific to the
|
|
1837
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1838
1838
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1839
1839
|
*/
|
|
1840
1840
|
// makes a lot of different requests to get all the data
|
|
@@ -1988,7 +1988,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
1988
1988
|
* @param {string} symbol unified market symbol
|
|
1989
1989
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1990
1990
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1991
|
-
* @param {object} [params] extra parameters specific to the
|
|
1991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1992
1992
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1993
1993
|
*/
|
|
1994
1994
|
await this.loadMarkets();
|
|
@@ -2080,7 +2080,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2080
2080
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2081
2081
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2082
2082
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2083
|
-
* @param {object} [params] extra parameters specific to the
|
|
2083
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2084
2084
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2085
2085
|
*/
|
|
2086
2086
|
await this.loadMarkets();
|
|
@@ -2337,7 +2337,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2337
2337
|
* @see https://docs.wx.network/en/api/gateways/deposit/currencies
|
|
2338
2338
|
* @see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
|
2339
2339
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2340
|
-
* @param {object} [params] extra parameters specific to the
|
|
2340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2341
2341
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2342
2342
|
*/
|
|
2343
2343
|
await this.loadMarkets();
|
|
@@ -2434,7 +2434,7 @@ class wavesexchange extends wavesexchange$1 {
|
|
|
2434
2434
|
* @param {float} amount the amount to withdraw
|
|
2435
2435
|
* @param {string} address the address to withdraw to
|
|
2436
2436
|
* @param {string} tag
|
|
2437
|
-
* @param {object} [params] extra parameters specific to the
|
|
2437
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2438
2438
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2439
2439
|
*/
|
|
2440
2440
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|