ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/coinmate.js
CHANGED
|
@@ -213,7 +213,7 @@ export default class coinmate extends Exchange {
|
|
|
213
213
|
* @method
|
|
214
214
|
* @name coinmate#fetchMarkets
|
|
215
215
|
* @description retrieves data on all markets for coinmate
|
|
216
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
216
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
217
217
|
* @returns {object[]} an array of objects representing market data
|
|
218
218
|
*/
|
|
219
219
|
const response = await this.publicGetTradingPairs(params);
|
|
@@ -319,7 +319,7 @@ export default class coinmate extends Exchange {
|
|
|
319
319
|
* @method
|
|
320
320
|
* @name coinmate#fetchBalance
|
|
321
321
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
322
|
-
* @param {object} [params] extra parameters specific to the
|
|
322
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
323
323
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
324
324
|
*/
|
|
325
325
|
await this.loadMarkets();
|
|
@@ -333,7 +333,7 @@ export default class coinmate extends Exchange {
|
|
|
333
333
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
334
334
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
335
335
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
336
|
-
* @param {object} [params] extra parameters specific to the
|
|
336
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
337
337
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
338
338
|
*/
|
|
339
339
|
await this.loadMarkets();
|
|
@@ -353,7 +353,7 @@ export default class coinmate extends Exchange {
|
|
|
353
353
|
* @name coinmate#fetchTicker
|
|
354
354
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
355
355
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
356
|
-
* @param {object} [params] extra parameters specific to the
|
|
356
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
357
357
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
358
358
|
*/
|
|
359
359
|
await this.loadMarkets();
|
|
@@ -396,7 +396,7 @@ export default class coinmate extends Exchange {
|
|
|
396
396
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
397
397
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
398
398
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
399
|
-
* @param {object} [params] extra parameters specific to the
|
|
399
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
400
400
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
401
401
|
*/
|
|
402
402
|
await this.loadMarkets();
|
|
@@ -509,7 +509,7 @@ export default class coinmate extends Exchange {
|
|
|
509
509
|
* @param {float} amount the amount to withdraw
|
|
510
510
|
* @param {string} address the address to withdraw to
|
|
511
511
|
* @param {string} tag
|
|
512
|
-
* @param {object} [params] extra parameters specific to the
|
|
512
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
513
513
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
514
514
|
*/
|
|
515
515
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -561,7 +561,7 @@ export default class coinmate extends Exchange {
|
|
|
561
561
|
* @param {string} symbol unified market symbol
|
|
562
562
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
563
563
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
564
|
-
* @param {object} [params] extra parameters specific to the
|
|
564
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
565
565
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
566
566
|
*/
|
|
567
567
|
await this.loadMarkets();
|
|
@@ -653,7 +653,7 @@ export default class coinmate extends Exchange {
|
|
|
653
653
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
654
654
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
655
655
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
656
|
-
* @param {object} [params] extra parameters specific to the
|
|
656
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
657
657
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
658
658
|
*/
|
|
659
659
|
await this.loadMarkets();
|
|
@@ -688,7 +688,7 @@ export default class coinmate extends Exchange {
|
|
|
688
688
|
* @name coinmate#fetchTradingFee
|
|
689
689
|
* @description fetch the trading fees for a market
|
|
690
690
|
* @param {string} symbol unified market symbol
|
|
691
|
-
* @param {object} [params] extra parameters specific to the
|
|
691
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
692
692
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
693
693
|
*/
|
|
694
694
|
await this.loadMarkets();
|
|
@@ -726,7 +726,7 @@ export default class coinmate extends Exchange {
|
|
|
726
726
|
* @param {string} symbol unified market symbol
|
|
727
727
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
728
728
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
729
|
-
* @param {object} [params] extra parameters specific to the
|
|
729
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
730
730
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
731
731
|
*/
|
|
732
732
|
const response = await this.privatePostOpenOrders(this.extend({}, params));
|
|
@@ -741,7 +741,7 @@ export default class coinmate extends Exchange {
|
|
|
741
741
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
742
742
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
743
743
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
744
|
-
* @param {object} [params] extra parameters specific to the
|
|
744
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
745
745
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
746
746
|
*/
|
|
747
747
|
if (symbol === undefined) {
|
|
@@ -866,7 +866,7 @@ export default class coinmate extends Exchange {
|
|
|
866
866
|
* @param {string} side 'buy' or 'sell'
|
|
867
867
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
868
868
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
869
|
-
* @param {object} [params] extra parameters specific to the
|
|
869
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
870
870
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
871
871
|
*/
|
|
872
872
|
await this.loadMarkets();
|
|
@@ -902,7 +902,7 @@ export default class coinmate extends Exchange {
|
|
|
902
902
|
* @name coinmate#fetchOrder
|
|
903
903
|
* @description fetches information on an order made by the user
|
|
904
904
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
905
|
-
* @param {object} [params] extra parameters specific to the
|
|
905
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
906
906
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
907
907
|
*/
|
|
908
908
|
await this.loadMarkets();
|
|
@@ -924,7 +924,7 @@ export default class coinmate extends Exchange {
|
|
|
924
924
|
* @description cancels an open order
|
|
925
925
|
* @param {string} id order id
|
|
926
926
|
* @param {string} symbol not used by coinmate cancelOrder ()
|
|
927
|
-
* @param {object} [params] extra parameters specific to the
|
|
927
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
928
928
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
929
929
|
*/
|
|
930
930
|
// {"error":false,"errorMessage":null,"data":{"success":true,"remainingAmount":0.01}}
|
package/js/src/coinone.js
CHANGED
|
@@ -146,7 +146,7 @@ export default class coinone extends Exchange {
|
|
|
146
146
|
* @method
|
|
147
147
|
* @name coinone#fetchMarkets
|
|
148
148
|
* @description retrieves data on all markets for coinone
|
|
149
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
149
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
150
150
|
* @returns {object[]} an array of objects representing market data
|
|
151
151
|
*/
|
|
152
152
|
const request = {
|
|
@@ -263,7 +263,7 @@ export default class coinone extends Exchange {
|
|
|
263
263
|
* @method
|
|
264
264
|
* @name coinone#fetchBalance
|
|
265
265
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
266
|
-
* @param {object} [params] extra parameters specific to the
|
|
266
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
267
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
@@ -277,7 +277,7 @@ export default class coinone extends Exchange {
|
|
|
277
277
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
278
278
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
279
279
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
280
|
-
* @param {object} [params] extra parameters specific to the
|
|
280
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
281
281
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
282
282
|
*/
|
|
283
283
|
await this.loadMarkets();
|
|
@@ -294,9 +294,9 @@ export default class coinone extends Exchange {
|
|
|
294
294
|
/**
|
|
295
295
|
* @method
|
|
296
296
|
* @name coinone#fetchTickers
|
|
297
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
297
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
298
298
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
299
|
-
* @param {object} [params] extra parameters specific to the
|
|
299
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
300
300
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
301
301
|
*/
|
|
302
302
|
await this.loadMarkets();
|
|
@@ -325,7 +325,7 @@ export default class coinone extends Exchange {
|
|
|
325
325
|
* @name coinone#fetchTicker
|
|
326
326
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
327
327
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
328
|
-
* @param {object} [params] extra parameters specific to the
|
|
328
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
329
329
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
330
330
|
*/
|
|
331
331
|
await this.loadMarkets();
|
|
@@ -464,7 +464,7 @@ export default class coinone extends Exchange {
|
|
|
464
464
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
465
465
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
466
466
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
467
|
-
* @param {object} [params] extra parameters specific to the
|
|
467
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
468
468
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
469
469
|
*/
|
|
470
470
|
await this.loadMarkets();
|
|
@@ -505,7 +505,7 @@ export default class coinone extends Exchange {
|
|
|
505
505
|
* @param {string} side 'buy' or 'sell'
|
|
506
506
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
507
507
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
508
|
-
* @param {object} [params] extra parameters specific to the
|
|
508
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
509
509
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
510
510
|
*/
|
|
511
511
|
if (type !== 'limit') {
|
|
@@ -535,7 +535,7 @@ export default class coinone extends Exchange {
|
|
|
535
535
|
* @name coinone#fetchOrder
|
|
536
536
|
* @description fetches information on an order made by the user
|
|
537
537
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
538
|
-
* @param {object} [params] extra parameters specific to the
|
|
538
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
539
539
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
540
540
|
*/
|
|
541
541
|
if (symbol === undefined) {
|
|
@@ -705,7 +705,7 @@ export default class coinone extends Exchange {
|
|
|
705
705
|
* @param {string} symbol unified market symbol
|
|
706
706
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
707
707
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
708
|
-
* @param {object} [params] extra parameters specific to the
|
|
708
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
709
709
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
710
710
|
*/
|
|
711
711
|
// The returned amount might not be same as the ordered amount. If an order is partially filled, the returned amount means the remaining amount.
|
|
@@ -747,7 +747,7 @@ export default class coinone extends Exchange {
|
|
|
747
747
|
* @param {string} symbol unified market symbol
|
|
748
748
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
749
749
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
750
|
-
* @param {object} [params] extra parameters specific to the
|
|
750
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
751
751
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
752
752
|
*/
|
|
753
753
|
if (symbol === undefined) {
|
|
@@ -789,7 +789,7 @@ export default class coinone extends Exchange {
|
|
|
789
789
|
* @description cancels an open order
|
|
790
790
|
* @param {string} id order id
|
|
791
791
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
792
|
-
* @param {object} [params] extra parameters specific to the
|
|
792
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
793
793
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
794
794
|
*/
|
|
795
795
|
if (symbol === undefined) {
|
|
@@ -826,7 +826,7 @@ export default class coinone extends Exchange {
|
|
|
826
826
|
* @name coinone#fetchDepositAddresses
|
|
827
827
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
828
828
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
829
|
-
* @param {object} [params] extra parameters specific to the
|
|
829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
830
830
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
831
831
|
*/
|
|
832
832
|
await this.loadMarkets();
|
package/js/src/coinsph.js
CHANGED
|
@@ -441,7 +441,7 @@ export default class coinsph extends Exchange {
|
|
|
441
441
|
* @method
|
|
442
442
|
* @name coinsph#fetchStatus
|
|
443
443
|
* @description the latest known information on the availability of the exchange API
|
|
444
|
-
* @param {object} [params] extra parameters specific to the
|
|
444
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
445
445
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
446
446
|
*/
|
|
447
447
|
const response = await this.publicGetOpenapiV1Ping(params);
|
|
@@ -458,7 +458,7 @@ export default class coinsph extends Exchange {
|
|
|
458
458
|
* @method
|
|
459
459
|
* @name coinsph#fetchTime
|
|
460
460
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
461
|
-
* @param {object} [params] extra parameters specific to the
|
|
461
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
462
462
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
463
463
|
*/
|
|
464
464
|
const response = await this.publicGetOpenapiV1Time(params);
|
|
@@ -472,7 +472,7 @@ export default class coinsph extends Exchange {
|
|
|
472
472
|
* @method
|
|
473
473
|
* @name coinsph#fetchMarkets
|
|
474
474
|
* @description retrieves data on all markets for coinsph
|
|
475
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
476
476
|
* @returns {object[]} an array of objects representing market data
|
|
477
477
|
*/
|
|
478
478
|
const response = await this.publicGetOpenapiV1ExchangeInfo(params);
|
|
@@ -607,9 +607,9 @@ export default class coinsph extends Exchange {
|
|
|
607
607
|
/**
|
|
608
608
|
* @method
|
|
609
609
|
* @name coinsph#fetchTickers
|
|
610
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
610
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
611
611
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
612
|
-
* @param {object} [params] extra parameters specific to the
|
|
612
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
613
613
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
614
614
|
*/
|
|
615
615
|
await this.loadMarkets();
|
|
@@ -635,7 +635,7 @@ export default class coinsph extends Exchange {
|
|
|
635
635
|
* @name coinsph#fetchTicker
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
638
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
639
639
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
640
640
|
*/
|
|
641
641
|
await this.loadMarkets();
|
|
@@ -734,7 +734,7 @@ export default class coinsph extends Exchange {
|
|
|
734
734
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
735
735
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
736
736
|
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
737
|
-
* @param {object} [params] extra parameters specific to the
|
|
737
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
738
738
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
739
739
|
*/
|
|
740
740
|
await this.loadMarkets();
|
|
@@ -772,7 +772,7 @@ export default class coinsph extends Exchange {
|
|
|
772
772
|
* @param {string} timeframe the length of time each candle represents
|
|
773
773
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
774
774
|
* @param {int} [limit] the maximum amount of candles to fetch (default 500, max 1000)
|
|
775
|
-
* @param {object} [params] extra parameters specific to the
|
|
775
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
776
776
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
777
777
|
*/
|
|
778
778
|
await this.loadMarkets();
|
|
@@ -837,7 +837,7 @@ export default class coinsph extends Exchange {
|
|
|
837
837
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
838
838
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
839
839
|
* @param {int} [limit] the maximum amount of trades to fetch (default 500, max 1000)
|
|
840
|
-
* @param {object} [params] extra parameters specific to the
|
|
840
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
841
841
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
842
842
|
*/
|
|
843
843
|
await this.loadMarkets();
|
|
@@ -878,7 +878,7 @@ export default class coinsph extends Exchange {
|
|
|
878
878
|
* @param {string} symbol unified market symbol
|
|
879
879
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
880
880
|
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
881
|
-
* @param {object} [params] extra parameters specific to the
|
|
881
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
882
882
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
883
883
|
*/
|
|
884
884
|
if (symbol === undefined) {
|
|
@@ -909,7 +909,7 @@ export default class coinsph extends Exchange {
|
|
|
909
909
|
* @param {string} symbol unified market symbol
|
|
910
910
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
911
911
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
912
|
-
* @param {object} [params] extra parameters specific to the
|
|
912
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
913
913
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
914
914
|
*/
|
|
915
915
|
if (symbol === undefined) {
|
|
@@ -1011,7 +1011,7 @@ export default class coinsph extends Exchange {
|
|
|
1011
1011
|
* @method
|
|
1012
1012
|
* @name coinsph#fetchBalance
|
|
1013
1013
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1014
|
-
* @param {object} [params] extra parameters specific to the
|
|
1014
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1015
1015
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1016
1016
|
*/
|
|
1017
1017
|
await this.loadMarkets();
|
|
@@ -1068,7 +1068,7 @@ export default class coinsph extends Exchange {
|
|
|
1068
1068
|
* @param {string} side 'buy' or 'sell'
|
|
1069
1069
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1070
1070
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1071
|
-
* @param {object} [params] extra parameters specific to the
|
|
1071
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1072
1072
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1073
1073
|
*/
|
|
1074
1074
|
// todo: add test order low priority
|
|
@@ -1170,7 +1170,7 @@ export default class coinsph extends Exchange {
|
|
|
1170
1170
|
* @description fetches information on an order made by the user
|
|
1171
1171
|
* @param {int|string} id order id
|
|
1172
1172
|
* @param {string} symbol not used by coinsph fetchOrder ()
|
|
1173
|
-
* @param {object} [params] extra parameters specific to the
|
|
1173
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1174
1174
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1175
1175
|
*/
|
|
1176
1176
|
await this.loadMarkets();
|
|
@@ -1194,7 +1194,7 @@ export default class coinsph extends Exchange {
|
|
|
1194
1194
|
* @param {string} symbol unified market symbol
|
|
1195
1195
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1196
1196
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1197
|
-
* @param {object} [params] extra parameters specific to the
|
|
1197
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1198
1198
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1199
1199
|
*/
|
|
1200
1200
|
await this.loadMarkets();
|
|
@@ -1215,7 +1215,7 @@ export default class coinsph extends Exchange {
|
|
|
1215
1215
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1216
1216
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1217
1217
|
* @param {int} [limit] the maximum number of order structures to retrieve (default 500, max 1000)
|
|
1218
|
-
* @param {object} [params] extra parameters specific to the
|
|
1218
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1219
1219
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1220
1220
|
*/
|
|
1221
1221
|
if (symbol === undefined) {
|
|
@@ -1244,7 +1244,7 @@ export default class coinsph extends Exchange {
|
|
|
1244
1244
|
* @description cancels an open order
|
|
1245
1245
|
* @param {string} id order id
|
|
1246
1246
|
* @param {string} symbol not used by coinsph cancelOrder ()
|
|
1247
|
-
* @param {object} [params] extra parameters specific to the
|
|
1247
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1248
1248
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1249
1249
|
*/
|
|
1250
1250
|
await this.loadMarkets();
|
|
@@ -1266,7 +1266,7 @@ export default class coinsph extends Exchange {
|
|
|
1266
1266
|
* @name coinsph#cancelAllOrders
|
|
1267
1267
|
* @description cancel open orders of market
|
|
1268
1268
|
* @param {string} symbol unified market symbol
|
|
1269
|
-
* @param {object} [params] extra parameters specific to the
|
|
1269
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1270
1270
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1271
1271
|
*/
|
|
1272
1272
|
if (symbol === undefined) {
|
|
@@ -1448,7 +1448,7 @@ export default class coinsph extends Exchange {
|
|
|
1448
1448
|
* @name coinsph#fetchTradingFee
|
|
1449
1449
|
* @description fetch the trading fees for a market
|
|
1450
1450
|
* @param {string} symbol unified market symbol
|
|
1451
|
-
* @param {object} [params] extra parameters specific to the
|
|
1451
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1452
1452
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1453
1453
|
*/
|
|
1454
1454
|
await this.loadMarkets();
|
|
@@ -1474,7 +1474,7 @@ export default class coinsph extends Exchange {
|
|
|
1474
1474
|
* @method
|
|
1475
1475
|
* @name coinsph#fetchTradingFees
|
|
1476
1476
|
* @description fetch the trading fees for multiple markets
|
|
1477
|
-
* @param {object} [params] extra parameters specific to the
|
|
1477
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1478
1478
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1479
1479
|
*/
|
|
1480
1480
|
await this.loadMarkets();
|
|
@@ -1529,7 +1529,7 @@ export default class coinsph extends Exchange {
|
|
|
1529
1529
|
* @param {float} amount the amount to withdraw
|
|
1530
1530
|
* @param {string} address not used by coinsph withdraw ()
|
|
1531
1531
|
* @param {string} tag
|
|
1532
|
-
* @param {object} [params] extra parameters specific to the
|
|
1532
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1533
1533
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1534
1534
|
*/
|
|
1535
1535
|
const options = this.safeValue(this.options, 'withdraw');
|
|
@@ -1566,7 +1566,7 @@ export default class coinsph extends Exchange {
|
|
|
1566
1566
|
* @param {float} amount the amount to deposit
|
|
1567
1567
|
* @param {string} address not used by coinsph deposit ()
|
|
1568
1568
|
* @param {string} tag
|
|
1569
|
-
* @param {object} [params] extra parameters specific to the
|
|
1569
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1570
1570
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1571
1571
|
*/
|
|
1572
1572
|
const options = this.safeValue(this.options, 'deposit');
|
|
@@ -1595,7 +1595,7 @@ export default class coinsph extends Exchange {
|
|
|
1595
1595
|
* @param {string} code unified currency code
|
|
1596
1596
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1597
1597
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1598
|
-
* @param {object} [params] extra parameters specific to the
|
|
1598
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1599
1599
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1600
1600
|
*/
|
|
1601
1601
|
// todo: returns an empty array - find out why
|
|
@@ -1652,7 +1652,7 @@ export default class coinsph extends Exchange {
|
|
|
1652
1652
|
* @param {string} code unified currency code
|
|
1653
1653
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1654
1654
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1655
|
-
* @param {object} [params] extra parameters specific to the
|
|
1655
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1656
1656
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1657
1657
|
*/
|
|
1658
1658
|
// todo: returns an empty array - find out why
|
|
@@ -1814,7 +1814,7 @@ export default class coinsph extends Exchange {
|
|
|
1814
1814
|
* @description fetch the deposit address for a currency associated with this account
|
|
1815
1815
|
* @see https://coins-docs.github.io/rest-api/#deposit-address-user_data
|
|
1816
1816
|
* @param {string} code unified currency code
|
|
1817
|
-
* @param {object} [params] extra parameters specific to the
|
|
1817
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1818
1818
|
* @param {string} [params.network] network for fetch deposit address
|
|
1819
1819
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1820
1820
|
*/
|
package/js/src/coinspot.js
CHANGED
|
@@ -176,7 +176,7 @@ export default class coinspot extends Exchange {
|
|
|
176
176
|
* @method
|
|
177
177
|
* @name coinspot#fetchBalance
|
|
178
178
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
179
|
-
* @param {object} [params] extra parameters specific to the
|
|
179
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
180
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
181
181
|
*/
|
|
182
182
|
await this.loadMarkets();
|
|
@@ -207,7 +207,7 @@ export default class coinspot extends Exchange {
|
|
|
207
207
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
208
208
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
209
209
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
210
|
-
* @param {object} [params] extra parameters specific to the
|
|
210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
211
211
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
212
212
|
*/
|
|
213
213
|
await this.loadMarkets();
|
|
@@ -259,7 +259,7 @@ export default class coinspot extends Exchange {
|
|
|
259
259
|
* @name coinspot#fetchTicker
|
|
260
260
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
261
261
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
262
|
-
* @param {object} [params] extra parameters specific to the
|
|
262
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
263
263
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
264
264
|
*/
|
|
265
265
|
await this.loadMarkets();
|
|
@@ -287,10 +287,10 @@ export default class coinspot extends Exchange {
|
|
|
287
287
|
/**
|
|
288
288
|
* @method
|
|
289
289
|
* @name coinspot#fetchTickers
|
|
290
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
290
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
291
291
|
* @see https://www.coinspot.com.au/api#latestprices
|
|
292
292
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
293
|
-
* @param {object} [params] extra parameters specific to the
|
|
293
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
294
294
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
@@ -334,7 +334,7 @@ export default class coinspot extends Exchange {
|
|
|
334
334
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
335
335
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
336
336
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
337
|
-
* @param {object} [params] extra parameters specific to the
|
|
337
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
338
338
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
339
339
|
*/
|
|
340
340
|
await this.loadMarkets();
|
|
@@ -362,7 +362,7 @@ export default class coinspot extends Exchange {
|
|
|
362
362
|
* @param {string} symbol unified market symbol
|
|
363
363
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
364
364
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
365
|
-
* @param {object} [params] extra parameters specific to the
|
|
365
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
366
366
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
367
367
|
*/
|
|
368
368
|
await this.loadMarkets();
|
|
@@ -493,7 +493,7 @@ export default class coinspot extends Exchange {
|
|
|
493
493
|
* @param {string} side 'buy' or 'sell'
|
|
494
494
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
495
495
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
496
|
-
* @param {object} [params] extra parameters specific to the
|
|
496
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
497
497
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
498
498
|
*/
|
|
499
499
|
await this.loadMarkets();
|
|
@@ -516,7 +516,7 @@ export default class coinspot extends Exchange {
|
|
|
516
516
|
* @description cancels an open order
|
|
517
517
|
* @param {string} id order id
|
|
518
518
|
* @param {string} symbol not used by coinspot cancelOrder ()
|
|
519
|
-
* @param {object} [params] extra parameters specific to the
|
|
519
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
520
520
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
521
521
|
*/
|
|
522
522
|
const side = this.safeString(params, 'side');
|