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/wazirx.js
CHANGED
|
@@ -184,7 +184,7 @@ export default class wazirx extends Exchange {
|
|
|
184
184
|
* @name wazirx#fetchMarkets
|
|
185
185
|
* @see https://docs.wazirx.com/#exchange-info
|
|
186
186
|
* @description retrieves data on all markets for wazirx
|
|
187
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
187
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
188
188
|
* @returns {object[]} an array of objects representing market data
|
|
189
189
|
*/
|
|
190
190
|
const response = await this.publicGetExchangeInfo(params);
|
|
@@ -301,7 +301,7 @@ export default class wazirx extends Exchange {
|
|
|
301
301
|
* @param {string} timeframe the length of time each candle represents. Available values [1m,5m,15m,30m,1h,2h,4h,6h,12h,1d,1w]
|
|
302
302
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
303
303
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
304
|
-
* @param {object} [params] extra parameters specific to the
|
|
304
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
305
305
|
* @param {int} [params.until] timestamp in s of the latest candle to fetch
|
|
306
306
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
307
307
|
*/
|
|
@@ -352,7 +352,7 @@ export default class wazirx extends Exchange {
|
|
|
352
352
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
353
353
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
354
354
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
355
|
-
* @param {object} [params] extra parameters specific to the
|
|
355
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
356
356
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
357
357
|
*/
|
|
358
358
|
await this.loadMarkets();
|
|
@@ -387,7 +387,7 @@ export default class wazirx extends Exchange {
|
|
|
387
387
|
* @see https://docs.wazirx.com/#24hr-ticker-price-change-statistics
|
|
388
388
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
389
389
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
390
|
-
* @param {object} [params] extra parameters specific to the
|
|
390
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
391
391
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
392
392
|
*/
|
|
393
393
|
await this.loadMarkets();
|
|
@@ -418,9 +418,9 @@ export default class wazirx extends Exchange {
|
|
|
418
418
|
* @method
|
|
419
419
|
* @name wazirx#fetchTickers
|
|
420
420
|
* @see https://docs.wazirx.com/#24hr-tickers-price-change-statistics
|
|
421
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
421
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
422
422
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
423
|
-
* @param {object} [params] extra parameters specific to the
|
|
423
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
424
424
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
425
425
|
*/
|
|
426
426
|
await this.loadMarkets();
|
|
@@ -460,7 +460,7 @@ export default class wazirx extends Exchange {
|
|
|
460
460
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
461
461
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
462
462
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
463
|
-
* @param {object} [params] extra parameters specific to the
|
|
463
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
464
464
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
465
465
|
*/
|
|
466
466
|
await this.loadMarkets();
|
|
@@ -472,7 +472,13 @@ export default class wazirx extends Exchange {
|
|
|
472
472
|
request['limit'] = Math.min(limit, 1000); // Default 500; max 1000.
|
|
473
473
|
}
|
|
474
474
|
const method = this.safeString(this.options, 'fetchTradesMethod', 'publicGetTrades');
|
|
475
|
-
|
|
475
|
+
let response = undefined;
|
|
476
|
+
if (method === 'privateGetHistoricalTrades') {
|
|
477
|
+
response = await this.privateGetHistoricalTrades(this.extend(request, params));
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
response = await this.publicGetTrades(this.extend(request, params));
|
|
481
|
+
}
|
|
476
482
|
// [
|
|
477
483
|
// {
|
|
478
484
|
// "id":322307791,
|
|
@@ -527,7 +533,7 @@ export default class wazirx extends Exchange {
|
|
|
527
533
|
* @name wazirx#fetchStatus
|
|
528
534
|
* @see https://docs.wazirx.com/#system-status
|
|
529
535
|
* @description the latest known information on the availability of the exchange API
|
|
530
|
-
* @param {object} [params] extra parameters specific to the
|
|
536
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
531
537
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
532
538
|
*/
|
|
533
539
|
const response = await this.publicGetSystemStatus(params);
|
|
@@ -552,7 +558,7 @@ export default class wazirx extends Exchange {
|
|
|
552
558
|
* @name wazirx#fetchTime
|
|
553
559
|
* @see https://docs.wazirx.com/#check-server-time
|
|
554
560
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
555
|
-
* @param {object} [params] extra parameters specific to the
|
|
561
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
556
562
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
557
563
|
*/
|
|
558
564
|
const response = await this.publicGetTime(params);
|
|
@@ -632,7 +638,7 @@ export default class wazirx extends Exchange {
|
|
|
632
638
|
* @name wazirx#fetchBalance
|
|
633
639
|
* @see https://docs.wazirx.com/#fund-details-user_data
|
|
634
640
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
635
|
-
* @param {object} [params] extra parameters specific to the
|
|
641
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
636
642
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
637
643
|
*/
|
|
638
644
|
await this.loadMarkets();
|
|
@@ -657,7 +663,7 @@ export default class wazirx extends Exchange {
|
|
|
657
663
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
658
664
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
659
665
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
660
|
-
* @param {object} [params] extra parameters specific to the
|
|
666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
661
667
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
662
668
|
*/
|
|
663
669
|
if (symbol === undefined) {
|
|
@@ -717,7 +723,7 @@ export default class wazirx extends Exchange {
|
|
|
717
723
|
* @param {string} symbol unified market symbol
|
|
718
724
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
719
725
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
720
|
-
* @param {object} [params] extra parameters specific to the
|
|
726
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
721
727
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
722
728
|
*/
|
|
723
729
|
await this.loadMarkets();
|
|
@@ -765,7 +771,7 @@ export default class wazirx extends Exchange {
|
|
|
765
771
|
* @see https://docs.wazirx.com/#cancel-all-open-orders-on-a-symbol-trade
|
|
766
772
|
* @description cancel all open orders in a market
|
|
767
773
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
768
|
-
* @param {object} [params] extra parameters specific to the
|
|
774
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
769
775
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
770
776
|
*/
|
|
771
777
|
if (symbol === undefined) {
|
|
@@ -786,7 +792,7 @@ export default class wazirx extends Exchange {
|
|
|
786
792
|
* @description cancels an open order
|
|
787
793
|
* @param {string} id order id
|
|
788
794
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
789
|
-
* @param {object} [params] extra parameters specific to the
|
|
795
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
790
796
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
791
797
|
*/
|
|
792
798
|
if (symbol === undefined) {
|
|
@@ -812,7 +818,7 @@ export default class wazirx extends Exchange {
|
|
|
812
818
|
* @param {string} side 'buy' or 'sell'
|
|
813
819
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
814
820
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
815
|
-
* @param {object} [params] extra parameters specific to the
|
|
821
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
816
822
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
817
823
|
*/
|
|
818
824
|
type = type.toLowerCase();
|
package/js/src/whitebit.js
CHANGED
|
@@ -275,7 +275,7 @@ export default class whitebit extends Exchange {
|
|
|
275
275
|
* @name whitebit#fetchMarkets
|
|
276
276
|
* @description retrieves data on all markets for whitebit
|
|
277
277
|
* @see https://whitebit-exchange.github.io/api-docs/docs/Public/http-v4#market-info
|
|
278
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
278
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
279
279
|
* @returns {object[]} an array of objects representing market data
|
|
280
280
|
*/
|
|
281
281
|
const markets = await this.v4PublicGetMarkets();
|
|
@@ -398,7 +398,7 @@ export default class whitebit extends Exchange {
|
|
|
398
398
|
* @method
|
|
399
399
|
* @name whitebit#fetchCurrencies
|
|
400
400
|
* @description fetches all available currencies on an exchange
|
|
401
|
-
* @param {object} [params] extra parameters specific to the
|
|
401
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
402
402
|
* @returns {object} an associative dictionary of currencies
|
|
403
403
|
*/
|
|
404
404
|
const response = await this.v4PublicGetAssets(params);
|
|
@@ -458,7 +458,7 @@ export default class whitebit extends Exchange {
|
|
|
458
458
|
* @deprecated
|
|
459
459
|
* @description please use fetchDepositWithdrawFees instead
|
|
460
460
|
* @param {string[]|undefined} codes not used by fetchTransactionFees ()
|
|
461
|
-
* @param {object} [params] extra parameters specific to the
|
|
461
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
462
462
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
463
463
|
*/
|
|
464
464
|
await this.loadMarkets();
|
|
@@ -512,7 +512,7 @@ export default class whitebit extends Exchange {
|
|
|
512
512
|
* @name whitebit#fetchDepositWithdrawFees
|
|
513
513
|
* @description fetch deposit and withdraw fees
|
|
514
514
|
* @param {string[]|undefined} codes not used by fetchDepositWithdrawFees ()
|
|
515
|
-
* @param {object} [params] extra parameters specific to the
|
|
515
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
516
516
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
517
517
|
*/
|
|
518
518
|
await this.loadMarkets();
|
|
@@ -660,7 +660,7 @@ export default class whitebit extends Exchange {
|
|
|
660
660
|
* @method
|
|
661
661
|
* @name whitebit#fetchTradingFees
|
|
662
662
|
* @description fetch the trading fees for multiple markets
|
|
663
|
-
* @param {object} [params] extra parameters specific to the
|
|
663
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
664
664
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
665
665
|
*/
|
|
666
666
|
await this.loadMarkets();
|
|
@@ -708,7 +708,7 @@ export default class whitebit extends Exchange {
|
|
|
708
708
|
* @name whitebit#fetchTicker
|
|
709
709
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
710
710
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
711
|
-
* @param {object} [params] extra parameters specific to the
|
|
711
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
712
712
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
713
713
|
*/
|
|
714
714
|
await this.loadMarkets();
|
|
@@ -794,9 +794,9 @@ export default class whitebit extends Exchange {
|
|
|
794
794
|
/**
|
|
795
795
|
* @method
|
|
796
796
|
* @name whitebit#fetchTickers
|
|
797
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
797
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
798
798
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
799
|
-
* @param {object} [params] extra parameters specific to the
|
|
799
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
800
800
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
801
801
|
*/
|
|
802
802
|
await this.loadMarkets();
|
|
@@ -832,7 +832,7 @@ export default class whitebit extends Exchange {
|
|
|
832
832
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
833
833
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
834
834
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
835
|
-
* @param {object} [params] extra parameters specific to the
|
|
835
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
836
836
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
837
837
|
*/
|
|
838
838
|
await this.loadMarkets();
|
|
@@ -874,7 +874,7 @@ export default class whitebit extends Exchange {
|
|
|
874
874
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
875
875
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
876
876
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
877
|
-
* @param {object} [params] extra parameters specific to the
|
|
877
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
878
878
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
879
879
|
*/
|
|
880
880
|
await this.loadMarkets();
|
|
@@ -905,7 +905,7 @@ export default class whitebit extends Exchange {
|
|
|
905
905
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
906
906
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
907
907
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
908
|
-
* @param {object} [params] extra parameters specific to the
|
|
908
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
909
909
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
910
910
|
*/
|
|
911
911
|
await this.loadMarkets();
|
|
@@ -1059,7 +1059,7 @@ export default class whitebit extends Exchange {
|
|
|
1059
1059
|
* @param {string} timeframe the length of time each candle represents
|
|
1060
1060
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1061
1061
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1062
|
-
* @param {object} [params] extra parameters specific to the
|
|
1062
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1063
1063
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1064
1064
|
*/
|
|
1065
1065
|
await this.loadMarkets();
|
|
@@ -1121,7 +1121,7 @@ export default class whitebit extends Exchange {
|
|
|
1121
1121
|
* @method
|
|
1122
1122
|
* @name whitebit#fetchStatus
|
|
1123
1123
|
* @description the latest known information on the availability of the exchange API
|
|
1124
|
-
* @param {object} [params] extra parameters specific to the
|
|
1124
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1125
1125
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
1126
1126
|
*/
|
|
1127
1127
|
const response = await this.v4PublicGetPing(params);
|
|
@@ -1144,7 +1144,7 @@ export default class whitebit extends Exchange {
|
|
|
1144
1144
|
* @method
|
|
1145
1145
|
* @name whitebit#fetchTime
|
|
1146
1146
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1147
|
-
* @param {object} [params] extra parameters specific to the
|
|
1147
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1148
1148
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1149
1149
|
*/
|
|
1150
1150
|
const response = await this.v4PublicGetTime(params);
|
|
@@ -1165,7 +1165,7 @@ export default class whitebit extends Exchange {
|
|
|
1165
1165
|
* @param {string} side 'buy' or 'sell'
|
|
1166
1166
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1167
1167
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1168
|
-
* @param {object} [params] extra parameters specific to the
|
|
1168
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1169
1169
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1170
1170
|
*/
|
|
1171
1171
|
await this.loadMarkets();
|
|
@@ -1244,7 +1244,7 @@ export default class whitebit extends Exchange {
|
|
|
1244
1244
|
* @description cancels an open order
|
|
1245
1245
|
* @param {string} id order id
|
|
1246
1246
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1247
|
-
* @param {object} [params] extra parameters specific to the
|
|
1247
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1248
1248
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1249
1249
|
*/
|
|
1250
1250
|
if (symbol === undefined) {
|
|
@@ -1285,7 +1285,7 @@ export default class whitebit extends Exchange {
|
|
|
1285
1285
|
* @method
|
|
1286
1286
|
* @name whitebit#fetchBalance
|
|
1287
1287
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1288
|
-
* @param {object} [params] extra parameters specific to the
|
|
1288
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1289
1289
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1290
1290
|
*/
|
|
1291
1291
|
await this.loadMarkets();
|
|
@@ -1339,7 +1339,7 @@ export default class whitebit extends Exchange {
|
|
|
1339
1339
|
* @param {string} symbol unified market symbol
|
|
1340
1340
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1341
1341
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1342
|
-
* @param {object} [params] extra parameters specific to the
|
|
1342
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1343
1343
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1344
1344
|
*/
|
|
1345
1345
|
if (symbol === undefined) {
|
|
@@ -1384,7 +1384,7 @@ export default class whitebit extends Exchange {
|
|
|
1384
1384
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1385
1385
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1386
1386
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1387
|
-
* @param {object} [params] extra parameters specific to the
|
|
1387
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1388
1388
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1389
1389
|
*/
|
|
1390
1390
|
await this.loadMarkets();
|
|
@@ -1545,7 +1545,7 @@ export default class whitebit extends Exchange {
|
|
|
1545
1545
|
* @param {string} symbol unified market symbol
|
|
1546
1546
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1547
1547
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1548
|
-
* @param {object} [params] extra parameters specific to the
|
|
1548
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1549
1549
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1550
1550
|
*/
|
|
1551
1551
|
await this.loadMarkets();
|
|
@@ -1589,7 +1589,7 @@ export default class whitebit extends Exchange {
|
|
|
1589
1589
|
* @name whitebit#fetchDepositAddress
|
|
1590
1590
|
* @description fetch the deposit address for a currency associated with this account
|
|
1591
1591
|
* @param {string} code unified currency code
|
|
1592
|
-
* @param {object} [params] extra parameters specific to the
|
|
1592
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1593
1593
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1594
1594
|
*/
|
|
1595
1595
|
await this.loadMarkets();
|
|
@@ -1662,7 +1662,7 @@ export default class whitebit extends Exchange {
|
|
|
1662
1662
|
* @description set the level of leverage for a market
|
|
1663
1663
|
* @param {float} leverage the rate of leverage
|
|
1664
1664
|
* @param {string} symbol unified market symbol
|
|
1665
|
-
* @param {object} [params] extra parameters specific to the
|
|
1665
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1666
1666
|
* @returns {object} response from the exchange
|
|
1667
1667
|
*/
|
|
1668
1668
|
await this.loadMarkets();
|
|
@@ -1690,7 +1690,7 @@ export default class whitebit extends Exchange {
|
|
|
1690
1690
|
* @param {float} amount amount to transfer
|
|
1691
1691
|
* @param {string} fromAccount account to transfer from - main, spot, collateral
|
|
1692
1692
|
* @param {string} toAccount account to transfer to - main, spot, collateral
|
|
1693
|
-
* @param {object} [params] extra parameters specific to the
|
|
1693
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1694
1694
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1695
1695
|
*/
|
|
1696
1696
|
await this.loadMarkets();
|
|
@@ -1736,7 +1736,7 @@ export default class whitebit extends Exchange {
|
|
|
1736
1736
|
* @param {float} amount the amount to withdraw
|
|
1737
1737
|
* @param {string} address the address to withdraw to
|
|
1738
1738
|
* @param {string} tag
|
|
1739
|
-
* @param {object} [params] extra parameters specific to the
|
|
1739
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1740
1740
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1741
1741
|
*/
|
|
1742
1742
|
await this.loadMarkets();
|
|
@@ -1860,7 +1860,7 @@ export default class whitebit extends Exchange {
|
|
|
1860
1860
|
* @description fetch information on a deposit
|
|
1861
1861
|
* @param {string} id deposit id
|
|
1862
1862
|
* @param {string} code not used by whitebit fetchDeposit ()
|
|
1863
|
-
* @param {object} [params] extra parameters specific to the
|
|
1863
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1864
1864
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1865
1865
|
*/
|
|
1866
1866
|
await this.loadMarkets();
|
|
@@ -1925,7 +1925,7 @@ export default class whitebit extends Exchange {
|
|
|
1925
1925
|
* @param {string} code unified currency code
|
|
1926
1926
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1927
1927
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1928
|
-
* @param {object} [params] extra parameters specific to the
|
|
1928
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1929
1929
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1930
1930
|
*/
|
|
1931
1931
|
await this.loadMarkets();
|
|
@@ -1993,7 +1993,7 @@ export default class whitebit extends Exchange {
|
|
|
1993
1993
|
* @param {string} symbol unified market symbol
|
|
1994
1994
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
1995
1995
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
1996
|
-
* @param {object} [params] extra parameters specific to the
|
|
1996
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1997
1997
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
1998
1998
|
*/
|
|
1999
1999
|
await this.loadMarkets();
|
|
@@ -2070,7 +2070,7 @@ export default class whitebit extends Exchange {
|
|
|
2070
2070
|
* @see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
|
2071
2071
|
* @description fetch the current funding rate
|
|
2072
2072
|
* @param {string} symbol unified market symbol
|
|
2073
|
-
* @param {object} [params] extra parameters specific to the
|
|
2073
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2074
2074
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2075
2075
|
*/
|
|
2076
2076
|
await this.loadMarkets();
|
|
@@ -2085,7 +2085,7 @@ export default class whitebit extends Exchange {
|
|
|
2085
2085
|
* @see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
|
|
2086
2086
|
* @description fetch the funding rate for multiple markets
|
|
2087
2087
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2088
|
-
* @param {object} [params] extra parameters specific to the
|
|
2088
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2089
2089
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2090
2090
|
*/
|
|
2091
2091
|
await this.loadMarkets();
|
package/js/src/woo.js
CHANGED
|
@@ -307,7 +307,7 @@ export default class woo extends Exchange {
|
|
|
307
307
|
* @method
|
|
308
308
|
* @name woo#fetchMarkets
|
|
309
309
|
* @description retrieves data on all markets for woo
|
|
310
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
310
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
311
|
* @returns {object[]} an array of objects representing market data
|
|
312
312
|
*/
|
|
313
313
|
const response = await this.v1PublicGetInfo(params);
|
|
@@ -427,7 +427,7 @@ export default class woo extends Exchange {
|
|
|
427
427
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
428
428
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
429
429
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
430
|
-
* @param {object} [params] extra parameters specific to the
|
|
430
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
431
431
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
432
432
|
*/
|
|
433
433
|
await this.loadMarkets();
|
|
@@ -551,7 +551,7 @@ export default class woo extends Exchange {
|
|
|
551
551
|
* @name woo#fetchTradingFees
|
|
552
552
|
* @description fetch the trading fees for multiple markets
|
|
553
553
|
* @see https://docs.woo.org/#get-account-information-new
|
|
554
|
-
* @param {object} [params] extra parameters specific to the
|
|
554
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
555
555
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
556
556
|
*/
|
|
557
557
|
await this.loadMarkets();
|
|
@@ -606,7 +606,7 @@ export default class woo extends Exchange {
|
|
|
606
606
|
* @method
|
|
607
607
|
* @name woo#fetchCurrencies
|
|
608
608
|
* @description fetches all available currencies on an exchange
|
|
609
|
-
* @param {object} [params] extra parameters specific to the
|
|
609
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
610
610
|
* @returns {object} an associative dictionary of currencies
|
|
611
611
|
*/
|
|
612
612
|
const result = {};
|
|
@@ -749,7 +749,7 @@ export default class woo extends Exchange {
|
|
|
749
749
|
* @param {string} side 'buy' or 'sell'
|
|
750
750
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
751
751
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
752
|
-
* @param {object} [params] extra parameters specific to the
|
|
752
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
753
753
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
754
754
|
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
|
|
755
755
|
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
@@ -929,7 +929,7 @@ export default class woo extends Exchange {
|
|
|
929
929
|
* @param {string} side 'buy' or 'sell'
|
|
930
930
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
931
931
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
932
|
-
* @param {object} [params] extra parameters specific to the
|
|
932
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
933
933
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
934
934
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
935
935
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
@@ -1000,7 +1000,7 @@ export default class woo extends Exchange {
|
|
|
1000
1000
|
* @description cancels an open order
|
|
1001
1001
|
* @param {string} id order id
|
|
1002
1002
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1003
|
-
* @param {object} [params] extra parameters specific to the
|
|
1003
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1004
1004
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1005
1005
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1006
1006
|
*/
|
|
@@ -1056,7 +1056,7 @@ export default class woo extends Exchange {
|
|
|
1056
1056
|
* @see https://docs.woo.org/#cancel-all-pending-algo-orders
|
|
1057
1057
|
* @description cancel all open orders in a market
|
|
1058
1058
|
* @param {string} symbol unified market symbol
|
|
1059
|
-
* @param {object} [params] extra parameters specific to the
|
|
1059
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1060
1060
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1061
1061
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1062
1062
|
*/
|
|
@@ -1090,7 +1090,7 @@ export default class woo extends Exchange {
|
|
|
1090
1090
|
* @see https://docs.woo.org/#get-order
|
|
1091
1091
|
* @description fetches information on an order made by the user
|
|
1092
1092
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1093
|
-
* @param {object} [params] extra parameters specific to the
|
|
1093
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1094
1094
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1095
1095
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1096
1096
|
*/
|
|
@@ -1161,7 +1161,7 @@ export default class woo extends Exchange {
|
|
|
1161
1161
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1162
1162
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1163
1163
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1164
|
-
* @param {object} [params] extra parameters specific to the
|
|
1164
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1165
1165
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1166
1166
|
* @param {boolean} [params.isTriggered] whether the order has been triggered (false by default)
|
|
1167
1167
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
@@ -1372,7 +1372,7 @@ export default class woo extends Exchange {
|
|
|
1372
1372
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1373
1373
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1374
1374
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1375
|
-
* @param {object} [params] extra parameters specific to the
|
|
1375
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1376
1376
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1377
1377
|
*/
|
|
1378
1378
|
await this.loadMarkets();
|
|
@@ -1414,7 +1414,7 @@ export default class woo extends Exchange {
|
|
|
1414
1414
|
* @param {string} timeframe the length of time each candle represents
|
|
1415
1415
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1416
1416
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1417
|
-
* @param {object} [params] extra parameters specific to the
|
|
1417
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1418
1418
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1419
1419
|
*/
|
|
1420
1420
|
await this.loadMarkets();
|
|
@@ -1480,7 +1480,7 @@ export default class woo extends Exchange {
|
|
|
1480
1480
|
* @param {string} symbol unified market symbol
|
|
1481
1481
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1482
1482
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1483
|
-
* @param {object} [params] extra parameters specific to the
|
|
1483
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1484
1484
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1485
1485
|
*/
|
|
1486
1486
|
await this.loadMarkets();
|
|
@@ -1521,7 +1521,7 @@ export default class woo extends Exchange {
|
|
|
1521
1521
|
* @param {string} symbol unified market symbol
|
|
1522
1522
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1523
1523
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1524
|
-
* @param {object} [params] extra parameters specific to the
|
|
1524
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1525
1525
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1526
1526
|
*/
|
|
1527
1527
|
await this.loadMarkets();
|
|
@@ -1566,7 +1566,7 @@ export default class woo extends Exchange {
|
|
|
1566
1566
|
* @method
|
|
1567
1567
|
* @name woo#fetchAccounts
|
|
1568
1568
|
* @description fetch all the accounts associated with a profile
|
|
1569
|
-
* @param {object} [params] extra parameters specific to the
|
|
1569
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1570
1570
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1571
1571
|
*/
|
|
1572
1572
|
const response = await this.v1PrivateGetSubAccountAssets(params);
|
|
@@ -1612,7 +1612,7 @@ export default class woo extends Exchange {
|
|
|
1612
1612
|
* @name woo#fetchBalance
|
|
1613
1613
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1614
1614
|
* @see https://docs.woo.org/#get-current-holding-get-balance-new
|
|
1615
|
-
* @param {object} [params] extra parameters specific to the
|
|
1615
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1616
1616
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1617
1617
|
*/
|
|
1618
1618
|
await this.loadMarkets();
|
|
@@ -1664,7 +1664,7 @@ export default class woo extends Exchange {
|
|
|
1664
1664
|
* @name woo#fetchDepositAddress
|
|
1665
1665
|
* @description fetch the deposit address for a currency associated with this account
|
|
1666
1666
|
* @param {string} code unified currency code
|
|
1667
|
-
* @param {object} [params] extra parameters specific to the
|
|
1667
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1668
1668
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1669
1669
|
*/
|
|
1670
1670
|
// this method is TODO because of networks unification
|
|
@@ -1758,7 +1758,7 @@ export default class woo extends Exchange {
|
|
|
1758
1758
|
* @param {string} code unified currency code, default is undefined
|
|
1759
1759
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1760
1760
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1761
|
-
* @param {object} [params] extra parameters specific to the
|
|
1761
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1762
1762
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
1763
1763
|
*/
|
|
1764
1764
|
const [currency, rows] = await this.getAssetHistoryRows(code, since, limit, params);
|
|
@@ -1822,7 +1822,7 @@ export default class woo extends Exchange {
|
|
|
1822
1822
|
* @param {string} code unified currency code
|
|
1823
1823
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1824
1824
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1825
|
-
* @param {object} [params] extra parameters specific to the
|
|
1825
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1826
1826
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1827
1827
|
*/
|
|
1828
1828
|
const request = {
|
|
@@ -1838,7 +1838,7 @@ export default class woo extends Exchange {
|
|
|
1838
1838
|
* @param {string} code unified currency code
|
|
1839
1839
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1840
1840
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1841
|
-
* @param {object} [params] extra parameters specific to the
|
|
1841
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1842
1842
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1843
1843
|
*/
|
|
1844
1844
|
const request = {
|
|
@@ -1854,7 +1854,7 @@ export default class woo extends Exchange {
|
|
|
1854
1854
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1855
1855
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1856
1856
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1857
|
-
* @param {object} [params] extra parameters specific to the
|
|
1857
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1858
1858
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1859
1859
|
*/
|
|
1860
1860
|
const request = {
|
|
@@ -1929,7 +1929,7 @@ export default class woo extends Exchange {
|
|
|
1929
1929
|
* @param {float} amount amount to transfer
|
|
1930
1930
|
* @param {string} fromAccount account to transfer from
|
|
1931
1931
|
* @param {string} toAccount account to transfer to
|
|
1932
|
-
* @param {object} [params] extra parameters specific to the
|
|
1932
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1933
1933
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1934
1934
|
*/
|
|
1935
1935
|
await this.loadMarkets();
|
|
@@ -1965,7 +1965,7 @@ export default class woo extends Exchange {
|
|
|
1965
1965
|
* @param {string} code unified currency code of the currency transferred
|
|
1966
1966
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1967
1967
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1968
|
-
* @param {object} [params] extra parameters specific to the
|
|
1968
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1969
1969
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1970
1970
|
*/
|
|
1971
1971
|
const request = {
|
|
@@ -2056,7 +2056,7 @@ export default class woo extends Exchange {
|
|
|
2056
2056
|
* @param {float} amount the amount to withdraw
|
|
2057
2057
|
* @param {string} address the address to withdraw to
|
|
2058
2058
|
* @param {string} tag
|
|
2059
|
-
* @param {object} [params] extra parameters specific to the
|
|
2059
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2060
2060
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2061
2061
|
*/
|
|
2062
2062
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2098,7 +2098,7 @@ export default class woo extends Exchange {
|
|
|
2098
2098
|
* @param {string} code unified currency code of the currency to repay
|
|
2099
2099
|
* @param {float} amount the amount to repay
|
|
2100
2100
|
* @param {string} symbol not used by woo.repayMargin ()
|
|
2101
|
-
* @param {object} [params] extra parameters specific to the
|
|
2101
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2102
2102
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
2103
2103
|
*/
|
|
2104
2104
|
await this.loadMarkets();
|
|
@@ -2388,7 +2388,7 @@ export default class woo extends Exchange {
|
|
|
2388
2388
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2389
2389
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2390
2390
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2391
|
-
* @param {object} [params] extra parameters specific to the
|
|
2391
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2392
2392
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2393
2393
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2394
2394
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|