ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/tokocrypto.js
CHANGED
|
@@ -605,7 +605,7 @@ export default class tokocrypto extends Exchange {
|
|
|
605
605
|
* @name tokocrypto#fetchTime
|
|
606
606
|
* @see https://www.tokocrypto.com/apidocs/#check-server-time
|
|
607
607
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
608
|
-
* @param {object} [params] extra parameters specific to the
|
|
608
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
609
609
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
610
610
|
*/
|
|
611
611
|
const response = await this.publicGetOpenV1CommonTime(params);
|
|
@@ -620,7 +620,7 @@ export default class tokocrypto extends Exchange {
|
|
|
620
620
|
* @name tokocrypto#fetchMarkets
|
|
621
621
|
* @see https://www.tokocrypto.com/apidocs/#get-all-supported-trading-symbol
|
|
622
622
|
* @description retrieves data on all markets for tokocrypto
|
|
623
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
623
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
624
624
|
* @returns {object[]} an array of objects representing market data
|
|
625
625
|
*/
|
|
626
626
|
const response = await this.publicGetOpenV1CommonSymbols(params);
|
|
@@ -788,7 +788,7 @@ export default class tokocrypto extends Exchange {
|
|
|
788
788
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
789
789
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
790
790
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
791
|
-
* @param {object} [params] extra parameters specific to the
|
|
791
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
792
792
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
793
793
|
*/
|
|
794
794
|
await this.loadMarkets();
|
|
@@ -998,7 +998,7 @@ export default class tokocrypto extends Exchange {
|
|
|
998
998
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
999
999
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1000
1000
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1001
|
-
* @param {object} [params] extra parameters specific to the
|
|
1001
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1002
1002
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1003
1003
|
*/
|
|
1004
1004
|
await this.loadMarkets();
|
|
@@ -1160,15 +1160,13 @@ export default class tokocrypto extends Exchange {
|
|
|
1160
1160
|
* @method
|
|
1161
1161
|
* @name tokocrypto#fetchTickers
|
|
1162
1162
|
* @see https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics
|
|
1163
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1163
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1164
1164
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1165
|
-
* @param {object} [params] extra parameters specific to the
|
|
1165
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1166
1166
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1167
1167
|
*/
|
|
1168
1168
|
await this.loadMarkets();
|
|
1169
|
-
const
|
|
1170
|
-
const method = this.safeString(this.options, 'fetchTickersMethod', defaultMethod);
|
|
1171
|
-
const response = await this[method](params);
|
|
1169
|
+
const response = await this.binanceGetTicker24hr(params);
|
|
1172
1170
|
return this.parseTickers(response, symbols);
|
|
1173
1171
|
}
|
|
1174
1172
|
getMarketIdByType(market) {
|
|
@@ -1184,7 +1182,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1184
1182
|
* @see https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics
|
|
1185
1183
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1186
1184
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1187
|
-
* @param {object} [params] extra parameters specific to the
|
|
1185
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1188
1186
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1189
1187
|
*/
|
|
1190
1188
|
await this.loadMarkets();
|
|
@@ -1206,7 +1204,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1206
1204
|
* @see https://binance-docs.github.io/apidocs/spot/en/#symbol-order-book-ticker
|
|
1207
1205
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
1208
1206
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1209
|
-
* @param {object} [params] extra parameters specific to the
|
|
1207
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1210
1208
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1211
1209
|
*/
|
|
1212
1210
|
await this.loadMarkets();
|
|
@@ -1267,7 +1265,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1267
1265
|
* @param {string} timeframe the length of time each candle represents
|
|
1268
1266
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1269
1267
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1270
|
-
* @param {object} [params] extra parameters specific to the
|
|
1268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1271
1269
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
1272
1270
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
1273
1271
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -1322,7 +1320,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1322
1320
|
* @name tokocrypto#fetchBalance
|
|
1323
1321
|
* @see https://www.tokocrypto.com/apidocs/#account-information-signed
|
|
1324
1322
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1325
|
-
* @param {object} [params] extra parameters specific to the
|
|
1323
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1326
1324
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
1327
1325
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
1328
1326
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
@@ -1577,7 +1575,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1577
1575
|
* @param {string} side 'buy' or 'sell'
|
|
1578
1576
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1579
1577
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1580
|
-
* @param {object} [params] extra parameters specific to the
|
|
1578
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1581
1579
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1582
1580
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1583
1581
|
*/
|
|
@@ -1753,7 +1751,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1753
1751
|
* @see https://www.tokocrypto.com/apidocs/#all-orders-signed
|
|
1754
1752
|
* @description fetches information on an order made by the user
|
|
1755
1753
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1756
|
-
* @param {object} [params] extra parameters specific to the
|
|
1754
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1757
1755
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1758
1756
|
*/
|
|
1759
1757
|
const request = {
|
|
@@ -1804,7 +1802,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1804
1802
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1805
1803
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1806
1804
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1807
|
-
* @param {object} [params] extra parameters specific to the
|
|
1805
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1808
1806
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1809
1807
|
*/
|
|
1810
1808
|
if (symbol === undefined) {
|
|
@@ -1875,7 +1873,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1875
1873
|
* @param {string} symbol unified market symbol
|
|
1876
1874
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1877
1875
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1878
|
-
* @param {object} [params] extra parameters specific to the
|
|
1876
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1879
1877
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1880
1878
|
*/
|
|
1881
1879
|
const request = { 'type': 1 }; // -1 = all, 1 = open, 2 = closed
|
|
@@ -1890,7 +1888,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1890
1888
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1891
1889
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1892
1890
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1893
|
-
* @param {object} [params] extra parameters specific to the
|
|
1891
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1894
1892
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1895
1893
|
*/
|
|
1896
1894
|
const request = { 'type': 2 }; // -1 = all, 1 = open, 2 = closed
|
|
@@ -1904,7 +1902,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1904
1902
|
* @description cancels an open order
|
|
1905
1903
|
* @param {string} id order id
|
|
1906
1904
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1907
|
-
* @param {object} [params] extra parameters specific to the
|
|
1905
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1908
1906
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1909
1907
|
*/
|
|
1910
1908
|
const request = {
|
|
@@ -1950,7 +1948,7 @@ export default class tokocrypto extends Exchange {
|
|
|
1950
1948
|
* @param {string} symbol unified market symbol
|
|
1951
1949
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1952
1950
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1953
|
-
* @param {object} [params] extra parameters specific to the
|
|
1951
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1954
1952
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1955
1953
|
*/
|
|
1956
1954
|
if (symbol === undefined) {
|
|
@@ -2009,7 +2007,7 @@ export default class tokocrypto extends Exchange {
|
|
|
2009
2007
|
* @see https://www.tokocrypto.com/apidocs/#deposit-address-signed
|
|
2010
2008
|
* @description fetch the deposit address for a currency associated with this account
|
|
2011
2009
|
* @param {string} code unified currency code
|
|
2012
|
-
* @param {object} [params] extra parameters specific to the
|
|
2010
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2013
2011
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2014
2012
|
*/
|
|
2015
2013
|
await this.loadMarkets();
|
|
@@ -2067,7 +2065,7 @@ export default class tokocrypto extends Exchange {
|
|
|
2067
2065
|
* @param {string} code unified currency code
|
|
2068
2066
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2069
2067
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2070
|
-
* @param {object} [params] extra parameters specific to the
|
|
2068
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2071
2069
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
2072
2070
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2073
2071
|
*/
|
|
@@ -2128,7 +2126,7 @@ export default class tokocrypto extends Exchange {
|
|
|
2128
2126
|
* @param {string} code unified currency code
|
|
2129
2127
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2130
2128
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2131
|
-
* @param {object} [params] extra parameters specific to the
|
|
2129
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2132
2130
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2133
2131
|
*/
|
|
2134
2132
|
await this.loadMarkets();
|
|
@@ -2321,7 +2319,7 @@ export default class tokocrypto extends Exchange {
|
|
|
2321
2319
|
* @param {float} amount the amount to withdraw
|
|
2322
2320
|
* @param {string} address the address to withdraw to
|
|
2323
2321
|
* @param {string} tag
|
|
2324
|
-
* @param {object} [params] extra parameters specific to the
|
|
2322
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2325
2323
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2326
2324
|
*/
|
|
2327
2325
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/js/src/upbit.js
CHANGED
|
@@ -404,7 +404,7 @@ export default class upbit extends Exchange {
|
|
|
404
404
|
* @name upbit#fetchMarkets
|
|
405
405
|
* @see https://docs.upbit.com/reference/%EB%A7%88%EC%BC%93-%EC%BD%94%EB%93%9C-%EC%A1%B0%ED%9A%8C
|
|
406
406
|
* @description retrieves data on all markets for upbit
|
|
407
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
408
408
|
* @returns {object[]} an array of objects representing market data
|
|
409
409
|
*/
|
|
410
410
|
const response = await this.publicGetMarketAll(params);
|
|
@@ -500,7 +500,7 @@ export default class upbit extends Exchange {
|
|
|
500
500
|
* @name upbit#fetchBalance
|
|
501
501
|
* @see https://docs.upbit.com/reference/%EC%A0%84%EC%B2%B4-%EA%B3%84%EC%A2%8C-%EC%A1%B0%ED%9A%8C
|
|
502
502
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
503
|
-
* @param {object} [params] extra parameters specific to the
|
|
503
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
504
504
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
505
505
|
*/
|
|
506
506
|
await this.loadMarkets();
|
|
@@ -527,7 +527,7 @@ export default class upbit extends Exchange {
|
|
|
527
527
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
528
528
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
529
529
|
* @param {int} [limit] not used by upbit fetchOrderBooks ()
|
|
530
|
-
* @param {object} [params] extra parameters specific to the
|
|
530
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
531
531
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
532
532
|
*/
|
|
533
533
|
await this.loadMarkets();
|
|
@@ -601,7 +601,7 @@ export default class upbit extends Exchange {
|
|
|
601
601
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
602
602
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
603
603
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
604
|
-
* @param {object} [params] extra parameters specific to the
|
|
604
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
605
605
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
606
606
|
*/
|
|
607
607
|
const orderbooks = await this.fetchOrderBooks([symbol], limit, params);
|
|
@@ -668,9 +668,9 @@ export default class upbit extends Exchange {
|
|
|
668
668
|
* @method
|
|
669
669
|
* @name upbit#fetchTickers
|
|
670
670
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
671
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
671
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
672
672
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
673
|
-
* @param {object} [params] extra parameters specific to the
|
|
673
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
674
674
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
675
675
|
*/
|
|
676
676
|
await this.loadMarkets();
|
|
@@ -735,7 +735,7 @@ export default class upbit extends Exchange {
|
|
|
735
735
|
* @see https://docs.upbit.com/reference/ticker%ED%98%84%EC%9E%AC%EA%B0%80-%EC%A0%95%EB%B3%B4
|
|
736
736
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
737
737
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
738
|
-
* @param {object} [params] extra parameters specific to the
|
|
738
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
739
739
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
740
740
|
*/
|
|
741
741
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -822,7 +822,7 @@ export default class upbit extends Exchange {
|
|
|
822
822
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
823
823
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
824
824
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
825
|
-
* @param {object} [params] extra parameters specific to the
|
|
825
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
826
826
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
827
827
|
*/
|
|
828
828
|
await this.loadMarkets();
|
|
@@ -866,7 +866,7 @@ export default class upbit extends Exchange {
|
|
|
866
866
|
* @see https://docs.upbit.com/reference/%EC%A3%BC%EB%AC%B8-%EA%B0%80%EB%8A%A5-%EC%A0%95%EB%B3%B4
|
|
867
867
|
* @description fetch the trading fees for a market
|
|
868
868
|
* @param {string} symbol unified market symbol
|
|
869
|
-
* @param {object} [params] extra parameters specific to the
|
|
869
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
870
870
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
871
871
|
*/
|
|
872
872
|
await this.loadMarkets();
|
|
@@ -959,7 +959,7 @@ export default class upbit extends Exchange {
|
|
|
959
959
|
* @param {string} timeframe the length of time each candle represents
|
|
960
960
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
961
961
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
962
|
-
* @param {object} [params] extra parameters specific to the
|
|
962
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
963
963
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
964
964
|
*/
|
|
965
965
|
await this.loadMarkets();
|
|
@@ -1030,7 +1030,7 @@ export default class upbit extends Exchange {
|
|
|
1030
1030
|
* @param {string} side 'buy' or 'sell'
|
|
1031
1031
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1032
1032
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1033
|
-
* @param {object} [params] extra parameters specific to the
|
|
1033
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1034
1034
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1035
1035
|
*/
|
|
1036
1036
|
if (type === 'market') {
|
|
@@ -1113,7 +1113,7 @@ export default class upbit extends Exchange {
|
|
|
1113
1113
|
* @description cancels an open order
|
|
1114
1114
|
* @param {string} id order id
|
|
1115
1115
|
* @param {string} symbol not used by upbit cancelOrder ()
|
|
1116
|
-
* @param {object} [params] extra parameters specific to the
|
|
1116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1117
1117
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1118
1118
|
*/
|
|
1119
1119
|
await this.loadMarkets();
|
|
@@ -1151,7 +1151,7 @@ export default class upbit extends Exchange {
|
|
|
1151
1151
|
* @param {string} code unified currency code
|
|
1152
1152
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1153
1153
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1154
|
-
* @param {object} [params] extra parameters specific to the
|
|
1154
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1155
1155
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1156
1156
|
*/
|
|
1157
1157
|
await this.loadMarkets();
|
|
@@ -1195,7 +1195,7 @@ export default class upbit extends Exchange {
|
|
|
1195
1195
|
* @param {string} code unified currency code
|
|
1196
1196
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1197
1197
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1198
|
-
* @param {object} [params] extra parameters specific to the
|
|
1198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1199
1199
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1200
1200
|
*/
|
|
1201
1201
|
await this.loadMarkets();
|
|
@@ -1500,7 +1500,7 @@ export default class upbit extends Exchange {
|
|
|
1500
1500
|
* @param {string} symbol unified market symbol
|
|
1501
1501
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1502
1502
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1503
|
-
* @param {object} [params] extra parameters specific to the
|
|
1503
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1504
1504
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1505
1505
|
*/
|
|
1506
1506
|
return await this.fetchOrdersByState('wait', symbol, since, limit, params);
|
|
@@ -1514,7 +1514,7 @@ export default class upbit extends Exchange {
|
|
|
1514
1514
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1515
1515
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1516
1516
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1517
|
-
* @param {object} [params] extra parameters specific to the
|
|
1517
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1518
1518
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1519
1519
|
*/
|
|
1520
1520
|
return await this.fetchOrdersByState('done', symbol, since, limit, params);
|
|
@@ -1528,7 +1528,7 @@ export default class upbit extends Exchange {
|
|
|
1528
1528
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1529
1529
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1530
1530
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1531
|
-
* @param {object} [params] extra parameters specific to the
|
|
1531
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1532
1532
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1533
1533
|
*/
|
|
1534
1534
|
return await this.fetchOrdersByState('cancel', symbol, since, limit, params);
|
|
@@ -1540,7 +1540,7 @@ export default class upbit extends Exchange {
|
|
|
1540
1540
|
* @see https://docs.upbit.com/reference/%EA%B0%9C%EB%B3%84-%EC%A3%BC%EB%AC%B8-%EC%A1%B0%ED%9A%8C
|
|
1541
1541
|
* @description fetches information on an order made by the user
|
|
1542
1542
|
* @param {string} symbol not used by upbit fetchOrder
|
|
1543
|
-
* @param {object} [params] extra parameters specific to the
|
|
1543
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1544
1544
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1545
1545
|
*/
|
|
1546
1546
|
await this.loadMarkets();
|
|
@@ -1600,7 +1600,7 @@ export default class upbit extends Exchange {
|
|
|
1600
1600
|
* @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
|
|
1601
1601
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1602
1602
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1603
|
-
* @param {object} [params] extra parameters specific to the
|
|
1603
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1604
1604
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1605
1605
|
*/
|
|
1606
1606
|
await this.loadMarkets();
|
|
@@ -1654,7 +1654,7 @@ export default class upbit extends Exchange {
|
|
|
1654
1654
|
* @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
|
|
1655
1655
|
* @description fetch the deposit address for a currency associated with this account
|
|
1656
1656
|
* @param {string} code unified currency code
|
|
1657
|
-
* @param {object} [params] extra parameters specific to the
|
|
1657
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1658
1658
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1659
1659
|
*/
|
|
1660
1660
|
await this.loadMarkets();
|
|
@@ -1678,7 +1678,7 @@ export default class upbit extends Exchange {
|
|
|
1678
1678
|
* @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
|
|
1679
1679
|
* @description create a currency deposit address
|
|
1680
1680
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1681
|
-
* @param {object} [params] extra parameters specific to the
|
|
1681
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1682
1682
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1683
1683
|
*/
|
|
1684
1684
|
await this.loadMarkets();
|
|
@@ -1719,7 +1719,7 @@ export default class upbit extends Exchange {
|
|
|
1719
1719
|
* @param {float} amount the amount to withdraw
|
|
1720
1720
|
* @param {string} address the address to withdraw to
|
|
1721
1721
|
* @param {string} tag
|
|
1722
|
-
* @param {object} [params] extra parameters specific to the
|
|
1722
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1723
1723
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1724
1724
|
*/
|
|
1725
1725
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/js/src/wavesexchange.js
CHANGED
|
@@ -492,7 +492,7 @@ export default class wavesexchange extends Exchange {
|
|
|
492
492
|
* @method
|
|
493
493
|
* @name wavesexchange#fetchMarkets
|
|
494
494
|
* @description retrieves data on all markets for wavesexchange
|
|
495
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
495
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
496
496
|
* @returns {object[]} an array of objects representing market data
|
|
497
497
|
*/
|
|
498
498
|
const response = await this.marketGetTickers();
|
|
@@ -594,7 +594,7 @@ export default class wavesexchange extends Exchange {
|
|
|
594
594
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
595
595
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
596
596
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
597
|
-
* @param {object} [params] extra parameters specific to the
|
|
597
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
598
598
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
599
599
|
*/
|
|
600
600
|
await this.loadMarkets();
|
|
@@ -740,7 +740,7 @@ export default class wavesexchange extends Exchange {
|
|
|
740
740
|
* @method
|
|
741
741
|
* @name wavesexchange#signIn
|
|
742
742
|
* @description sign in, must be called prior to using other authenticated methods
|
|
743
|
-
* @param {object} [params] extra parameters specific to the
|
|
743
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
744
744
|
* @returns response from exchange
|
|
745
745
|
*/
|
|
746
746
|
if (!this.safeString(this.options, 'accessToken')) {
|
|
@@ -854,7 +854,7 @@ export default class wavesexchange extends Exchange {
|
|
|
854
854
|
* @name wavesexchange#fetchTicker
|
|
855
855
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
856
856
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
857
|
-
* @param {object} [params] extra parameters specific to the
|
|
857
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
858
858
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
859
859
|
*/
|
|
860
860
|
await this.loadMarkets();
|
|
@@ -895,9 +895,9 @@ export default class wavesexchange extends Exchange {
|
|
|
895
895
|
/**
|
|
896
896
|
* @method
|
|
897
897
|
* @name wavesexchange#fetchTickers
|
|
898
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
898
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
899
899
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
900
|
-
* @param {object} [params] extra parameters specific to the
|
|
900
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
901
901
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
902
902
|
*/
|
|
903
903
|
await this.loadMarkets();
|
|
@@ -941,7 +941,7 @@ export default class wavesexchange extends Exchange {
|
|
|
941
941
|
* @param {string} timeframe the length of time each candle represents
|
|
942
942
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
943
943
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
944
|
-
* @param {object} [params] extra parameters specific to the
|
|
944
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
945
945
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
946
946
|
*/
|
|
947
947
|
await this.loadMarkets();
|
|
@@ -1059,7 +1059,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1059
1059
|
* @name wavesexchange#fetchDepositAddress
|
|
1060
1060
|
* @description fetch the deposit address for a currency associated with this account
|
|
1061
1061
|
* @param {string} code unified currency code
|
|
1062
|
-
* @param {object} [params] extra parameters specific to the
|
|
1062
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1063
1063
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1064
1064
|
*/
|
|
1065
1065
|
await this.signIn();
|
|
@@ -1292,7 +1292,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1292
1292
|
* @param {string} side 'buy' or 'sell'
|
|
1293
1293
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1294
1294
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1295
|
-
* @param {object} [params] extra parameters specific to the
|
|
1295
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1296
1296
|
* @param {float} [params.stopPrice] The price at which a stop order is triggered at
|
|
1297
1297
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1298
1298
|
*/
|
|
@@ -1475,7 +1475,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1475
1475
|
* @description cancels an open order
|
|
1476
1476
|
* @param {string} id order id
|
|
1477
1477
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1478
|
-
* @param {object} [params] extra parameters specific to the
|
|
1478
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1479
1479
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1480
1480
|
*/
|
|
1481
1481
|
this.checkRequiredDependencies();
|
|
@@ -1522,7 +1522,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1522
1522
|
* @name wavesexchange#fetchOrder
|
|
1523
1523
|
* @description fetches information on an order made by the user
|
|
1524
1524
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1525
|
-
* @param {object} [params] extra parameters specific to the
|
|
1525
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1526
1526
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1527
1527
|
*/
|
|
1528
1528
|
this.checkRequiredDependencies();
|
|
@@ -1557,7 +1557,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1557
1557
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1558
1558
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1559
1559
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1560
|
-
* @param {object} [params] extra parameters specific to the
|
|
1560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1561
1561
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1562
1562
|
*/
|
|
1563
1563
|
this.checkRequiredDependencies();
|
|
@@ -1609,7 +1609,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1609
1609
|
* @param {string} symbol unified market symbol
|
|
1610
1610
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1611
1611
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1612
|
-
* @param {object} [params] extra parameters specific to the
|
|
1612
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1613
1613
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1614
1614
|
*/
|
|
1615
1615
|
await this.loadMarkets();
|
|
@@ -1634,7 +1634,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1634
1634
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1635
1635
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1636
1636
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1637
|
-
* @param {object} [params] extra parameters specific to the
|
|
1637
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1638
1638
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1639
1639
|
*/
|
|
1640
1640
|
await this.loadMarkets();
|
|
@@ -1837,7 +1837,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1837
1837
|
* @method
|
|
1838
1838
|
* @name wavesexchange#fetchBalance
|
|
1839
1839
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1840
|
-
* @param {object} [params] extra parameters specific to the
|
|
1840
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1841
1841
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1842
1842
|
*/
|
|
1843
1843
|
// makes a lot of different requests to get all the data
|
|
@@ -1991,7 +1991,7 @@ export default class wavesexchange extends Exchange {
|
|
|
1991
1991
|
* @param {string} symbol unified market symbol
|
|
1992
1992
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1993
1993
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1994
|
-
* @param {object} [params] extra parameters specific to the
|
|
1994
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1995
1995
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1996
1996
|
*/
|
|
1997
1997
|
await this.loadMarkets();
|
|
@@ -2083,7 +2083,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2083
2083
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2084
2084
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2085
2085
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2086
|
-
* @param {object} [params] extra parameters specific to the
|
|
2086
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2087
2087
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2088
2088
|
*/
|
|
2089
2089
|
await this.loadMarkets();
|
|
@@ -2340,7 +2340,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2340
2340
|
* @see https://docs.wx.network/en/api/gateways/deposit/currencies
|
|
2341
2341
|
* @see https://docs.wx.network/en/api/gateways/withdraw/currencies
|
|
2342
2342
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2343
|
-
* @param {object} [params] extra parameters specific to the
|
|
2343
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2344
2344
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2345
2345
|
*/
|
|
2346
2346
|
await this.loadMarkets();
|
|
@@ -2437,7 +2437,7 @@ export default class wavesexchange extends Exchange {
|
|
|
2437
2437
|
* @param {float} amount the amount to withdraw
|
|
2438
2438
|
* @param {string} address the address to withdraw to
|
|
2439
2439
|
* @param {string} tag
|
|
2440
|
-
* @param {object} [params] extra parameters specific to the
|
|
2440
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2441
2441
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2442
2442
|
*/
|
|
2443
2443
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|