ccxt 4.1.55 → 4.1.57
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/.git-templates/hooks/pre-push +2 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +6 -6
- package/build.sh +30 -8
- package/dist/ccxt.browser.js +5592 -4907
- package/dist/ccxt.browser.min.js +13 -13
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +17 -13
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +35 -29
- package/dist/cjs/src/base/Exchange.js +39 -26
- package/dist/cjs/src/base/Precise.js +1 -3
- package/dist/cjs/src/bigone.js +24 -20
- package/dist/cjs/src/binance.js +97 -76
- package/dist/cjs/src/bingx.js +63 -44
- package/dist/cjs/src/bit2c.js +18 -15
- package/dist/cjs/src/bitbank.js +17 -15
- package/dist/cjs/src/bitbns.js +28 -18
- package/dist/cjs/src/bitfinex.js +23 -21
- package/dist/cjs/src/bitfinex2.js +32 -28
- package/dist/cjs/src/bitflyer.js +28 -20
- package/dist/cjs/src/bitforex.js +25 -18
- package/dist/cjs/src/bitget.js +184 -147
- package/dist/cjs/src/bithumb.js +23 -16
- package/dist/cjs/src/bitmart.js +129 -94
- package/dist/cjs/src/bitmex.js +104 -64
- package/dist/cjs/src/bitopro.js +38 -26
- package/dist/cjs/src/bitpanda.js +24 -23
- package/dist/cjs/src/bitrue.js +33 -24
- package/dist/cjs/src/bitso.js +24 -23
- package/dist/cjs/src/bitstamp.js +24 -23
- package/dist/cjs/src/bittrex.js +30 -29
- package/dist/cjs/src/bitvavo.js +38 -30
- package/dist/cjs/src/bl3p.js +11 -10
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +18 -17
- package/dist/cjs/src/btcbox.js +13 -12
- package/dist/cjs/src/btcmarkets.js +20 -19
- package/dist/cjs/src/btcturk.js +14 -13
- package/dist/cjs/src/bybit.js +84 -54
- package/dist/cjs/src/cex.js +16 -14
- package/dist/cjs/src/coinbase.js +29 -27
- package/dist/cjs/src/coinbasepro.js +27 -25
- package/dist/cjs/src/coincheck.js +15 -14
- package/dist/cjs/src/coinex.js +101 -78
- package/dist/cjs/src/coinlist.js +28 -27
- package/dist/cjs/src/coinmate.js +20 -17
- package/dist/cjs/src/coinone.js +21 -16
- package/dist/cjs/src/coinsph.js +37 -28
- package/dist/cjs/src/coinspot.js +12 -11
- package/dist/cjs/src/cryptocom.js +40 -202
- package/dist/cjs/src/currencycom.js +32 -25
- package/dist/cjs/src/delta.js +34 -28
- package/dist/cjs/src/deribit.js +39 -36
- package/dist/cjs/src/digifinex.js +64 -44
- package/dist/cjs/src/exmo.js +29 -27
- package/dist/cjs/src/gate.js +67 -53
- package/dist/cjs/src/gemini.js +23 -20
- package/dist/cjs/src/hitbtc.js +65 -56
- package/dist/cjs/src/hollaex.js +30 -27
- package/dist/cjs/src/htx.js +135 -143
- package/dist/cjs/src/huobijp.js +22 -20
- package/dist/cjs/src/idex.js +22 -21
- package/dist/cjs/src/independentreserve.js +15 -14
- package/dist/cjs/src/indodax.js +30 -26
- package/dist/cjs/src/kraken.js +29 -27
- package/dist/cjs/src/krakenfutures.js +29 -22
- package/dist/cjs/src/kucoin.js +48 -43
- package/dist/cjs/src/kucoinfutures.js +33 -28
- package/dist/cjs/src/kuna.js +25 -24
- package/dist/cjs/src/latoken.js +24 -22
- package/dist/cjs/src/lbank.js +45 -30
- package/dist/cjs/src/luno.js +22 -19
- package/dist/cjs/src/lykke.js +19 -17
- package/dist/cjs/src/mercado.js +30 -19
- package/dist/cjs/src/mexc.js +60 -49
- package/dist/cjs/src/ndax.js +23 -22
- package/dist/cjs/src/novadax.js +23 -22
- package/dist/cjs/src/oceanex.js +22 -19
- package/dist/cjs/src/okcoin.js +29 -23
- package/dist/cjs/src/okx.js +92 -84
- package/dist/cjs/src/p2b.js +80 -83
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +63 -40
- package/dist/cjs/src/poloniex.js +22 -22
- package/dist/cjs/src/poloniexfutures.js +23 -19
- 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/bingx.js +1 -1
- 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 +7 -7
- package/dist/cjs/src/pro/bitmart.js +7 -5
- 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 +6 -4
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +11 -7
- package/dist/cjs/src/pro/blockchaincom.js +8 -8
- package/dist/cjs/src/pro/bybit.js +7 -7
- package/dist/cjs/src/pro/cex.js +13 -9
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +11 -10
- package/dist/cjs/src/pro/coinex.js +7 -9
- package/dist/cjs/src/pro/cryptocom.js +9 -9
- 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 +12 -14
- 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 +263 -4
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.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 +10 -10
- package/dist/cjs/src/pro/krakenfutures.js +41 -17
- package/dist/cjs/src/pro/kucoin.js +7 -7
- package/dist/cjs/src/pro/kucoinfutures.js +8 -6
- 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 +12 -12
- 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 +8 -8
- package/dist/cjs/src/pro/whitebit.js +12 -8
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +28 -23
- package/dist/cjs/src/tidex.js +16 -15
- package/dist/cjs/src/timex.js +19 -18
- package/dist/cjs/src/tokocrypto.js +27 -22
- package/dist/cjs/src/upbit.js +19 -19
- package/dist/cjs/src/wavesexchange.js +22 -19
- package/dist/cjs/src/wazirx.js +24 -17
- package/dist/cjs/src/whitebit.js +33 -27
- package/dist/cjs/src/woo.js +44 -34
- package/dist/cjs/src/yobit.js +25 -20
- package/dist/cjs/src/zaif.js +9 -9
- package/dist/cjs/src/zonda.js +18 -17
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitbank.d.ts +1 -0
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/cryptocom.d.ts +0 -20
- package/js/src/abstract/htx.d.ts +3 -0
- package/js/src/abstract/huobi.d.ts +3 -0
- package/js/src/abstract/huobipro.d.ts +3 -0
- package/js/src/abstract/okex.d.ts +3 -1
- package/js/src/abstract/okex5.d.ts +3 -1
- package/js/src/abstract/okx.d.ts +3 -1
- package/js/src/ace.js +18 -14
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +35 -29
- package/js/src/base/Exchange.d.ts +37 -34
- package/js/src/base/Exchange.js +39 -26
- package/js/src/base/Precise.d.ts +4 -4
- package/js/src/base/Precise.js +1 -3
- package/js/src/base/functions/type.d.ts +25 -25
- package/js/src/base/types.d.ts +21 -14
- package/js/src/bigone.js +25 -21
- package/js/src/binance.d.ts +2 -2
- package/js/src/binance.js +97 -76
- package/js/src/bingx.js +63 -44
- package/js/src/bit2c.js +19 -16
- package/js/src/bitbank.js +17 -15
- package/js/src/bitbns.js +28 -18
- package/js/src/bitfinex.js +23 -21
- package/js/src/bitfinex2.js +32 -28
- package/js/src/bitflyer.js +28 -20
- package/js/src/bitforex.js +26 -19
- package/js/src/bitget.d.ts +25 -3
- package/js/src/bitget.js +184 -147
- package/js/src/bithumb.js +23 -16
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +129 -94
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitmex.js +104 -64
- package/js/src/bitopro.js +38 -26
- package/js/src/bitpanda.js +24 -23
- package/js/src/bitrue.js +33 -24
- package/js/src/bitso.js +24 -23
- package/js/src/bitstamp.d.ts +2 -2
- package/js/src/bitstamp.js +24 -23
- package/js/src/bittrex.js +30 -29
- package/js/src/bitvavo.js +38 -30
- package/js/src/bl3p.js +11 -10
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +18 -17
- package/js/src/btcbox.js +13 -12
- package/js/src/btcmarkets.js +20 -19
- package/js/src/btcturk.js +14 -13
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +84 -54
- package/js/src/cex.js +16 -14
- package/js/src/coinbase.js +29 -27
- package/js/src/coinbasepro.js +27 -25
- package/js/src/coincheck.js +15 -14
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +101 -78
- package/js/src/coinlist.js +28 -27
- package/js/src/coinmate.js +21 -18
- package/js/src/coinone.js +21 -16
- package/js/src/coinsph.js +37 -28
- package/js/src/coinspot.js +12 -11
- package/js/src/cryptocom.d.ts +0 -23
- package/js/src/cryptocom.js +40 -202
- package/js/src/currencycom.js +32 -25
- package/js/src/delta.js +35 -29
- package/js/src/deribit.js +39 -36
- package/js/src/digifinex.d.ts +2 -2
- package/js/src/digifinex.js +65 -45
- package/js/src/exmo.js +29 -27
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +67 -53
- package/js/src/gemini.js +23 -20
- package/js/src/hitbtc.d.ts +1 -0
- package/js/src/hitbtc.js +65 -56
- package/js/src/hollaex.js +30 -27
- package/js/src/htx.d.ts +11 -3
- package/js/src/htx.js +135 -143
- package/js/src/huobijp.js +23 -21
- package/js/src/idex.js +22 -21
- package/js/src/independentreserve.js +15 -14
- package/js/src/indodax.js +30 -26
- package/js/src/kraken.js +29 -27
- package/js/src/krakenfutures.js +29 -22
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +48 -43
- package/js/src/kucoinfutures.js +33 -28
- package/js/src/kuna.js +25 -24
- package/js/src/latoken.js +25 -23
- package/js/src/lbank.js +46 -31
- package/js/src/luno.js +22 -19
- package/js/src/lykke.js +19 -17
- package/js/src/mercado.js +30 -19
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +60 -49
- package/js/src/ndax.js +23 -22
- package/js/src/novadax.js +23 -22
- package/js/src/oceanex.js +22 -19
- package/js/src/okcoin.js +29 -23
- package/js/src/okx.d.ts +2 -2
- package/js/src/okx.js +92 -84
- package/js/src/p2b.d.ts +8 -7
- package/js/src/p2b.js +80 -82
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +63 -40
- package/js/src/poloniex.js +22 -22
- package/js/src/poloniexfutures.js +23 -19
- 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/bingx.js +1 -1
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.d.ts +1 -1
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +7 -7
- package/js/src/pro/bitmart.js +7 -5
- 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 +7 -5
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +12 -8
- package/js/src/pro/blockchaincom.js +8 -8
- package/js/src/pro/bybit.js +7 -7
- package/js/src/pro/cex.js +14 -10
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +12 -11
- package/js/src/pro/coinex.js +7 -9
- package/js/src/pro/cryptocom.js +9 -9
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +12 -14
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.d.ts +8 -1
- package/js/src/pro/hitbtc.js +264 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.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 +10 -10
- package/js/src/pro/krakenfutures.d.ts +1 -0
- package/js/src/pro/krakenfutures.js +42 -18
- package/js/src/pro/kucoin.js +7 -7
- package/js/src/pro/kucoinfutures.js +8 -6
- 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.js +12 -12
- 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 +8 -8
- package/js/src/pro/whitebit.js +13 -9
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +29 -24
- package/js/src/tidex.js +16 -15
- package/js/src/timex.js +19 -18
- package/js/src/tokocrypto.js +28 -23
- package/js/src/upbit.js +19 -19
- package/js/src/wavesexchange.js +23 -20
- package/js/src/wazirx.js +25 -18
- package/js/src/whitebit.js +33 -27
- package/js/src/woo.js +45 -35
- package/js/src/yobit.js +25 -20
- package/js/src/zaif.js +9 -9
- package/js/src/zonda.js +18 -17
- package/package.json +2 -2
- package/js/src/bitstamp1.d.ts +0 -28
- package/js/src/bitstamp1.js +0 -430
- package/js/src/lbank2.d.ts +0 -90
- package/js/src/lbank2.js +0 -2779
package/dist/cjs/src/tidex.js
CHANGED
|
@@ -32,17 +32,18 @@ class tidex extends tidex$1 {
|
|
|
32
32
|
'createOrder': true,
|
|
33
33
|
'createReduceOnlyOrder': false,
|
|
34
34
|
'fetchBalance': true,
|
|
35
|
-
'fetchBorrowRate': false,
|
|
36
35
|
'fetchBorrowRateHistories': false,
|
|
37
36
|
'fetchBorrowRateHistory': false,
|
|
38
|
-
'
|
|
39
|
-
'
|
|
37
|
+
'fetchCrossBorrowRate': false,
|
|
38
|
+
'fetchCrossBorrowRates': false,
|
|
40
39
|
'fetchCurrencies': true,
|
|
41
40
|
'fetchFundingHistory': false,
|
|
42
41
|
'fetchFundingRate': false,
|
|
43
42
|
'fetchFundingRateHistory': false,
|
|
44
43
|
'fetchFundingRates': false,
|
|
45
44
|
'fetchIndexOHLCV': false,
|
|
45
|
+
'fetchIsolatedBorrowRate': false,
|
|
46
|
+
'fetchIsolatedBorrowRates': false,
|
|
46
47
|
'fetchLeverage': false,
|
|
47
48
|
'fetchLeverageTiers': false,
|
|
48
49
|
'fetchMarginMode': false,
|
|
@@ -367,7 +368,7 @@ class tidex extends tidex$1 {
|
|
|
367
368
|
* @name tidex#fetchBalance
|
|
368
369
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
369
370
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
370
|
-
* @returns {object} a [balance structure]{@link https://
|
|
371
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
371
372
|
*/
|
|
372
373
|
await this.loadMarkets();
|
|
373
374
|
const response = await this.privatePostGetInfoExt(params);
|
|
@@ -407,7 +408,7 @@ class tidex extends tidex$1 {
|
|
|
407
408
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
408
409
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
409
410
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
410
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
411
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
411
412
|
*/
|
|
412
413
|
await this.loadMarkets();
|
|
413
414
|
const market = this.market(symbol);
|
|
@@ -433,7 +434,7 @@ class tidex extends tidex$1 {
|
|
|
433
434
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
434
435
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
435
436
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
436
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
437
|
+
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
437
438
|
*/
|
|
438
439
|
await this.loadMarkets();
|
|
439
440
|
let ids = undefined;
|
|
@@ -512,7 +513,7 @@ class tidex extends tidex$1 {
|
|
|
512
513
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
513
514
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
514
515
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
515
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
516
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
516
517
|
*/
|
|
517
518
|
await this.loadMarkets();
|
|
518
519
|
symbols = this.marketSymbols(symbols);
|
|
@@ -551,7 +552,7 @@ class tidex extends tidex$1 {
|
|
|
551
552
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
552
553
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
553
554
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
554
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
555
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
555
556
|
*/
|
|
556
557
|
const tickers = await this.fetchTickers([symbol], params);
|
|
557
558
|
return tickers[symbol];
|
|
@@ -621,7 +622,7 @@ class tidex extends tidex$1 {
|
|
|
621
622
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
622
623
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
623
624
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
624
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
625
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
625
626
|
*/
|
|
626
627
|
await this.loadMarkets();
|
|
627
628
|
const market = this.market(symbol);
|
|
@@ -651,7 +652,7 @@ class tidex extends tidex$1 {
|
|
|
651
652
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
652
653
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
653
654
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
654
|
-
* @returns {object} an [order structure]{@link https://
|
|
655
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
655
656
|
*/
|
|
656
657
|
if (type === 'market') {
|
|
657
658
|
throw new errors.ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -712,7 +713,7 @@ class tidex extends tidex$1 {
|
|
|
712
713
|
* @param {string} id order id
|
|
713
714
|
* @param {string} symbol not used by tidex cancelOrder ()
|
|
714
715
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
715
|
-
* @returns {object} An [order structure]{@link https://
|
|
716
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
716
717
|
*/
|
|
717
718
|
await this.loadMarkets();
|
|
718
719
|
const request = {
|
|
@@ -778,7 +779,7 @@ class tidex extends tidex$1 {
|
|
|
778
779
|
* @description fetches information on an order made by the user
|
|
779
780
|
* @param {string} symbol not used by tidex fetchOrder
|
|
780
781
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
781
|
-
* @returns {object} An [order structure]{@link https://
|
|
782
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
782
783
|
*/
|
|
783
784
|
await this.loadMarkets();
|
|
784
785
|
const request = {
|
|
@@ -799,7 +800,7 @@ class tidex extends tidex$1 {
|
|
|
799
800
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
800
801
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
801
802
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
802
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
803
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
803
804
|
*/
|
|
804
805
|
await this.loadMarkets();
|
|
805
806
|
const request = {};
|
|
@@ -843,7 +844,7 @@ class tidex extends tidex$1 {
|
|
|
843
844
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
844
845
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
845
846
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
846
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
847
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
847
848
|
*/
|
|
848
849
|
await this.loadMarkets();
|
|
849
850
|
let market = undefined;
|
|
@@ -882,7 +883,7 @@ class tidex extends tidex$1 {
|
|
|
882
883
|
* @param {string} address the address to withdraw to
|
|
883
884
|
* @param {string} tag
|
|
884
885
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
885
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
886
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
886
887
|
*/
|
|
887
888
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
888
889
|
this.checkAddress(address);
|
package/dist/cjs/src/timex.js
CHANGED
|
@@ -34,12 +34,11 @@ class timex extends timex$1 {
|
|
|
34
34
|
'createStopOrder': false,
|
|
35
35
|
'editOrder': true,
|
|
36
36
|
'fetchBalance': true,
|
|
37
|
-
'fetchBorrowRate': false,
|
|
38
37
|
'fetchBorrowRateHistories': false,
|
|
39
38
|
'fetchBorrowRateHistory': false,
|
|
40
|
-
'fetchBorrowRates': false,
|
|
41
|
-
'fetchBorrowRatesPerSymbol': false,
|
|
42
39
|
'fetchClosedOrders': true,
|
|
40
|
+
'fetchCrossBorrowRate': false,
|
|
41
|
+
'fetchCrossBorrowRates': false,
|
|
43
42
|
'fetchCurrencies': true,
|
|
44
43
|
'fetchDeposit': false,
|
|
45
44
|
'fetchDeposits': true,
|
|
@@ -48,6 +47,8 @@ class timex extends timex$1 {
|
|
|
48
47
|
'fetchFundingRateHistory': false,
|
|
49
48
|
'fetchFundingRates': false,
|
|
50
49
|
'fetchIndexOHLCV': false,
|
|
50
|
+
'fetchIsolatedBorrowRate': false,
|
|
51
|
+
'fetchIsolatedBorrowRates': false,
|
|
51
52
|
'fetchLeverage': false,
|
|
52
53
|
'fetchLeverageTiers': false,
|
|
53
54
|
'fetchMarginMode': false,
|
|
@@ -343,7 +344,7 @@ class timex extends timex$1 {
|
|
|
343
344
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
344
345
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
345
346
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
346
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
347
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
347
348
|
*/
|
|
348
349
|
const address = this.safeString(params, 'address');
|
|
349
350
|
params = this.omit(params, 'address');
|
|
@@ -378,7 +379,7 @@ class timex extends timex$1 {
|
|
|
378
379
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
379
380
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
380
381
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
381
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
382
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
382
383
|
*/
|
|
383
384
|
const address = this.safeString(params, 'address');
|
|
384
385
|
params = this.omit(params, 'address');
|
|
@@ -460,7 +461,7 @@ class timex extends timex$1 {
|
|
|
460
461
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
461
462
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
462
463
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
463
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
464
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
464
465
|
*/
|
|
465
466
|
await this.loadMarkets();
|
|
466
467
|
const period = this.safeString(this.options['fetchTickers'], 'period', '1d');
|
|
@@ -494,7 +495,7 @@ class timex extends timex$1 {
|
|
|
494
495
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
495
496
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
496
497
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
497
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
498
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
498
499
|
*/
|
|
499
500
|
await this.loadMarkets();
|
|
500
501
|
const market = this.market(symbol);
|
|
@@ -532,7 +533,7 @@ class timex extends timex$1 {
|
|
|
532
533
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
533
534
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
534
535
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
535
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
536
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
536
537
|
*/
|
|
537
538
|
await this.loadMarkets();
|
|
538
539
|
const market = this.market(symbol);
|
|
@@ -579,7 +580,7 @@ class timex extends timex$1 {
|
|
|
579
580
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
580
581
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
581
582
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
582
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
583
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
583
584
|
*/
|
|
584
585
|
await this.loadMarkets();
|
|
585
586
|
const market = this.market(symbol);
|
|
@@ -688,7 +689,7 @@ class timex extends timex$1 {
|
|
|
688
689
|
* @name timex#fetchBalance
|
|
689
690
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
690
691
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
691
|
-
* @returns {object} a [balance structure]{@link https://
|
|
692
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
692
693
|
*/
|
|
693
694
|
await this.loadMarkets();
|
|
694
695
|
const response = await this.tradingGetBalances(params);
|
|
@@ -714,7 +715,7 @@ class timex extends timex$1 {
|
|
|
714
715
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
715
716
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
716
717
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
717
|
-
* @returns {object} an [order structure]{@link https://
|
|
718
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
718
719
|
*/
|
|
719
720
|
await this.loadMarkets();
|
|
720
721
|
const market = this.market(symbol);
|
|
@@ -839,7 +840,7 @@ class timex extends timex$1 {
|
|
|
839
840
|
* @param {string} id order id
|
|
840
841
|
* @param {string} symbol not used by timex cancelOrder ()
|
|
841
842
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
842
|
-
* @returns {object} An [order structure]{@link https://
|
|
843
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
843
844
|
*/
|
|
844
845
|
await this.loadMarkets();
|
|
845
846
|
return await this.cancelOrders([id], symbol, params);
|
|
@@ -852,7 +853,7 @@ class timex extends timex$1 {
|
|
|
852
853
|
* @param {string[]} ids order ids
|
|
853
854
|
* @param {string} symbol unified market symbol, default is undefined
|
|
854
855
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
855
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
856
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
856
857
|
*/
|
|
857
858
|
await this.loadMarkets();
|
|
858
859
|
const request = {
|
|
@@ -892,7 +893,7 @@ class timex extends timex$1 {
|
|
|
892
893
|
* @description fetches information on an order made by the user
|
|
893
894
|
* @param {string} symbol not used by timex fetchOrder
|
|
894
895
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
895
|
-
* @returns {object} An [order structure]{@link https://
|
|
896
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
896
897
|
*/
|
|
897
898
|
await this.loadMarkets();
|
|
898
899
|
const request = {
|
|
@@ -945,7 +946,7 @@ class timex extends timex$1 {
|
|
|
945
946
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
946
947
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
947
948
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
948
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
949
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
949
950
|
*/
|
|
950
951
|
await this.loadMarkets();
|
|
951
952
|
const options = this.safeValue(this.options, 'fetchOpenOrders', {});
|
|
@@ -999,7 +1000,7 @@ class timex extends timex$1 {
|
|
|
999
1000
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1000
1001
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1001
1002
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
1002
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1003
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1003
1004
|
*/
|
|
1004
1005
|
await this.loadMarkets();
|
|
1005
1006
|
const options = this.safeValue(this.options, 'fetchClosedOrders', {});
|
|
@@ -1058,7 +1059,7 @@ class timex extends timex$1 {
|
|
|
1058
1059
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1059
1060
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1060
1061
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
1061
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1062
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1062
1063
|
*/
|
|
1063
1064
|
await this.loadMarkets();
|
|
1064
1065
|
const options = this.safeValue(this.options, 'fetchMyTrades', {});
|
|
@@ -1134,7 +1135,7 @@ class timex extends timex$1 {
|
|
|
1134
1135
|
* @description fetch the trading fees for a market
|
|
1135
1136
|
* @param {string} symbol unified market symbol
|
|
1136
1137
|
* @param {object} [params] extra parameters specific to the timex api endpoint
|
|
1137
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1138
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1138
1139
|
*/
|
|
1139
1140
|
await this.loadMarkets();
|
|
1140
1141
|
const market = this.market(symbol);
|
|
@@ -44,14 +44,13 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
44
44
|
'fetchBalance': true,
|
|
45
45
|
'fetchBidsAsks': true,
|
|
46
46
|
'fetchBorrowInterest': undefined,
|
|
47
|
-
'fetchBorrowRate': undefined,
|
|
48
47
|
'fetchBorrowRateHistories': undefined,
|
|
49
48
|
'fetchBorrowRateHistory': undefined,
|
|
50
|
-
'fetchBorrowRates': undefined,
|
|
51
|
-
'fetchBorrowRatesPerSymbol': undefined,
|
|
52
49
|
'fetchCanceledOrders': false,
|
|
53
50
|
'fetchClosedOrder': false,
|
|
54
51
|
'fetchClosedOrders': 'emulated',
|
|
52
|
+
'fetchCrossBorrowRate': false,
|
|
53
|
+
'fetchCrossBorrowRates': false,
|
|
55
54
|
'fetchCurrencies': false,
|
|
56
55
|
'fetchDeposit': false,
|
|
57
56
|
'fetchDepositAddress': true,
|
|
@@ -64,6 +63,8 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
64
63
|
'fetchFundingRateHistory': false,
|
|
65
64
|
'fetchFundingRates': false,
|
|
66
65
|
'fetchIndexOHLCV': false,
|
|
66
|
+
'fetchIsolatedBorrowRate': false,
|
|
67
|
+
'fetchIsolatedBorrowRates': false,
|
|
67
68
|
'fetchL3OrderBook': false,
|
|
68
69
|
'fetchLedger': undefined,
|
|
69
70
|
'fetchLeverage': false,
|
|
@@ -785,7 +786,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
785
786
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
786
787
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
787
788
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
788
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
789
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
789
790
|
*/
|
|
790
791
|
await this.loadMarkets();
|
|
791
792
|
const market = this.market(symbol);
|
|
@@ -995,7 +996,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
995
996
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
996
997
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
997
998
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
998
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
999
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
999
1000
|
*/
|
|
1000
1001
|
await this.loadMarkets();
|
|
1001
1002
|
const market = this.market(symbol);
|
|
@@ -1159,7 +1160,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1159
1160
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1160
1161
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1161
1162
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1162
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1163
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1163
1164
|
*/
|
|
1164
1165
|
await this.loadMarkets();
|
|
1165
1166
|
const defaultMethod = 'binanceGetTicker24hr';
|
|
@@ -1181,7 +1182,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1181
1182
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1182
1183
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1183
1184
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1184
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1185
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1185
1186
|
*/
|
|
1186
1187
|
await this.loadMarkets();
|
|
1187
1188
|
const market = this.market(symbol);
|
|
@@ -1203,7 +1204,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1203
1204
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
1204
1205
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1205
1206
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1206
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1207
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1207
1208
|
*/
|
|
1208
1209
|
await this.loadMarkets();
|
|
1209
1210
|
const response = await this.binanceGetTickerBookTicker(params);
|
|
@@ -1322,7 +1323,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1322
1323
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
|
|
1323
1324
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
1324
1325
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
1325
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1326
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1326
1327
|
*/
|
|
1327
1328
|
await this.loadMarkets();
|
|
1328
1329
|
const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType', 'spot');
|
|
@@ -1575,7 +1576,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1575
1576
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1576
1577
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1577
1578
|
* @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
|
|
1578
|
-
* @returns {object} an [order structure]{@link https://
|
|
1579
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1579
1580
|
*/
|
|
1580
1581
|
await this.loadMarkets();
|
|
1581
1582
|
const market = this.market(symbol);
|
|
@@ -1750,7 +1751,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1750
1751
|
* @description fetches information on an order made by the user
|
|
1751
1752
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1752
1753
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1753
|
-
* @returns {object} An [order structure]{@link https://
|
|
1754
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1754
1755
|
*/
|
|
1755
1756
|
const request = {
|
|
1756
1757
|
'orderId': id,
|
|
@@ -1801,9 +1802,11 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1801
1802
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1802
1803
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1803
1804
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1804
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1805
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1805
1806
|
*/
|
|
1806
|
-
|
|
1807
|
+
if (symbol === undefined) {
|
|
1808
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1809
|
+
}
|
|
1807
1810
|
await this.loadMarkets();
|
|
1808
1811
|
const market = this.market(symbol);
|
|
1809
1812
|
const request = {
|
|
@@ -1870,7 +1873,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1870
1873
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1871
1874
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1872
1875
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1873
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1876
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1874
1877
|
*/
|
|
1875
1878
|
const request = { 'type': 1 }; // -1 = all, 1 = open, 2 = closed
|
|
1876
1879
|
return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
|
|
@@ -1885,7 +1888,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1885
1888
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1886
1889
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1887
1890
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1888
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1891
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1889
1892
|
*/
|
|
1890
1893
|
const request = { 'type': 2 }; // -1 = all, 1 = open, 2 = closed
|
|
1891
1894
|
return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
|
|
@@ -1899,7 +1902,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1899
1902
|
* @param {string} id order id
|
|
1900
1903
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1901
1904
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1902
|
-
* @returns {object} An [order structure]{@link https://
|
|
1905
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1903
1906
|
*/
|
|
1904
1907
|
const request = {
|
|
1905
1908
|
'orderId': id,
|
|
@@ -1945,9 +1948,11 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
1945
1948
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1946
1949
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1947
1950
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
1948
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1951
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1949
1952
|
*/
|
|
1950
|
-
|
|
1953
|
+
if (symbol === undefined) {
|
|
1954
|
+
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1955
|
+
}
|
|
1951
1956
|
await this.loadMarkets();
|
|
1952
1957
|
const market = this.market(symbol);
|
|
1953
1958
|
const request = {
|
|
@@ -2002,7 +2007,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2002
2007
|
* @description fetch the deposit address for a currency associated with this account
|
|
2003
2008
|
* @param {string} code unified currency code
|
|
2004
2009
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
2005
|
-
* @returns {object} an [address structure]{@link https://
|
|
2010
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2006
2011
|
*/
|
|
2007
2012
|
await this.loadMarkets();
|
|
2008
2013
|
const currency = this.currency(code);
|
|
@@ -2061,7 +2066,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2061
2066
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2062
2067
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
2063
2068
|
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
2064
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2069
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2065
2070
|
*/
|
|
2066
2071
|
await this.loadMarkets();
|
|
2067
2072
|
let currency = undefined;
|
|
@@ -2121,7 +2126,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2121
2126
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2122
2127
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2123
2128
|
* @param {object} [params] extra parameters specific to the tokocrypto api endpoint
|
|
2124
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2129
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2125
2130
|
*/
|
|
2126
2131
|
await this.loadMarkets();
|
|
2127
2132
|
const request = {};
|
|
@@ -2314,7 +2319,7 @@ class tokocrypto extends tokocrypto$1 {
|
|
|
2314
2319
|
* @param {string} address the address to withdraw to
|
|
2315
2320
|
* @param {string} tag
|
|
2316
2321
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
2317
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2322
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2318
2323
|
*/
|
|
2319
2324
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2320
2325
|
await this.loadMarkets();
|