ccxt 4.0.74 → 4.0.76
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 +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- 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 +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +19 -18
- package/dist/cjs/src/pro/phemex.js +6 -6
- 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 +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- package/js/src/pro/phemex.js +6 -6
- 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 +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/dist/cjs/src/wazirx.js
CHANGED
|
@@ -328,7 +328,7 @@ class wazirx extends wazirx$1 {
|
|
|
328
328
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
329
329
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
330
330
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
331
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
331
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
332
332
|
*/
|
|
333
333
|
await this.loadMarkets();
|
|
334
334
|
const market = this.market(symbol);
|
|
@@ -363,7 +363,7 @@ class wazirx extends wazirx$1 {
|
|
|
363
363
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
364
364
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
365
365
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
366
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
366
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
367
367
|
*/
|
|
368
368
|
await this.loadMarkets();
|
|
369
369
|
const market = this.market(symbol);
|
|
@@ -396,7 +396,7 @@ class wazirx extends wazirx$1 {
|
|
|
396
396
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
397
397
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
398
398
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
399
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
399
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
400
400
|
*/
|
|
401
401
|
await this.loadMarkets();
|
|
402
402
|
const tickers = await this.publicGetTickers24hr();
|
|
@@ -436,7 +436,7 @@ class wazirx extends wazirx$1 {
|
|
|
436
436
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
437
437
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
438
438
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
439
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
439
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
440
440
|
*/
|
|
441
441
|
await this.loadMarkets();
|
|
442
442
|
const market = this.market(symbol);
|
|
@@ -503,7 +503,7 @@ class wazirx extends wazirx$1 {
|
|
|
503
503
|
* @see https://docs.wazirx.com/#system-status
|
|
504
504
|
* @description the latest known information on the availability of the exchange API
|
|
505
505
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
506
|
-
* @returns {object} a [status structure]{@link https://
|
|
506
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
507
507
|
*/
|
|
508
508
|
const response = await this.publicGetSystemStatus(params);
|
|
509
509
|
//
|
|
@@ -608,7 +608,7 @@ class wazirx extends wazirx$1 {
|
|
|
608
608
|
* @see https://docs.wazirx.com/#fund-details-user_data
|
|
609
609
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
610
610
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
611
|
-
* @returns {object} a [balance structure]{@link https://
|
|
611
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
612
612
|
*/
|
|
613
613
|
await this.loadMarkets();
|
|
614
614
|
const response = await this.privateGetFunds(params);
|
|
@@ -633,7 +633,7 @@ class wazirx extends wazirx$1 {
|
|
|
633
633
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
634
634
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
635
635
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
636
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
636
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
637
637
|
*/
|
|
638
638
|
if (symbol === undefined) {
|
|
639
639
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a `symbol` argument');
|
|
@@ -693,7 +693,7 @@ class wazirx extends wazirx$1 {
|
|
|
693
693
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
694
694
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
695
695
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
696
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
696
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
697
697
|
*/
|
|
698
698
|
await this.loadMarkets();
|
|
699
699
|
const request = {};
|
|
@@ -741,7 +741,7 @@ class wazirx extends wazirx$1 {
|
|
|
741
741
|
* @description cancel all open orders in a market
|
|
742
742
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
743
743
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
744
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
744
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
745
745
|
*/
|
|
746
746
|
if (symbol === undefined) {
|
|
747
747
|
throw new errors.ArgumentsRequired(this.id + ' cancelAllOrders() requires a `symbol` argument');
|
|
@@ -762,7 +762,7 @@ class wazirx extends wazirx$1 {
|
|
|
762
762
|
* @param {string} id order id
|
|
763
763
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
764
764
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
765
|
-
* @returns {object} An [order structure]{@link https://
|
|
765
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
766
766
|
*/
|
|
767
767
|
if (symbol === undefined) {
|
|
768
768
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a `symbol` argument');
|
|
@@ -786,9 +786,9 @@ class wazirx extends wazirx$1 {
|
|
|
786
786
|
* @param {string} type 'market' or 'limit'
|
|
787
787
|
* @param {string} side 'buy' or 'sell'
|
|
788
788
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
789
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
789
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
790
790
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
791
|
-
* @returns {object} an [order structure]{@link https://
|
|
791
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
792
792
|
*/
|
|
793
793
|
type = type.toLowerCase();
|
|
794
794
|
if ((type !== 'limit') && (type !== 'stop_limit')) {
|
package/dist/cjs/src/whitebit.js
CHANGED
|
@@ -449,7 +449,7 @@ class whitebit extends whitebit$1 {
|
|
|
449
449
|
* @description please use fetchDepositWithdrawFees instead
|
|
450
450
|
* @param {string[]|undefined} codes not used by fetchTransactionFees ()
|
|
451
451
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
452
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
452
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
453
453
|
*/
|
|
454
454
|
await this.loadMarkets();
|
|
455
455
|
const response = await this.v4PublicGetFee(params);
|
|
@@ -503,7 +503,7 @@ class whitebit extends whitebit$1 {
|
|
|
503
503
|
* @description fetch deposit and withdraw fees
|
|
504
504
|
* @param {string[]|undefined} codes not used by fetchDepositWithdrawFees ()
|
|
505
505
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
506
|
-
* @returns {object} a list of [fee structures]{@link https://
|
|
506
|
+
* @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
507
507
|
*/
|
|
508
508
|
await this.loadMarkets();
|
|
509
509
|
const response = await this.v4PublicGetFee(params);
|
|
@@ -651,7 +651,7 @@ class whitebit extends whitebit$1 {
|
|
|
651
651
|
* @name whitebit#fetchTradingFees
|
|
652
652
|
* @description fetch the trading fees for multiple markets
|
|
653
653
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
654
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
654
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
655
655
|
*/
|
|
656
656
|
await this.loadMarkets();
|
|
657
657
|
const response = await this.v4PublicGetAssets(params);
|
|
@@ -699,7 +699,7 @@ class whitebit extends whitebit$1 {
|
|
|
699
699
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
700
700
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
701
701
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
702
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
702
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
703
703
|
*/
|
|
704
704
|
await this.loadMarkets();
|
|
705
705
|
const market = this.market(symbol);
|
|
@@ -787,7 +787,7 @@ class whitebit extends whitebit$1 {
|
|
|
787
787
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
788
788
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
789
789
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
790
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
790
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
791
791
|
*/
|
|
792
792
|
await this.loadMarkets();
|
|
793
793
|
symbols = this.marketSymbols(symbols);
|
|
@@ -822,7 +822,7 @@ class whitebit extends whitebit$1 {
|
|
|
822
822
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
823
823
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
824
824
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
825
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
825
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
826
826
|
*/
|
|
827
827
|
await this.loadMarkets();
|
|
828
828
|
const market = this.market(symbol);
|
|
@@ -864,7 +864,7 @@ class whitebit extends whitebit$1 {
|
|
|
864
864
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
865
865
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
866
866
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
867
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
867
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
868
868
|
*/
|
|
869
869
|
await this.loadMarkets();
|
|
870
870
|
const market = this.market(symbol);
|
|
@@ -895,7 +895,7 @@ class whitebit extends whitebit$1 {
|
|
|
895
895
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
896
896
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
897
897
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
898
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
898
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
899
899
|
*/
|
|
900
900
|
await this.loadMarkets();
|
|
901
901
|
let market = undefined;
|
|
@@ -1114,7 +1114,7 @@ class whitebit extends whitebit$1 {
|
|
|
1114
1114
|
* @name whitebit#fetchStatus
|
|
1115
1115
|
* @description the latest known information on the availability of the exchange API
|
|
1116
1116
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1117
|
-
* @returns {object} a [status structure]{@link https://
|
|
1117
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
1118
1118
|
*/
|
|
1119
1119
|
const response = await this.v4PublicGetPing(params);
|
|
1120
1120
|
//
|
|
@@ -1156,9 +1156,9 @@ class whitebit extends whitebit$1 {
|
|
|
1156
1156
|
* @param {string} type 'market' or 'limit'
|
|
1157
1157
|
* @param {string} side 'buy' or 'sell'
|
|
1158
1158
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1159
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1159
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1160
1160
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1161
|
-
* @returns {object} an [order structure]{@link https://
|
|
1161
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1162
1162
|
*/
|
|
1163
1163
|
await this.loadMarkets();
|
|
1164
1164
|
const market = this.market(symbol);
|
|
@@ -1237,7 +1237,7 @@ class whitebit extends whitebit$1 {
|
|
|
1237
1237
|
* @param {string} id order id
|
|
1238
1238
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1239
1239
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1240
|
-
* @returns {object} An [order structure]{@link https://
|
|
1240
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1241
1241
|
*/
|
|
1242
1242
|
if (symbol === undefined) {
|
|
1243
1243
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1278,7 +1278,7 @@ class whitebit extends whitebit$1 {
|
|
|
1278
1278
|
* @name whitebit#fetchBalance
|
|
1279
1279
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1280
1280
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1281
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1281
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1282
1282
|
*/
|
|
1283
1283
|
await this.loadMarkets();
|
|
1284
1284
|
const [marketType, query] = this.handleMarketTypeAndParams('fetchBalance', undefined, params);
|
|
@@ -1332,7 +1332,7 @@ class whitebit extends whitebit$1 {
|
|
|
1332
1332
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1333
1333
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1334
1334
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1335
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1335
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1336
1336
|
*/
|
|
1337
1337
|
if (symbol === undefined) {
|
|
1338
1338
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -1377,7 +1377,7 @@ class whitebit extends whitebit$1 {
|
|
|
1377
1377
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1378
1378
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1379
1379
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1380
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1380
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1381
1381
|
*/
|
|
1382
1382
|
await this.loadMarkets();
|
|
1383
1383
|
const request = {};
|
|
@@ -1538,7 +1538,7 @@ class whitebit extends whitebit$1 {
|
|
|
1538
1538
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1539
1539
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1540
1540
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1541
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1541
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1542
1542
|
*/
|
|
1543
1543
|
await this.loadMarkets();
|
|
1544
1544
|
const request = {
|
|
@@ -1582,7 +1582,7 @@ class whitebit extends whitebit$1 {
|
|
|
1582
1582
|
* @description fetch the deposit address for a currency associated with this account
|
|
1583
1583
|
* @param {string} code unified currency code
|
|
1584
1584
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1585
|
-
* @returns {object} an [address structure]{@link https://
|
|
1585
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1586
1586
|
*/
|
|
1587
1587
|
await this.loadMarkets();
|
|
1588
1588
|
const currency = this.currency(code);
|
|
@@ -1683,7 +1683,7 @@ class whitebit extends whitebit$1 {
|
|
|
1683
1683
|
* @param {string} fromAccount account to transfer from - main, spot, collateral
|
|
1684
1684
|
* @param {string} toAccount account to transfer to - main, spot, collateral
|
|
1685
1685
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1686
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1686
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1687
1687
|
*/
|
|
1688
1688
|
await this.loadMarkets();
|
|
1689
1689
|
const currency = this.currency(code);
|
|
@@ -1729,7 +1729,7 @@ class whitebit extends whitebit$1 {
|
|
|
1729
1729
|
* @param {string} address the address to withdraw to
|
|
1730
1730
|
* @param {string} tag
|
|
1731
1731
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1732
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1732
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1733
1733
|
*/
|
|
1734
1734
|
await this.loadMarkets();
|
|
1735
1735
|
const currency = this.currency(code); // check if it has canDeposit
|
|
@@ -1852,7 +1852,7 @@ class whitebit extends whitebit$1 {
|
|
|
1852
1852
|
* @param {string} id deposit id
|
|
1853
1853
|
* @param {string} code not used by whitebit fetchDeposit ()
|
|
1854
1854
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1855
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1855
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1856
1856
|
*/
|
|
1857
1857
|
await this.loadMarkets();
|
|
1858
1858
|
let currency = undefined;
|
|
@@ -1917,7 +1917,7 @@ class whitebit extends whitebit$1 {
|
|
|
1917
1917
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1918
1918
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1919
1919
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1920
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1920
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1921
1921
|
*/
|
|
1922
1922
|
await this.loadMarkets();
|
|
1923
1923
|
let currency = undefined;
|
|
@@ -1985,7 +1985,7 @@ class whitebit extends whitebit$1 {
|
|
|
1985
1985
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
1986
1986
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
1987
1987
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
1988
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://
|
|
1988
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-interest-structure}
|
|
1989
1989
|
*/
|
|
1990
1990
|
await this.loadMarkets();
|
|
1991
1991
|
const request = {};
|
|
@@ -2062,7 +2062,7 @@ class whitebit extends whitebit$1 {
|
|
|
2062
2062
|
* @description fetch the current funding rate
|
|
2063
2063
|
* @param {string} symbol unified market symbol
|
|
2064
2064
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
2065
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
2065
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
2066
2066
|
*/
|
|
2067
2067
|
await this.loadMarkets();
|
|
2068
2068
|
symbol = this.symbol(symbol);
|
|
@@ -2077,7 +2077,7 @@ class whitebit extends whitebit$1 {
|
|
|
2077
2077
|
* @description fetch the funding rate for multiple markets
|
|
2078
2078
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2079
2079
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
2080
|
-
* @returns {object} a dictionary of [funding rates structures]{@link https://
|
|
2080
|
+
* @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
|
|
2081
2081
|
*/
|
|
2082
2082
|
await this.loadMarkets();
|
|
2083
2083
|
symbols = this.marketSymbols(symbols);
|
package/dist/cjs/src/woo.js
CHANGED
|
@@ -206,9 +206,15 @@ class woo extends woo$1 {
|
|
|
206
206
|
'buypower': 1,
|
|
207
207
|
'referrals': 60,
|
|
208
208
|
'referral_rewards': 60,
|
|
209
|
+
'convert/exchangeInfo': 1,
|
|
210
|
+
'convert/assetInfo': 1,
|
|
211
|
+
'convert/rfq': 60,
|
|
212
|
+
'convert/trade': 1,
|
|
213
|
+
'convert/trades': 1,
|
|
209
214
|
},
|
|
210
215
|
'post': {
|
|
211
216
|
'algo/order': 5,
|
|
217
|
+
'convert/rft': 60,
|
|
212
218
|
},
|
|
213
219
|
'put': {
|
|
214
220
|
'order/{oid}': 2,
|
|
@@ -408,7 +414,7 @@ class woo extends woo$1 {
|
|
|
408
414
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
409
415
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
410
416
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
411
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
417
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
412
418
|
*/
|
|
413
419
|
if (symbol === undefined) {
|
|
414
420
|
throw new errors.ArgumentsRequired(this.id + ' fetchTrades() requires a symbol argument');
|
|
@@ -535,7 +541,7 @@ class woo extends woo$1 {
|
|
|
535
541
|
* @description fetch the trading fees for multiple markets
|
|
536
542
|
* @see https://docs.woo.org/#get-account-information-new
|
|
537
543
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
538
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
544
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
539
545
|
*/
|
|
540
546
|
await this.loadMarkets();
|
|
541
547
|
const response = await this.v3PrivateGetAccountinfo(params);
|
|
@@ -731,7 +737,7 @@ class woo extends woo$1 {
|
|
|
731
737
|
* @param {string} type 'market' or 'limit'
|
|
732
738
|
* @param {string} side 'buy' or 'sell'
|
|
733
739
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
734
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
740
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
735
741
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
736
742
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
737
743
|
* @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)
|
|
@@ -739,7 +745,7 @@ class woo extends woo$1 {
|
|
|
739
745
|
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
|
|
740
746
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
741
747
|
* @param {float} [params.algoType] 'STOP'or 'TRAILING_STOP' or 'OCO' or 'CLOSE_POSITION'
|
|
742
|
-
* @returns {object} an [order structure]{@link https://
|
|
748
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
743
749
|
*/
|
|
744
750
|
const reduceOnly = this.safeValue2(params, 'reduceOnly', 'reduce_only');
|
|
745
751
|
const orderType = type.toUpperCase();
|
|
@@ -909,12 +915,12 @@ class woo extends woo$1 {
|
|
|
909
915
|
* @param {string} type 'market' or 'limit'
|
|
910
916
|
* @param {string} side 'buy' or 'sell'
|
|
911
917
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
912
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
918
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
913
919
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
914
920
|
* @param {float} [params.triggerPrice] The price a trigger order is triggered at
|
|
915
921
|
* @param {float} [params.stopLossPrice] price to trigger stop-loss orders
|
|
916
922
|
* @param {float} [params.takeProfitPrice] price to trigger take-profit orders
|
|
917
|
-
* @returns {object} an [order structure]{@link https://
|
|
923
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
918
924
|
*/
|
|
919
925
|
await this.loadMarkets();
|
|
920
926
|
const market = this.market(symbol);
|
|
@@ -985,7 +991,7 @@ class woo extends woo$1 {
|
|
|
985
991
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
986
992
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
987
993
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
988
|
-
* @returns {object} An [order structure]{@link https://
|
|
994
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
989
995
|
*/
|
|
990
996
|
const stop = this.safeValue(params, 'stop', false);
|
|
991
997
|
params = this.omit(params, 'stop');
|
|
@@ -1042,7 +1048,7 @@ class woo extends woo$1 {
|
|
|
1042
1048
|
* @param {string} symbol unified market symbol
|
|
1043
1049
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1044
1050
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1045
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
1051
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1046
1052
|
*/
|
|
1047
1053
|
await this.loadMarkets();
|
|
1048
1054
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1074,7 +1080,7 @@ class woo extends woo$1 {
|
|
|
1074
1080
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1075
1081
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1076
1082
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1077
|
-
* @returns {object} An [order structure]{@link https://
|
|
1083
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1078
1084
|
*/
|
|
1079
1085
|
await this.loadMarkets();
|
|
1080
1086
|
const market = (symbol !== undefined) ? this.market(symbol) : undefined;
|
|
@@ -1148,7 +1154,7 @@ class woo extends woo$1 {
|
|
|
1148
1154
|
* @param {boolean} [params.stop] whether the order is a stop/algo order
|
|
1149
1155
|
* @param {boolean} [params.isTriggered] whether the order has been triggered (false by default)
|
|
1150
1156
|
* @param {string} [params.side] 'buy' or 'sell'
|
|
1151
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1157
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1152
1158
|
*/
|
|
1153
1159
|
await this.loadMarkets();
|
|
1154
1160
|
const request = {};
|
|
@@ -1356,7 +1362,7 @@ class woo extends woo$1 {
|
|
|
1356
1362
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1357
1363
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1358
1364
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1359
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1365
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1360
1366
|
*/
|
|
1361
1367
|
await this.loadMarkets();
|
|
1362
1368
|
const market = this.market(symbol);
|
|
@@ -1463,7 +1469,7 @@ class woo extends woo$1 {
|
|
|
1463
1469
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1464
1470
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1465
1471
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1466
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1472
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1467
1473
|
*/
|
|
1468
1474
|
await this.loadMarkets();
|
|
1469
1475
|
let market = undefined;
|
|
@@ -1504,7 +1510,7 @@ class woo extends woo$1 {
|
|
|
1504
1510
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1505
1511
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1506
1512
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1507
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1513
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1508
1514
|
*/
|
|
1509
1515
|
await this.loadMarkets();
|
|
1510
1516
|
const request = {};
|
|
@@ -1549,7 +1555,7 @@ class woo extends woo$1 {
|
|
|
1549
1555
|
* @name woo#fetchAccounts
|
|
1550
1556
|
* @description fetch all the accounts associated with a profile
|
|
1551
1557
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1552
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
1558
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
1553
1559
|
*/
|
|
1554
1560
|
const response = await this.v1PrivateGetSubAccountAssets(params);
|
|
1555
1561
|
//
|
|
@@ -1595,7 +1601,7 @@ class woo extends woo$1 {
|
|
|
1595
1601
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1596
1602
|
* @see https://docs.woo.org/#get-current-holding-get-balance-new
|
|
1597
1603
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1598
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1604
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1599
1605
|
*/
|
|
1600
1606
|
await this.loadMarkets();
|
|
1601
1607
|
const response = await this.v3PrivateGetBalances(params);
|
|
@@ -1647,7 +1653,7 @@ class woo extends woo$1 {
|
|
|
1647
1653
|
* @description fetch the deposit address for a currency associated with this account
|
|
1648
1654
|
* @param {string} code unified currency code
|
|
1649
1655
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1650
|
-
* @returns {object} an [address structure]{@link https://
|
|
1656
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1651
1657
|
*/
|
|
1652
1658
|
// this method is TODO because of networks unification
|
|
1653
1659
|
await this.loadMarkets();
|
|
@@ -1741,7 +1747,7 @@ class woo extends woo$1 {
|
|
|
1741
1747
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1742
1748
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
1743
1749
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1744
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
1750
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
1745
1751
|
*/
|
|
1746
1752
|
const [currency, rows] = await this.getAssetHistoryRows(code, since, limit, params);
|
|
1747
1753
|
return this.parseLedger(rows, currency, since, limit, params);
|
|
@@ -1805,7 +1811,7 @@ class woo extends woo$1 {
|
|
|
1805
1811
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1806
1812
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1807
1813
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1808
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1814
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1809
1815
|
*/
|
|
1810
1816
|
const request = {
|
|
1811
1817
|
'token_side': 'DEPOSIT',
|
|
@@ -1821,7 +1827,7 @@ class woo extends woo$1 {
|
|
|
1821
1827
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1822
1828
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1823
1829
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1824
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1830
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1825
1831
|
*/
|
|
1826
1832
|
const request = {
|
|
1827
1833
|
'token_side': 'WITHDRAW',
|
|
@@ -1837,7 +1843,7 @@ class woo extends woo$1 {
|
|
|
1837
1843
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1838
1844
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1839
1845
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1840
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1846
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1841
1847
|
*/
|
|
1842
1848
|
const request = {
|
|
1843
1849
|
'type': 'BALANCE',
|
|
@@ -1910,7 +1916,7 @@ class woo extends woo$1 {
|
|
|
1910
1916
|
* @param {string} fromAccount account to transfer from
|
|
1911
1917
|
* @param {string} toAccount account to transfer to
|
|
1912
1918
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1913
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1919
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1914
1920
|
*/
|
|
1915
1921
|
await this.loadMarkets();
|
|
1916
1922
|
const currency = this.currency(code);
|
|
@@ -1946,7 +1952,7 @@ class woo extends woo$1 {
|
|
|
1946
1952
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1947
1953
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1948
1954
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
1949
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
1955
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1950
1956
|
*/
|
|
1951
1957
|
const request = {
|
|
1952
1958
|
'type': 'COLLATERAL',
|
|
@@ -2037,7 +2043,7 @@ class woo extends woo$1 {
|
|
|
2037
2043
|
* @param {string} address the address to withdraw to
|
|
2038
2044
|
* @param {string} tag
|
|
2039
2045
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
2040
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2046
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2041
2047
|
*/
|
|
2042
2048
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2043
2049
|
await this.loadMarkets();
|
|
@@ -2079,7 +2085,7 @@ class woo extends woo$1 {
|
|
|
2079
2085
|
* @param {float} amount the amount to repay
|
|
2080
2086
|
* @param {string} symbol not used by woo.repayMargin ()
|
|
2081
2087
|
* @param {object} [params] extra parameters specific to the woo api endpoint
|
|
2082
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
2088
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
2083
2089
|
*/
|
|
2084
2090
|
await this.loadMarkets();
|
|
2085
2091
|
let market = undefined;
|