ccxt 4.0.73 → 4.0.75
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 +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/dist/cjs/src/coinone.js
CHANGED
|
@@ -273,7 +273,7 @@ class coinone extends coinone$1 {
|
|
|
273
273
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
274
274
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
275
275
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
276
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
276
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
277
277
|
*/
|
|
278
278
|
await this.loadMarkets();
|
|
279
279
|
const market = this.market(symbol);
|
|
@@ -292,7 +292,7 @@ class coinone extends coinone$1 {
|
|
|
292
292
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
293
293
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
294
294
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
295
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
295
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
296
296
|
*/
|
|
297
297
|
await this.loadMarkets();
|
|
298
298
|
symbols = this.marketSymbols(symbols);
|
|
@@ -321,7 +321,7 @@ class coinone extends coinone$1 {
|
|
|
321
321
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
322
322
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
323
323
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
324
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
324
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
325
325
|
*/
|
|
326
326
|
await this.loadMarkets();
|
|
327
327
|
const market = this.market(symbol);
|
|
@@ -499,9 +499,9 @@ class coinone extends coinone$1 {
|
|
|
499
499
|
* @param {string} type must be 'limit'
|
|
500
500
|
* @param {string} side 'buy' or 'sell'
|
|
501
501
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
502
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
502
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
503
503
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
504
|
-
* @returns {object} an [order structure]{@link https://
|
|
504
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
505
505
|
*/
|
|
506
506
|
if (type !== 'limit') {
|
|
507
507
|
throw new errors.ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -531,7 +531,7 @@ class coinone extends coinone$1 {
|
|
|
531
531
|
* @description fetches information on an order made by the user
|
|
532
532
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
533
533
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
534
|
-
* @returns {object} An [order structure]{@link https://
|
|
534
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
535
535
|
*/
|
|
536
536
|
if (symbol === undefined) {
|
|
537
537
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -692,7 +692,7 @@ class coinone extends coinone$1 {
|
|
|
692
692
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
693
693
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
694
694
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
695
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
695
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
696
696
|
*/
|
|
697
697
|
// The returned amount might not be same as the ordered amount. If an order is partially filled, the returned amount means the remaining amount.
|
|
698
698
|
// For the same reason, the returned amount and remaining are always same, and the returned filled and cost are always zero.
|
|
@@ -734,7 +734,7 @@ class coinone extends coinone$1 {
|
|
|
734
734
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
735
735
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
736
736
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
737
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
737
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
738
738
|
*/
|
|
739
739
|
if (symbol === undefined) {
|
|
740
740
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -776,7 +776,7 @@ class coinone extends coinone$1 {
|
|
|
776
776
|
* @param {string} id order id
|
|
777
777
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
778
778
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
779
|
-
* @returns {object} An [order structure]{@link https://
|
|
779
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
780
780
|
*/
|
|
781
781
|
if (symbol === undefined) {
|
|
782
782
|
// eslint-disable-next-line quotes
|
|
@@ -813,7 +813,7 @@ class coinone extends coinone$1 {
|
|
|
813
813
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
814
814
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
815
815
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
816
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
816
|
+
* @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
817
817
|
*/
|
|
818
818
|
await this.loadMarkets();
|
|
819
819
|
const response = await this.privatePostAccountDepositAddress(params);
|
package/dist/cjs/src/coinsph.js
CHANGED
|
@@ -433,7 +433,7 @@ class coinsph extends coinsph$1 {
|
|
|
433
433
|
* @name coinsph#fetchStatus
|
|
434
434
|
* @description the latest known information on the availability of the exchange API
|
|
435
435
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
436
|
-
* @returns {object} a [status structure]{@link https://
|
|
436
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
437
437
|
*/
|
|
438
438
|
const response = await this.publicGetOpenapiV1Ping(params);
|
|
439
439
|
return {
|
|
@@ -601,7 +601,7 @@ class coinsph extends coinsph$1 {
|
|
|
601
601
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
602
602
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
603
603
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
604
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
604
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
605
605
|
*/
|
|
606
606
|
await this.loadMarkets();
|
|
607
607
|
const request = {};
|
|
@@ -627,7 +627,7 @@ class coinsph extends coinsph$1 {
|
|
|
627
627
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
628
628
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
629
629
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
630
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
630
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
631
631
|
*/
|
|
632
632
|
await this.loadMarkets();
|
|
633
633
|
const market = this.market(symbol);
|
|
@@ -726,7 +726,7 @@ class coinsph extends coinsph$1 {
|
|
|
726
726
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
727
727
|
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
728
728
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
729
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
729
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
730
730
|
*/
|
|
731
731
|
await this.loadMarkets();
|
|
732
732
|
const market = this.market(symbol);
|
|
@@ -870,7 +870,7 @@ class coinsph extends coinsph$1 {
|
|
|
870
870
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
871
871
|
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
872
872
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
873
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
873
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
874
874
|
*/
|
|
875
875
|
if (symbol === undefined) {
|
|
876
876
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -901,7 +901,7 @@ class coinsph extends coinsph$1 {
|
|
|
901
901
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
902
902
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
903
903
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
904
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
904
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
905
905
|
*/
|
|
906
906
|
if (symbol === undefined) {
|
|
907
907
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
|
|
@@ -1058,9 +1058,9 @@ class coinsph extends coinsph$1 {
|
|
|
1058
1058
|
* @param {string} type 'market', 'limit', 'stop_loss', 'take_profit', 'stop_loss_limit', 'take_profit_limit' or 'limit_maker'
|
|
1059
1059
|
* @param {string} side 'buy' or 'sell'
|
|
1060
1060
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1061
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1061
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1062
1062
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1063
|
-
* @returns {object} an [order structure]{@link https://
|
|
1063
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1064
1064
|
*/
|
|
1065
1065
|
// todo: add test order low priority
|
|
1066
1066
|
await this.loadMarkets();
|
|
@@ -1162,7 +1162,7 @@ class coinsph extends coinsph$1 {
|
|
|
1162
1162
|
* @param {int|string} id order id
|
|
1163
1163
|
* @param {string} symbol not used by coinsph fetchOrder ()
|
|
1164
1164
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1165
|
-
* @returns {object} An [order structure]{@link https://
|
|
1165
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1166
1166
|
*/
|
|
1167
1167
|
await this.loadMarkets();
|
|
1168
1168
|
const request = {};
|
|
@@ -1186,7 +1186,7 @@ class coinsph extends coinsph$1 {
|
|
|
1186
1186
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1187
1187
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1188
1188
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1189
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1189
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1190
1190
|
*/
|
|
1191
1191
|
await this.loadMarkets();
|
|
1192
1192
|
let market = undefined;
|
|
@@ -1207,7 +1207,7 @@ class coinsph extends coinsph$1 {
|
|
|
1207
1207
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1208
1208
|
* @param {int} [limit] the maximum number of orde structures to retrieve (default 500, max 1000)
|
|
1209
1209
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1210
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1210
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1211
1211
|
*/
|
|
1212
1212
|
if (symbol === undefined) {
|
|
1213
1213
|
throw new errors.ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -1236,7 +1236,7 @@ class coinsph extends coinsph$1 {
|
|
|
1236
1236
|
* @param {string} id order id
|
|
1237
1237
|
* @param {string} symbol not used by coinsph cancelOrder ()
|
|
1238
1238
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1239
|
-
* @returns {object} An [order structure]{@link https://
|
|
1239
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1240
1240
|
*/
|
|
1241
1241
|
await this.loadMarkets();
|
|
1242
1242
|
const request = {};
|
|
@@ -1258,7 +1258,7 @@ class coinsph extends coinsph$1 {
|
|
|
1258
1258
|
* @description cancel open orders of market
|
|
1259
1259
|
* @param {string} symbol unified market symbol
|
|
1260
1260
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1261
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1261
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1262
1262
|
*/
|
|
1263
1263
|
if (symbol === undefined) {
|
|
1264
1264
|
throw new errors.ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
|
|
@@ -1440,7 +1440,7 @@ class coinsph extends coinsph$1 {
|
|
|
1440
1440
|
* @description fetch the trading fees for a market
|
|
1441
1441
|
* @param {string} symbol unified market symbol
|
|
1442
1442
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1443
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1443
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1444
1444
|
*/
|
|
1445
1445
|
await this.loadMarkets();
|
|
1446
1446
|
const market = this.market(symbol);
|
|
@@ -1466,7 +1466,7 @@ class coinsph extends coinsph$1 {
|
|
|
1466
1466
|
* @name coinsph#fetchTradingFees
|
|
1467
1467
|
* @description fetch the trading fees for multiple markets
|
|
1468
1468
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1469
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1469
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1470
1470
|
*/
|
|
1471
1471
|
await this.loadMarkets();
|
|
1472
1472
|
const response = await this.privateGetOpenapiV1AssetTradeFee(params);
|
|
@@ -1521,7 +1521,7 @@ class coinsph extends coinsph$1 {
|
|
|
1521
1521
|
* @param {string} address not used by coinsph withdraw ()
|
|
1522
1522
|
* @param {string} tag
|
|
1523
1523
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1524
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1524
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1525
1525
|
*/
|
|
1526
1526
|
const options = this.safeValue(this.options, 'withdraw');
|
|
1527
1527
|
const warning = this.safeValue(options, 'warning', true);
|
|
@@ -1558,7 +1558,7 @@ class coinsph extends coinsph$1 {
|
|
|
1558
1558
|
* @param {string} address not used by coinsph deposit ()
|
|
1559
1559
|
* @param {string} tag
|
|
1560
1560
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1561
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1561
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1562
1562
|
*/
|
|
1563
1563
|
const options = this.safeValue(this.options, 'deposit');
|
|
1564
1564
|
const warning = this.safeValue(options, 'warning', true);
|
|
@@ -1587,7 +1587,7 @@ class coinsph extends coinsph$1 {
|
|
|
1587
1587
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1588
1588
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1589
1589
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1590
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1590
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1591
1591
|
*/
|
|
1592
1592
|
// todo: returns an empty array - find out why
|
|
1593
1593
|
await this.loadMarkets();
|
|
@@ -1644,7 +1644,7 @@ class coinsph extends coinsph$1 {
|
|
|
1644
1644
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1645
1645
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1646
1646
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1647
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1647
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1648
1648
|
*/
|
|
1649
1649
|
// todo: returns an empty array - find out why
|
|
1650
1650
|
await this.loadMarkets();
|
|
@@ -1809,7 +1809,7 @@ class coinsph extends coinsph$1 {
|
|
|
1809
1809
|
* @param {string} code unified currency code
|
|
1810
1810
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1811
1811
|
* @param {string} [params.network] network for fetch deposit address
|
|
1812
|
-
* @returns {object} an [address structure]{@link https://
|
|
1812
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1813
1813
|
*/
|
|
1814
1814
|
const networkCode = this.safeString(params, 'network');
|
|
1815
1815
|
const networkId = this.networkCodeToId(networkCode, code);
|
package/dist/cjs/src/coinspot.js
CHANGED
|
@@ -202,7 +202,7 @@ class coinspot extends coinspot$1 {
|
|
|
202
202
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
203
203
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
204
204
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
205
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
205
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
206
206
|
*/
|
|
207
207
|
await this.loadMarkets();
|
|
208
208
|
const market = this.market(symbol);
|
|
@@ -254,7 +254,7 @@ class coinspot extends coinspot$1 {
|
|
|
254
254
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
255
255
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
256
256
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
257
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
257
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
258
258
|
*/
|
|
259
259
|
await this.loadMarkets();
|
|
260
260
|
const market = this.market(symbol);
|
|
@@ -285,7 +285,7 @@ class coinspot extends coinspot$1 {
|
|
|
285
285
|
* @see https://www.coinspot.com.au/api#latestprices
|
|
286
286
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
287
287
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
288
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
288
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
289
289
|
*/
|
|
290
290
|
await this.loadMarkets();
|
|
291
291
|
const response = await this.publicGetLatest(params);
|
|
@@ -393,9 +393,9 @@ class coinspot extends coinspot$1 {
|
|
|
393
393
|
* @param {string} type must be 'limit'
|
|
394
394
|
* @param {string} side 'buy' or 'sell'
|
|
395
395
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
396
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
396
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
397
397
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
398
|
-
* @returns {object} an [order structure]{@link https://
|
|
398
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
399
399
|
*/
|
|
400
400
|
await this.loadMarkets();
|
|
401
401
|
const method = 'privatePostMy' + this.capitalize(side);
|
|
@@ -418,7 +418,7 @@ class coinspot extends coinspot$1 {
|
|
|
418
418
|
* @param {string} id order id
|
|
419
419
|
* @param {string} symbol not used by coinspot cancelOrder ()
|
|
420
420
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
421
|
-
* @returns {object} An [order structure]{@link https://
|
|
421
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
422
422
|
*/
|
|
423
423
|
const side = this.safeString(params, 'side');
|
|
424
424
|
if (side !== 'buy' && side !== 'sell') {
|
|
@@ -576,7 +576,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
576
576
|
* @see https://exchange-docs.crypto.com/derivatives/index.html#public-get-tickers
|
|
577
577
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
578
578
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
579
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
579
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
580
580
|
*/
|
|
581
581
|
await this.loadMarkets();
|
|
582
582
|
let market = undefined;
|
|
@@ -633,7 +633,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
633
633
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
634
634
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
635
635
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
636
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
636
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
637
637
|
*/
|
|
638
638
|
await this.loadMarkets();
|
|
639
639
|
symbol = this.symbol(symbol);
|
|
@@ -651,7 +651,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
651
651
|
* @param {int} [limit] the maximum number of order structures to retrieve, default 100 max 100
|
|
652
652
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
653
653
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
654
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
654
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
655
655
|
*/
|
|
656
656
|
await this.loadMarkets();
|
|
657
657
|
let market = undefined;
|
|
@@ -834,7 +834,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
834
834
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
835
835
|
* @param {int} [limit] the number of order book entries to return, max 50
|
|
836
836
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
837
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
837
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
838
838
|
*/
|
|
839
839
|
await this.loadMarkets();
|
|
840
840
|
const market = this.market(symbol);
|
|
@@ -949,7 +949,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
949
949
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-detail
|
|
950
950
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
951
951
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
952
|
-
* @returns {object} An [order structure]{@link https://
|
|
952
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
953
953
|
*/
|
|
954
954
|
await this.loadMarkets();
|
|
955
955
|
let market = undefined;
|
|
@@ -1119,14 +1119,14 @@ class cryptocom extends cryptocom$1 {
|
|
|
1119
1119
|
* @param {string} type 'market', 'limit', 'stop_loss', 'stop_limit', 'take_profit', 'take_profit_limit'
|
|
1120
1120
|
* @param {string} side 'buy' or 'sell'
|
|
1121
1121
|
* @param {float} amount how much you want to trade in units of base currency
|
|
1122
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1122
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1123
1123
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1124
1124
|
* @param {string} [params.timeInForce] 'GTC', 'IOC', 'FOK' or 'PO'
|
|
1125
1125
|
* @param {string} [params.ref_price_type] 'MARK_PRICE', 'INDEX_PRICE', 'LAST_PRICE' which trigger price type to use, default is MARK_PRICE
|
|
1126
1126
|
* @param {float} [params.stopPrice] price to trigger a stop order
|
|
1127
1127
|
* @param {float} [params.stopLossPrice] price to trigger a stop-loss trigger order
|
|
1128
1128
|
* @param {float} [params.takeProfitPrice] price to trigger a take-profit trigger order
|
|
1129
|
-
* @returns {object} an [order structure]{@link https://
|
|
1129
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1130
1130
|
*/
|
|
1131
1131
|
await this.loadMarkets();
|
|
1132
1132
|
const market = this.market(symbol);
|
|
@@ -1154,7 +1154,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1154
1154
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
|
1155
1155
|
* @param {string} symbol unified market symbol of the orders to cancel
|
|
1156
1156
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1157
|
-
* @returns {object} Returns exchange raw message{@link https://
|
|
1157
|
+
* @returns {object} Returns exchange raw message{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1158
1158
|
*/
|
|
1159
1159
|
await this.loadMarkets();
|
|
1160
1160
|
let market = undefined;
|
|
@@ -1174,7 +1174,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1174
1174
|
* @param {string} id the order id of the order to cancel
|
|
1175
1175
|
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
1176
1176
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1177
|
-
* @returns {object} An [order structure]{@link https://
|
|
1177
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1178
1178
|
*/
|
|
1179
1179
|
await this.loadMarkets();
|
|
1180
1180
|
let market = undefined;
|
|
@@ -1210,7 +1210,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1210
1210
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1211
1211
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1212
1212
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1213
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1213
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1214
1214
|
*/
|
|
1215
1215
|
await this.loadMarkets();
|
|
1216
1216
|
let market = undefined;
|
|
@@ -1272,7 +1272,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1272
1272
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
1273
1273
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1274
1274
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
1275
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1275
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1276
1276
|
*/
|
|
1277
1277
|
await this.loadMarkets();
|
|
1278
1278
|
const request = {};
|
|
@@ -1351,7 +1351,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1351
1351
|
* @param {string} address the address to withdraw to
|
|
1352
1352
|
* @param {string} tag
|
|
1353
1353
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1354
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1354
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1355
1355
|
*/
|
|
1356
1356
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1357
1357
|
await this.loadMarkets();
|
|
@@ -1398,7 +1398,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1398
1398
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address
|
|
1399
1399
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1400
1400
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1401
|
-
* @returns {object} a dictionary of [address structures]{@link https://
|
|
1401
|
+
* @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
|
|
1402
1402
|
*/
|
|
1403
1403
|
await this.loadMarkets();
|
|
1404
1404
|
const currency = this.currency(code);
|
|
@@ -1458,7 +1458,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1458
1458
|
* @description fetch the deposit address for a currency associated with this account
|
|
1459
1459
|
* @param {string} code unified currency code
|
|
1460
1460
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1461
|
-
* @returns {object} an [address structure]{@link https://
|
|
1461
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1462
1462
|
*/
|
|
1463
1463
|
const network = this.safeStringUpper(params, 'network');
|
|
1464
1464
|
params = this.omit(params, ['network']);
|
|
@@ -1494,7 +1494,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1494
1494
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1495
1495
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1496
1496
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
1497
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1497
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1498
1498
|
*/
|
|
1499
1499
|
await this.loadMarkets();
|
|
1500
1500
|
let currency = undefined;
|
|
@@ -1553,7 +1553,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1553
1553
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1554
1554
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1555
1555
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
1556
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1556
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1557
1557
|
*/
|
|
1558
1558
|
await this.loadMarkets();
|
|
1559
1559
|
let currency = undefined;
|
|
@@ -1613,7 +1613,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1613
1613
|
* @param {string} fromAccount account to transfer from
|
|
1614
1614
|
* @param {string} toAccount account to transfer to
|
|
1615
1615
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1616
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1616
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1617
1617
|
*/
|
|
1618
1618
|
await this.loadMarkets();
|
|
1619
1619
|
const currency = this.currency(code);
|
|
@@ -1651,7 +1651,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
1651
1651
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1652
1652
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1653
1653
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1654
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
1654
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1655
1655
|
*/
|
|
1656
1656
|
if (!('direction' in params)) {
|
|
1657
1657
|
throw new errors.ArgumentsRequired(this.id + ' fetchTransfers() requires a direction param to be either "IN" or "OUT"');
|
|
@@ -2133,7 +2133,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
2133
2133
|
* @param {float} amount the amount to repay
|
|
2134
2134
|
* @param {string} symbol unified market symbol, not used by cryptocom.repayMargin ()
|
|
2135
2135
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2136
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
2136
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
2137
2137
|
*/
|
|
2138
2138
|
await this.loadMarkets();
|
|
2139
2139
|
const currency = this.currency(code);
|
|
@@ -2167,7 +2167,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
2167
2167
|
* @param {float} amount the amount to borrow
|
|
2168
2168
|
* @param {string} symbol unified market symbol, not used by cryptocom.repayMargin ()
|
|
2169
2169
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2170
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
2170
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
2171
2171
|
*/
|
|
2172
2172
|
await this.loadMarkets();
|
|
2173
2173
|
const currency = this.currency(code);
|
|
@@ -2299,7 +2299,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
2299
2299
|
* @name cryptocom#fetchBorrowRates
|
|
2300
2300
|
* @description fetch the borrow interest rates of all currencies
|
|
2301
2301
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2302
|
-
* @returns {object} a list of [borrow rate structures]{@link https://
|
|
2302
|
+
* @returns {object} a list of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
2303
2303
|
*/
|
|
2304
2304
|
await this.loadMarkets();
|
|
2305
2305
|
const response = await this.v2PrivatePostPrivateMarginGetUserConfig(params);
|
|
@@ -2589,7 +2589,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
2589
2589
|
* @description fetch all the accounts associated with a profile
|
|
2590
2590
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-accounts
|
|
2591
2591
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2592
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
2592
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
2593
2593
|
*/
|
|
2594
2594
|
await this.loadMarkets();
|
|
2595
2595
|
const response = await this.v1PrivatePostPrivateGetAccounts(params);
|
|
@@ -2827,7 +2827,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
2827
2827
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
|
2828
2828
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
2829
2829
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2830
|
-
* @returns {object} a [position structure]{@link https://
|
|
2830
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2831
2831
|
*/
|
|
2832
2832
|
await this.loadMarkets();
|
|
2833
2833
|
const market = this.market(symbol);
|
|
@@ -2869,7 +2869,7 @@ class cryptocom extends cryptocom$1 {
|
|
|
2869
2869
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
|
2870
2870
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2871
2871
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2872
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2872
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2873
2873
|
*/
|
|
2874
2874
|
await this.loadMarkets();
|
|
2875
2875
|
symbols = this.marketSymbols(symbols);
|