ccxt 4.0.74 → 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 +4 -4
- package/dist/ccxt.browser.js +2047 -1932
- 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 +21 -21
- 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 +5 -5
- 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 +21 -21
- 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.js +5 -5
- 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/js/src/coinone.js
CHANGED
|
@@ -276,7 +276,7 @@ export default class coinone extends Exchange {
|
|
|
276
276
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
277
277
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
278
278
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
279
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
279
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
280
280
|
*/
|
|
281
281
|
await this.loadMarkets();
|
|
282
282
|
const market = this.market(symbol);
|
|
@@ -295,7 +295,7 @@ export default class coinone extends Exchange {
|
|
|
295
295
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
296
296
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
297
297
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
298
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
298
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
299
299
|
*/
|
|
300
300
|
await this.loadMarkets();
|
|
301
301
|
symbols = this.marketSymbols(symbols);
|
|
@@ -324,7 +324,7 @@ export default class coinone extends Exchange {
|
|
|
324
324
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
325
325
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
326
326
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
327
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
327
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
328
328
|
*/
|
|
329
329
|
await this.loadMarkets();
|
|
330
330
|
const market = this.market(symbol);
|
|
@@ -502,9 +502,9 @@ export default class coinone extends Exchange {
|
|
|
502
502
|
* @param {string} type must be 'limit'
|
|
503
503
|
* @param {string} side 'buy' or 'sell'
|
|
504
504
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
505
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
505
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
506
506
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
507
|
-
* @returns {object} an [order structure]{@link https://
|
|
507
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
508
508
|
*/
|
|
509
509
|
if (type !== 'limit') {
|
|
510
510
|
throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -534,7 +534,7 @@ export default class coinone extends Exchange {
|
|
|
534
534
|
* @description fetches information on an order made by the user
|
|
535
535
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
536
536
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
537
|
-
* @returns {object} An [order structure]{@link https://
|
|
537
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
538
538
|
*/
|
|
539
539
|
if (symbol === undefined) {
|
|
540
540
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -695,7 +695,7 @@ export default class coinone extends Exchange {
|
|
|
695
695
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
696
696
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
697
697
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
698
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
698
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
699
699
|
*/
|
|
700
700
|
// The returned amount might not be same as the ordered amount. If an order is partially filled, the returned amount means the remaining amount.
|
|
701
701
|
// For the same reason, the returned amount and remaining are always same, and the returned filled and cost are always zero.
|
|
@@ -737,7 +737,7 @@ export default class coinone extends Exchange {
|
|
|
737
737
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
738
738
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
739
739
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
740
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
740
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
741
741
|
*/
|
|
742
742
|
if (symbol === undefined) {
|
|
743
743
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -779,7 +779,7 @@ export default class coinone extends Exchange {
|
|
|
779
779
|
* @param {string} id order id
|
|
780
780
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
781
781
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
782
|
-
* @returns {object} An [order structure]{@link https://
|
|
782
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
783
783
|
*/
|
|
784
784
|
if (symbol === undefined) {
|
|
785
785
|
// eslint-disable-next-line quotes
|
|
@@ -816,7 +816,7 @@ export default class coinone extends Exchange {
|
|
|
816
816
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
817
817
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
818
818
|
* @param {object} [params] extra parameters specific to the coinone api endpoint
|
|
819
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
819
|
+
* @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
820
820
|
*/
|
|
821
821
|
await this.loadMarkets();
|
|
822
822
|
const response = await this.privatePostAccountDepositAddress(params);
|
package/js/src/coinsph.js
CHANGED
|
@@ -436,7 +436,7 @@ export default class coinsph extends Exchange {
|
|
|
436
436
|
* @name coinsph#fetchStatus
|
|
437
437
|
* @description the latest known information on the availability of the exchange API
|
|
438
438
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
439
|
-
* @returns {object} a [status structure]{@link https://
|
|
439
|
+
* @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
|
|
440
440
|
*/
|
|
441
441
|
const response = await this.publicGetOpenapiV1Ping(params);
|
|
442
442
|
return {
|
|
@@ -604,7 +604,7 @@ export default class coinsph extends Exchange {
|
|
|
604
604
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
605
605
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
606
606
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
607
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
607
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
608
608
|
*/
|
|
609
609
|
await this.loadMarkets();
|
|
610
610
|
const request = {};
|
|
@@ -630,7 +630,7 @@ export default class coinsph extends Exchange {
|
|
|
630
630
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
631
631
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
632
632
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
633
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
633
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
634
634
|
*/
|
|
635
635
|
await this.loadMarkets();
|
|
636
636
|
const market = this.market(symbol);
|
|
@@ -729,7 +729,7 @@ export default class coinsph extends Exchange {
|
|
|
729
729
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
730
730
|
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
731
731
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
732
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
732
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
733
733
|
*/
|
|
734
734
|
await this.loadMarkets();
|
|
735
735
|
const market = this.market(symbol);
|
|
@@ -873,7 +873,7 @@ export default class coinsph extends Exchange {
|
|
|
873
873
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
874
874
|
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
875
875
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
876
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
876
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
877
877
|
*/
|
|
878
878
|
if (symbol === undefined) {
|
|
879
879
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -904,7 +904,7 @@ export default class coinsph extends Exchange {
|
|
|
904
904
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
905
905
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
906
906
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
907
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
907
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
908
908
|
*/
|
|
909
909
|
if (symbol === undefined) {
|
|
910
910
|
throw new ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
|
|
@@ -1061,9 +1061,9 @@ export default class coinsph extends Exchange {
|
|
|
1061
1061
|
* @param {string} type 'market', 'limit', 'stop_loss', 'take_profit', 'stop_loss_limit', 'take_profit_limit' or 'limit_maker'
|
|
1062
1062
|
* @param {string} side 'buy' or 'sell'
|
|
1063
1063
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1064
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1064
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1065
1065
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1066
|
-
* @returns {object} an [order structure]{@link https://
|
|
1066
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1067
1067
|
*/
|
|
1068
1068
|
// todo: add test order low priority
|
|
1069
1069
|
await this.loadMarkets();
|
|
@@ -1165,7 +1165,7 @@ export default class coinsph extends Exchange {
|
|
|
1165
1165
|
* @param {int|string} id order id
|
|
1166
1166
|
* @param {string} symbol not used by coinsph fetchOrder ()
|
|
1167
1167
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1168
|
-
* @returns {object} An [order structure]{@link https://
|
|
1168
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1169
1169
|
*/
|
|
1170
1170
|
await this.loadMarkets();
|
|
1171
1171
|
const request = {};
|
|
@@ -1189,7 +1189,7 @@ export default class coinsph extends Exchange {
|
|
|
1189
1189
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1190
1190
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1191
1191
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1192
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1192
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1193
1193
|
*/
|
|
1194
1194
|
await this.loadMarkets();
|
|
1195
1195
|
let market = undefined;
|
|
@@ -1210,7 +1210,7 @@ export default class coinsph extends Exchange {
|
|
|
1210
1210
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1211
1211
|
* @param {int} [limit] the maximum number of orde structures to retrieve (default 500, max 1000)
|
|
1212
1212
|
* @param {object} [params] extra parameters specific to the coinsph 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
|
if (symbol === undefined) {
|
|
1216
1216
|
throw new ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -1239,7 +1239,7 @@ export default class coinsph extends Exchange {
|
|
|
1239
1239
|
* @param {string} id order id
|
|
1240
1240
|
* @param {string} symbol not used by coinsph cancelOrder ()
|
|
1241
1241
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1242
|
-
* @returns {object} An [order structure]{@link https://
|
|
1242
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1243
1243
|
*/
|
|
1244
1244
|
await this.loadMarkets();
|
|
1245
1245
|
const request = {};
|
|
@@ -1261,7 +1261,7 @@ export default class coinsph extends Exchange {
|
|
|
1261
1261
|
* @description cancel open orders of market
|
|
1262
1262
|
* @param {string} symbol unified market symbol
|
|
1263
1263
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1264
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1264
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1265
1265
|
*/
|
|
1266
1266
|
if (symbol === undefined) {
|
|
1267
1267
|
throw new ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
|
|
@@ -1443,7 +1443,7 @@ export default class coinsph extends Exchange {
|
|
|
1443
1443
|
* @description fetch the trading fees for a market
|
|
1444
1444
|
* @param {string} symbol unified market symbol
|
|
1445
1445
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1446
|
-
* @returns {object} a [fee structure]{@link https://
|
|
1446
|
+
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1447
1447
|
*/
|
|
1448
1448
|
await this.loadMarkets();
|
|
1449
1449
|
const market = this.market(symbol);
|
|
@@ -1469,7 +1469,7 @@ export default class coinsph extends Exchange {
|
|
|
1469
1469
|
* @name coinsph#fetchTradingFees
|
|
1470
1470
|
* @description fetch the trading fees for multiple markets
|
|
1471
1471
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1472
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1472
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1473
1473
|
*/
|
|
1474
1474
|
await this.loadMarkets();
|
|
1475
1475
|
const response = await this.privateGetOpenapiV1AssetTradeFee(params);
|
|
@@ -1524,7 +1524,7 @@ export default class coinsph extends Exchange {
|
|
|
1524
1524
|
* @param {string} address not used by coinsph withdraw ()
|
|
1525
1525
|
* @param {string} tag
|
|
1526
1526
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1527
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1527
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1528
1528
|
*/
|
|
1529
1529
|
const options = this.safeValue(this.options, 'withdraw');
|
|
1530
1530
|
const warning = this.safeValue(options, 'warning', true);
|
|
@@ -1561,7 +1561,7 @@ export default class coinsph extends Exchange {
|
|
|
1561
1561
|
* @param {string} address not used by coinsph deposit ()
|
|
1562
1562
|
* @param {string} tag
|
|
1563
1563
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1564
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1564
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1565
1565
|
*/
|
|
1566
1566
|
const options = this.safeValue(this.options, 'deposit');
|
|
1567
1567
|
const warning = this.safeValue(options, 'warning', true);
|
|
@@ -1590,7 +1590,7 @@ export default class coinsph extends Exchange {
|
|
|
1590
1590
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1591
1591
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1592
1592
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1593
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1593
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1594
1594
|
*/
|
|
1595
1595
|
// todo: returns an empty array - find out why
|
|
1596
1596
|
await this.loadMarkets();
|
|
@@ -1647,7 +1647,7 @@ export default class coinsph extends Exchange {
|
|
|
1647
1647
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1648
1648
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1649
1649
|
* @param {object} [params] extra parameters specific to the coinsph api endpoint
|
|
1650
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1650
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1651
1651
|
*/
|
|
1652
1652
|
// todo: returns an empty array - find out why
|
|
1653
1653
|
await this.loadMarkets();
|
|
@@ -1812,7 +1812,7 @@ export default class coinsph extends Exchange {
|
|
|
1812
1812
|
* @param {string} code unified currency code
|
|
1813
1813
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
1814
1814
|
* @param {string} [params.network] network for fetch deposit address
|
|
1815
|
-
* @returns {object} an [address structure]{@link https://
|
|
1815
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1816
1816
|
*/
|
|
1817
1817
|
const networkCode = this.safeString(params, 'network');
|
|
1818
1818
|
const networkId = this.networkCodeToId(networkCode, code);
|
package/js/src/coinspot.js
CHANGED
|
@@ -205,7 +205,7 @@ export default class coinspot extends Exchange {
|
|
|
205
205
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
206
206
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
207
207
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
208
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
208
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
209
209
|
*/
|
|
210
210
|
await this.loadMarkets();
|
|
211
211
|
const market = this.market(symbol);
|
|
@@ -257,7 +257,7 @@ export default class coinspot extends Exchange {
|
|
|
257
257
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
258
258
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
259
259
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
260
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
260
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
261
261
|
*/
|
|
262
262
|
await this.loadMarkets();
|
|
263
263
|
const market = this.market(symbol);
|
|
@@ -288,7 +288,7 @@ export default class coinspot extends Exchange {
|
|
|
288
288
|
* @see https://www.coinspot.com.au/api#latestprices
|
|
289
289
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
290
290
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
291
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
291
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
292
292
|
*/
|
|
293
293
|
await this.loadMarkets();
|
|
294
294
|
const response = await this.publicGetLatest(params);
|
|
@@ -396,9 +396,9 @@ export default class coinspot extends Exchange {
|
|
|
396
396
|
* @param {string} type must be 'limit'
|
|
397
397
|
* @param {string} side 'buy' or 'sell'
|
|
398
398
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
399
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
399
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
400
400
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
401
|
-
* @returns {object} an [order structure]{@link https://
|
|
401
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
402
402
|
*/
|
|
403
403
|
await this.loadMarkets();
|
|
404
404
|
const method = 'privatePostMy' + this.capitalize(side);
|
|
@@ -421,7 +421,7 @@ export default class coinspot extends Exchange {
|
|
|
421
421
|
* @param {string} id order id
|
|
422
422
|
* @param {string} symbol not used by coinspot cancelOrder ()
|
|
423
423
|
* @param {object} [params] extra parameters specific to the coinspot api endpoint
|
|
424
|
-
* @returns {object} An [order structure]{@link https://
|
|
424
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
425
425
|
*/
|
|
426
426
|
const side = this.safeString(params, 'side');
|
|
427
427
|
if (side !== 'buy' && side !== 'sell') {
|
package/js/src/cryptocom.js
CHANGED
|
@@ -579,7 +579,7 @@ export default class cryptocom extends Exchange {
|
|
|
579
579
|
* @see https://exchange-docs.crypto.com/derivatives/index.html#public-get-tickers
|
|
580
580
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
581
581
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
582
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
582
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
583
583
|
*/
|
|
584
584
|
await this.loadMarkets();
|
|
585
585
|
let market = undefined;
|
|
@@ -636,7 +636,7 @@ export default class cryptocom extends Exchange {
|
|
|
636
636
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
637
637
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
638
638
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
639
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
639
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
640
640
|
*/
|
|
641
641
|
await this.loadMarkets();
|
|
642
642
|
symbol = this.symbol(symbol);
|
|
@@ -654,7 +654,7 @@ export default class cryptocom extends Exchange {
|
|
|
654
654
|
* @param {int} [limit] the maximum number of order structures to retrieve, default 100 max 100
|
|
655
655
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
656
656
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
657
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
657
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
658
658
|
*/
|
|
659
659
|
await this.loadMarkets();
|
|
660
660
|
let market = undefined;
|
|
@@ -837,7 +837,7 @@ export default class cryptocom extends Exchange {
|
|
|
837
837
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
838
838
|
* @param {int} [limit] the number of order book entries to return, max 50
|
|
839
839
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
840
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
840
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
841
841
|
*/
|
|
842
842
|
await this.loadMarkets();
|
|
843
843
|
const market = this.market(symbol);
|
|
@@ -952,7 +952,7 @@ export default class cryptocom extends Exchange {
|
|
|
952
952
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-detail
|
|
953
953
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
954
954
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
955
|
-
* @returns {object} An [order structure]{@link https://
|
|
955
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
956
956
|
*/
|
|
957
957
|
await this.loadMarkets();
|
|
958
958
|
let market = undefined;
|
|
@@ -1122,14 +1122,14 @@ export default class cryptocom extends Exchange {
|
|
|
1122
1122
|
* @param {string} type 'market', 'limit', 'stop_loss', 'stop_limit', 'take_profit', 'take_profit_limit'
|
|
1123
1123
|
* @param {string} side 'buy' or 'sell'
|
|
1124
1124
|
* @param {float} amount how much you want to trade in units of base currency
|
|
1125
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1125
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1126
1126
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1127
1127
|
* @param {string} [params.timeInForce] 'GTC', 'IOC', 'FOK' or 'PO'
|
|
1128
1128
|
* @param {string} [params.ref_price_type] 'MARK_PRICE', 'INDEX_PRICE', 'LAST_PRICE' which trigger price type to use, default is MARK_PRICE
|
|
1129
1129
|
* @param {float} [params.stopPrice] price to trigger a stop order
|
|
1130
1130
|
* @param {float} [params.stopLossPrice] price to trigger a stop-loss trigger order
|
|
1131
1131
|
* @param {float} [params.takeProfitPrice] price to trigger a take-profit trigger order
|
|
1132
|
-
* @returns {object} an [order structure]{@link https://
|
|
1132
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1133
1133
|
*/
|
|
1134
1134
|
await this.loadMarkets();
|
|
1135
1135
|
const market = this.market(symbol);
|
|
@@ -1157,7 +1157,7 @@ export default class cryptocom extends Exchange {
|
|
|
1157
1157
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
|
1158
1158
|
* @param {string} symbol unified market symbol of the orders to cancel
|
|
1159
1159
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1160
|
-
* @returns {object} Returns exchange raw message{@link https://
|
|
1160
|
+
* @returns {object} Returns exchange raw message{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1161
1161
|
*/
|
|
1162
1162
|
await this.loadMarkets();
|
|
1163
1163
|
let market = undefined;
|
|
@@ -1177,7 +1177,7 @@ export default class cryptocom extends Exchange {
|
|
|
1177
1177
|
* @param {string} id the order id of the order to cancel
|
|
1178
1178
|
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
1179
1179
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1180
|
-
* @returns {object} An [order structure]{@link https://
|
|
1180
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1181
1181
|
*/
|
|
1182
1182
|
await this.loadMarkets();
|
|
1183
1183
|
let market = undefined;
|
|
@@ -1213,7 +1213,7 @@ export default class cryptocom extends Exchange {
|
|
|
1213
1213
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1214
1214
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1215
1215
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1216
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1216
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1217
1217
|
*/
|
|
1218
1218
|
await this.loadMarkets();
|
|
1219
1219
|
let market = undefined;
|
|
@@ -1275,7 +1275,7 @@ export default class cryptocom extends Exchange {
|
|
|
1275
1275
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
1276
1276
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1277
1277
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
1278
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1278
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1279
1279
|
*/
|
|
1280
1280
|
await this.loadMarkets();
|
|
1281
1281
|
const request = {};
|
|
@@ -1354,7 +1354,7 @@ export default class cryptocom extends Exchange {
|
|
|
1354
1354
|
* @param {string} address the address to withdraw to
|
|
1355
1355
|
* @param {string} tag
|
|
1356
1356
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1357
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1357
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1358
1358
|
*/
|
|
1359
1359
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1360
1360
|
await this.loadMarkets();
|
|
@@ -1401,7 +1401,7 @@ export default class cryptocom extends Exchange {
|
|
|
1401
1401
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address
|
|
1402
1402
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1403
1403
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1404
|
-
* @returns {object} a dictionary of [address structures]{@link https://
|
|
1404
|
+
* @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
|
|
1405
1405
|
*/
|
|
1406
1406
|
await this.loadMarkets();
|
|
1407
1407
|
const currency = this.currency(code);
|
|
@@ -1461,7 +1461,7 @@ export default class cryptocom extends Exchange {
|
|
|
1461
1461
|
* @description fetch the deposit address for a currency associated with this account
|
|
1462
1462
|
* @param {string} code unified currency code
|
|
1463
1463
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1464
|
-
* @returns {object} an [address structure]{@link https://
|
|
1464
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1465
1465
|
*/
|
|
1466
1466
|
const network = this.safeStringUpper(params, 'network');
|
|
1467
1467
|
params = this.omit(params, ['network']);
|
|
@@ -1497,7 +1497,7 @@ export default class cryptocom extends Exchange {
|
|
|
1497
1497
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1498
1498
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1499
1499
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
1500
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1500
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1501
1501
|
*/
|
|
1502
1502
|
await this.loadMarkets();
|
|
1503
1503
|
let currency = undefined;
|
|
@@ -1556,7 +1556,7 @@ export default class cryptocom extends Exchange {
|
|
|
1556
1556
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1557
1557
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1558
1558
|
* @param {int} [params.until] timestamp in ms for the ending date filter, default is the current time
|
|
1559
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1559
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1560
1560
|
*/
|
|
1561
1561
|
await this.loadMarkets();
|
|
1562
1562
|
let currency = undefined;
|
|
@@ -1616,7 +1616,7 @@ export default class cryptocom extends Exchange {
|
|
|
1616
1616
|
* @param {string} fromAccount account to transfer from
|
|
1617
1617
|
* @param {string} toAccount account to transfer to
|
|
1618
1618
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1619
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1619
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1620
1620
|
*/
|
|
1621
1621
|
await this.loadMarkets();
|
|
1622
1622
|
const currency = this.currency(code);
|
|
@@ -1654,7 +1654,7 @@ export default class cryptocom extends Exchange {
|
|
|
1654
1654
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
1655
1655
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
1656
1656
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
1657
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
1657
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1658
1658
|
*/
|
|
1659
1659
|
if (!('direction' in params)) {
|
|
1660
1660
|
throw new ArgumentsRequired(this.id + ' fetchTransfers() requires a direction param to be either "IN" or "OUT"');
|
|
@@ -2136,7 +2136,7 @@ export default class cryptocom extends Exchange {
|
|
|
2136
2136
|
* @param {float} amount the amount to repay
|
|
2137
2137
|
* @param {string} symbol unified market symbol, not used by cryptocom.repayMargin ()
|
|
2138
2138
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2139
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
2139
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
2140
2140
|
*/
|
|
2141
2141
|
await this.loadMarkets();
|
|
2142
2142
|
const currency = this.currency(code);
|
|
@@ -2170,7 +2170,7 @@ export default class cryptocom extends Exchange {
|
|
|
2170
2170
|
* @param {float} amount the amount to borrow
|
|
2171
2171
|
* @param {string} symbol unified market symbol, not used by cryptocom.repayMargin ()
|
|
2172
2172
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2173
|
-
* @returns {object} a [margin loan structure]{@link https://
|
|
2173
|
+
* @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
|
|
2174
2174
|
*/
|
|
2175
2175
|
await this.loadMarkets();
|
|
2176
2176
|
const currency = this.currency(code);
|
|
@@ -2302,7 +2302,7 @@ export default class cryptocom extends Exchange {
|
|
|
2302
2302
|
* @name cryptocom#fetchBorrowRates
|
|
2303
2303
|
* @description fetch the borrow interest rates of all currencies
|
|
2304
2304
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2305
|
-
* @returns {object} a list of [borrow rate structures]{@link https://
|
|
2305
|
+
* @returns {object} a list of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
2306
2306
|
*/
|
|
2307
2307
|
await this.loadMarkets();
|
|
2308
2308
|
const response = await this.v2PrivatePostPrivateMarginGetUserConfig(params);
|
|
@@ -2592,7 +2592,7 @@ export default class cryptocom extends Exchange {
|
|
|
2592
2592
|
* @description fetch all the accounts associated with a profile
|
|
2593
2593
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-accounts
|
|
2594
2594
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2595
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
2595
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
2596
2596
|
*/
|
|
2597
2597
|
await this.loadMarkets();
|
|
2598
2598
|
const response = await this.v1PrivatePostPrivateGetAccounts(params);
|
|
@@ -2830,7 +2830,7 @@ export default class cryptocom extends Exchange {
|
|
|
2830
2830
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
|
2831
2831
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
2832
2832
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2833
|
-
* @returns {object} a [position structure]{@link https://
|
|
2833
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2834
2834
|
*/
|
|
2835
2835
|
await this.loadMarkets();
|
|
2836
2836
|
const market = this.market(symbol);
|
|
@@ -2872,7 +2872,7 @@ export default class cryptocom extends Exchange {
|
|
|
2872
2872
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions
|
|
2873
2873
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2874
2874
|
* @param {object} [params] extra parameters specific to the cryptocom api endpoint
|
|
2875
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2875
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2876
2876
|
*/
|
|
2877
2877
|
await this.loadMarkets();
|
|
2878
2878
|
symbols = this.marketSymbols(symbols);
|