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/blockchaincom.js
CHANGED
|
@@ -361,7 +361,7 @@ export default class blockchaincom extends Exchange {
|
|
|
361
361
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
362
362
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
363
363
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
364
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
364
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
365
365
|
*/
|
|
366
366
|
return await this.fetchL3OrderBook(symbol, limit, params);
|
|
367
367
|
}
|
|
@@ -373,7 +373,7 @@ export default class blockchaincom extends Exchange {
|
|
|
373
373
|
* @param {string} symbol unified market symbol
|
|
374
374
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
375
375
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
376
|
-
* @returns {object} an [order book structure]{@link https://
|
|
376
|
+
* @returns {object} an [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
|
|
377
377
|
*/
|
|
378
378
|
await this.loadMarkets();
|
|
379
379
|
const market = this.market(symbol);
|
|
@@ -442,7 +442,7 @@ export default class blockchaincom extends Exchange {
|
|
|
442
442
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
443
443
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
444
444
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
445
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
445
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
446
446
|
*/
|
|
447
447
|
await this.loadMarkets();
|
|
448
448
|
const market = this.market(symbol);
|
|
@@ -459,7 +459,7 @@ export default class blockchaincom extends Exchange {
|
|
|
459
459
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
460
460
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
461
461
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
462
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
462
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
463
463
|
*/
|
|
464
464
|
await this.loadMarkets();
|
|
465
465
|
const tickers = await this.publicGetTickers(params);
|
|
@@ -541,9 +541,9 @@ export default class blockchaincom extends Exchange {
|
|
|
541
541
|
* @param {string} type 'market' or 'limit'
|
|
542
542
|
* @param {string} side 'buy' or 'sell'
|
|
543
543
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
544
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
544
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
545
545
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
546
|
-
* @returns {object} an [order structure]{@link https://
|
|
546
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
547
547
|
*/
|
|
548
548
|
await this.loadMarkets();
|
|
549
549
|
const market = this.market(symbol);
|
|
@@ -602,7 +602,7 @@ export default class blockchaincom extends Exchange {
|
|
|
602
602
|
* @param {string} id order id
|
|
603
603
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
604
604
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
605
|
-
* @returns {object} An [order structure]{@link https://
|
|
605
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
606
606
|
*/
|
|
607
607
|
const request = {
|
|
608
608
|
'orderId': id,
|
|
@@ -620,7 +620,7 @@ export default class blockchaincom extends Exchange {
|
|
|
620
620
|
* @description cancel all open orders
|
|
621
621
|
* @param {string} symbol unified market symbol of the market to cancel orders in, all markets are used if undefined, default is undefined
|
|
622
622
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
623
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
623
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
624
624
|
*/
|
|
625
625
|
// cancels all open orders if no symbol specified
|
|
626
626
|
// cancels all open orders of specified symbol, if symbol is specified
|
|
@@ -644,7 +644,7 @@ export default class blockchaincom extends Exchange {
|
|
|
644
644
|
* @name blockchaincom#fetchTradingFees
|
|
645
645
|
* @description fetch the trading fees for multiple markets
|
|
646
646
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
647
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
647
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
648
648
|
*/
|
|
649
649
|
await this.loadMarkets();
|
|
650
650
|
const response = await this.privateGetFees(params);
|
|
@@ -678,7 +678,7 @@ export default class blockchaincom extends Exchange {
|
|
|
678
678
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
679
679
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
680
680
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
681
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
681
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
682
682
|
*/
|
|
683
683
|
const state = 'CANCELED';
|
|
684
684
|
return await this.fetchOrdersByState(state, symbol, since, limit, params);
|
|
@@ -692,7 +692,7 @@ export default class blockchaincom extends Exchange {
|
|
|
692
692
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
693
693
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
694
694
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
695
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
695
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
696
696
|
*/
|
|
697
697
|
const state = 'FILLED';
|
|
698
698
|
return await this.fetchOrdersByState(state, symbol, since, limit, params);
|
|
@@ -706,7 +706,7 @@ export default class blockchaincom extends Exchange {
|
|
|
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
708
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
709
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
709
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
710
710
|
*/
|
|
711
711
|
const state = 'OPEN';
|
|
712
712
|
return await this.fetchOrdersByState(state, symbol, since, limit, params);
|
|
@@ -782,7 +782,7 @@ export default class blockchaincom extends Exchange {
|
|
|
782
782
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
783
783
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
784
784
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
785
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
785
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
786
786
|
*/
|
|
787
787
|
await this.loadMarkets();
|
|
788
788
|
const request = {};
|
|
@@ -804,7 +804,7 @@ export default class blockchaincom extends Exchange {
|
|
|
804
804
|
* @description fetch the deposit address for a currency associated with this account
|
|
805
805
|
* @param {string} code unified currency code
|
|
806
806
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
807
|
-
* @returns {object} an [address structure]{@link https://
|
|
807
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
808
808
|
*/
|
|
809
809
|
await this.loadMarkets();
|
|
810
810
|
const currency = this.currency(code);
|
|
@@ -959,7 +959,7 @@ export default class blockchaincom extends Exchange {
|
|
|
959
959
|
* @param {string} address the address to withdraw to
|
|
960
960
|
* @param {string} tag
|
|
961
961
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
962
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
962
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
963
963
|
*/
|
|
964
964
|
await this.loadMarkets();
|
|
965
965
|
const currency = this.currency(code);
|
|
@@ -992,7 +992,7 @@ export default class blockchaincom extends Exchange {
|
|
|
992
992
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
993
993
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
994
994
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
995
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
995
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
996
996
|
*/
|
|
997
997
|
await this.loadMarkets();
|
|
998
998
|
const request = {
|
|
@@ -1017,7 +1017,7 @@ export default class blockchaincom extends Exchange {
|
|
|
1017
1017
|
* @param {string} id withdrawal id
|
|
1018
1018
|
* @param {string} code not used by blockchaincom.fetchWithdrawal
|
|
1019
1019
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1020
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1020
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1021
1021
|
*/
|
|
1022
1022
|
await this.loadMarkets();
|
|
1023
1023
|
const request = {
|
|
@@ -1035,7 +1035,7 @@ export default class blockchaincom extends Exchange {
|
|
|
1035
1035
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1036
1036
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1037
1037
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1038
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1038
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1039
1039
|
*/
|
|
1040
1040
|
await this.loadMarkets();
|
|
1041
1041
|
const request = {
|
|
@@ -1060,7 +1060,7 @@ export default class blockchaincom extends Exchange {
|
|
|
1060
1060
|
* @param {string} id deposit id
|
|
1061
1061
|
* @param {string} code not used by blockchaincom fetchDeposit ()
|
|
1062
1062
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1063
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1063
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1064
1064
|
*/
|
|
1065
1065
|
await this.loadMarkets();
|
|
1066
1066
|
const depositId = this.safeString(params, 'depositId', id);
|
|
@@ -1123,7 +1123,7 @@ export default class blockchaincom extends Exchange {
|
|
|
1123
1123
|
* @description fetches information on an order made by the user
|
|
1124
1124
|
* @param {string} symbol not used by blockchaincom fetchOrder
|
|
1125
1125
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1126
|
-
* @returns {object} An [order structure]{@link https://
|
|
1126
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1127
1127
|
*/
|
|
1128
1128
|
// note: only works with exchange-order-id
|
|
1129
1129
|
// does not work with clientOrderId
|
package/js/src/btcalpha.js
CHANGED
|
@@ -242,7 +242,7 @@ export default class btcalpha extends Exchange {
|
|
|
242
242
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
243
243
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
244
244
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
245
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
245
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
246
246
|
*/
|
|
247
247
|
await this.loadMarkets();
|
|
248
248
|
const response = await this.publicGetTicker(params);
|
|
@@ -272,7 +272,7 @@ export default class btcalpha extends Exchange {
|
|
|
272
272
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
273
273
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
274
274
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
275
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
275
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
276
276
|
*/
|
|
277
277
|
await this.loadMarkets();
|
|
278
278
|
const market = this.market(symbol);
|
|
@@ -344,7 +344,7 @@ export default class btcalpha extends Exchange {
|
|
|
344
344
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
345
345
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
346
346
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
347
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
347
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
348
348
|
*/
|
|
349
349
|
await this.loadMarkets();
|
|
350
350
|
const market = this.market(symbol);
|
|
@@ -450,7 +450,7 @@ export default class btcalpha extends Exchange {
|
|
|
450
450
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
451
451
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
452
452
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
453
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
453
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
454
454
|
*/
|
|
455
455
|
await this.loadMarkets();
|
|
456
456
|
let currency = undefined;
|
|
@@ -479,7 +479,7 @@ export default class btcalpha extends Exchange {
|
|
|
479
479
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
480
480
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
481
481
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
482
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
482
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
483
483
|
*/
|
|
484
484
|
await this.loadMarkets();
|
|
485
485
|
let currency = undefined;
|
|
@@ -725,9 +725,9 @@ export default class btcalpha extends Exchange {
|
|
|
725
725
|
* @param {string} type 'market' or 'limit'
|
|
726
726
|
* @param {string} side 'buy' or 'sell'
|
|
727
727
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
728
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
728
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
729
729
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
730
|
-
* @returns {object} an [order structure]{@link https://
|
|
730
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
731
731
|
*/
|
|
732
732
|
await this.loadMarkets();
|
|
733
733
|
const market = this.market(symbol);
|
|
@@ -756,7 +756,7 @@ export default class btcalpha extends Exchange {
|
|
|
756
756
|
* @param {string} id order id
|
|
757
757
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
758
758
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
759
|
-
* @returns {object} An [order structure]{@link https://
|
|
759
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
760
760
|
*/
|
|
761
761
|
const request = {
|
|
762
762
|
'order': id,
|
|
@@ -771,7 +771,7 @@ export default class btcalpha extends Exchange {
|
|
|
771
771
|
* @description fetches information on an order made by the user
|
|
772
772
|
* @param {string} symbol not used by btcalpha fetchOrder
|
|
773
773
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
774
|
-
* @returns {object} An [order structure]{@link https://
|
|
774
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
775
775
|
*/
|
|
776
776
|
await this.loadMarkets();
|
|
777
777
|
const request = {
|
|
@@ -789,7 +789,7 @@ export default class btcalpha extends Exchange {
|
|
|
789
789
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
790
790
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
791
791
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
792
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
792
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
793
793
|
*/
|
|
794
794
|
await this.loadMarkets();
|
|
795
795
|
const request = {};
|
|
@@ -813,7 +813,7 @@ export default class btcalpha extends Exchange {
|
|
|
813
813
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
814
814
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
815
815
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
816
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
816
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
817
817
|
*/
|
|
818
818
|
const request = {
|
|
819
819
|
'status': '1',
|
|
@@ -829,7 +829,7 @@ export default class btcalpha extends Exchange {
|
|
|
829
829
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
830
830
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
831
831
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
832
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
832
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
833
833
|
*/
|
|
834
834
|
const request = {
|
|
835
835
|
'status': '3',
|
|
@@ -845,7 +845,7 @@ export default class btcalpha extends Exchange {
|
|
|
845
845
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
846
846
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
847
847
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
848
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
848
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
849
849
|
*/
|
|
850
850
|
await this.loadMarkets();
|
|
851
851
|
const request = {};
|
package/js/src/btcbox.js
CHANGED
|
@@ -161,7 +161,7 @@ export default class btcbox extends Exchange {
|
|
|
161
161
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
162
162
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
163
163
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
164
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
164
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
165
165
|
*/
|
|
166
166
|
await this.loadMarkets();
|
|
167
167
|
const market = this.market(symbol);
|
|
@@ -207,7 +207,7 @@ export default class btcbox extends Exchange {
|
|
|
207
207
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
208
208
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
209
209
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
210
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
210
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
211
211
|
*/
|
|
212
212
|
await this.loadMarkets();
|
|
213
213
|
const market = this.market(symbol);
|
|
@@ -295,9 +295,9 @@ export default class btcbox extends Exchange {
|
|
|
295
295
|
* @param {string} type 'market' or 'limit'
|
|
296
296
|
* @param {string} side 'buy' or 'sell'
|
|
297
297
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
298
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
298
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
299
299
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
300
|
-
* @returns {object} an [order structure]{@link https://
|
|
300
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
301
301
|
*/
|
|
302
302
|
await this.loadMarkets();
|
|
303
303
|
const market = this.market(symbol);
|
|
@@ -324,7 +324,7 @@ export default class btcbox extends Exchange {
|
|
|
324
324
|
* @param {string} id order id
|
|
325
325
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
326
326
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
327
|
-
* @returns {object} An [order structure]{@link https://
|
|
327
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
328
328
|
*/
|
|
329
329
|
await this.loadMarkets();
|
|
330
330
|
// a special case for btcbox – default symbol is BTC/JPY
|
|
@@ -418,7 +418,7 @@ export default class btcbox extends Exchange {
|
|
|
418
418
|
* @description fetches information on an order made by the user
|
|
419
419
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
420
420
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
421
|
-
* @returns {object} An [order structure]{@link https://
|
|
421
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
422
422
|
*/
|
|
423
423
|
await this.loadMarkets();
|
|
424
424
|
// a special case for btcbox – default symbol is BTC/JPY
|
|
@@ -488,7 +488,7 @@ export default class btcbox extends Exchange {
|
|
|
488
488
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
489
489
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
490
490
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
491
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
491
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
492
492
|
*/
|
|
493
493
|
return await this.fetchOrdersByType('all', symbol, since, limit, params);
|
|
494
494
|
}
|
|
@@ -501,7 +501,7 @@ export default class btcbox extends Exchange {
|
|
|
501
501
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
502
502
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
503
503
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
504
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
504
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
505
505
|
*/
|
|
506
506
|
return await this.fetchOrdersByType('open', symbol, since, limit, params);
|
|
507
507
|
}
|
package/js/src/btcmarkets.js
CHANGED
|
@@ -198,7 +198,7 @@ export default class btcmarkets extends Exchange {
|
|
|
198
198
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
199
199
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
200
200
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
201
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
201
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
202
202
|
*/
|
|
203
203
|
return await this.fetchTransactionsWithMethod('privateGetTransfers', code, since, limit, params);
|
|
204
204
|
}
|
|
@@ -211,7 +211,7 @@ export default class btcmarkets extends Exchange {
|
|
|
211
211
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
212
212
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
213
213
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
214
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
214
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
215
215
|
*/
|
|
216
216
|
return await this.fetchTransactionsWithMethod('privateGetDeposits', code, since, limit, params);
|
|
217
217
|
}
|
|
@@ -224,7 +224,7 @@ export default class btcmarkets extends Exchange {
|
|
|
224
224
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
225
225
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
226
226
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
227
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
227
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
228
228
|
*/
|
|
229
229
|
return await this.fetchTransactionsWithMethod('privateGetWithdrawals', code, since, limit, params);
|
|
230
230
|
}
|
|
@@ -547,7 +547,7 @@ export default class btcmarkets extends Exchange {
|
|
|
547
547
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
548
548
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
549
549
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
550
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
550
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
551
551
|
*/
|
|
552
552
|
await this.loadMarkets();
|
|
553
553
|
const market = this.market(symbol);
|
|
@@ -633,7 +633,7 @@ export default class btcmarkets extends Exchange {
|
|
|
633
633
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
634
634
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
635
635
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
636
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
636
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
637
637
|
*/
|
|
638
638
|
await this.loadMarkets();
|
|
639
639
|
const market = this.market(symbol);
|
|
@@ -770,9 +770,9 @@ export default class btcmarkets extends Exchange {
|
|
|
770
770
|
* @param {string} type 'market' or 'limit'
|
|
771
771
|
* @param {string} side 'buy' or 'sell'
|
|
772
772
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
773
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
773
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
774
774
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
775
|
-
* @returns {object} an [order structure]{@link https://
|
|
775
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
776
776
|
*/
|
|
777
777
|
await this.loadMarkets();
|
|
778
778
|
const market = this.market(symbol);
|
|
@@ -869,7 +869,7 @@ export default class btcmarkets extends Exchange {
|
|
|
869
869
|
* @param {string[]} ids order ids
|
|
870
870
|
* @param {string} symbol not used by btcmarkets cancelOrders ()
|
|
871
871
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
872
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
872
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
873
873
|
*/
|
|
874
874
|
await this.loadMarkets();
|
|
875
875
|
for (let i = 0; i < ids.length; i++) {
|
|
@@ -888,7 +888,7 @@ export default class btcmarkets extends Exchange {
|
|
|
888
888
|
* @param {string} id order id
|
|
889
889
|
* @param {string} symbol not used by btcmarket cancelOrder ()
|
|
890
890
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
891
|
-
* @returns {object} An [order structure]{@link https://
|
|
891
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
892
892
|
*/
|
|
893
893
|
await this.loadMarkets();
|
|
894
894
|
const request = {
|
|
@@ -1006,7 +1006,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1006
1006
|
* @description fetches information on an order made by the user
|
|
1007
1007
|
* @param {string} symbol not used by btcmarkets fetchOrder
|
|
1008
1008
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1009
|
-
* @returns {object} An [order structure]{@link https://
|
|
1009
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1010
1010
|
*/
|
|
1011
1011
|
await this.loadMarkets();
|
|
1012
1012
|
const request = {
|
|
@@ -1024,7 +1024,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1024
1024
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1025
1025
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1026
1026
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1027
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1027
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1028
1028
|
*/
|
|
1029
1029
|
await this.loadMarkets();
|
|
1030
1030
|
const request = {
|
|
@@ -1053,7 +1053,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1053
1053
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1054
1054
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1055
1055
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1056
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1056
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1057
1057
|
*/
|
|
1058
1058
|
const request = { 'status': 'open' };
|
|
1059
1059
|
return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
|
|
@@ -1067,7 +1067,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1067
1067
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1068
1068
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1069
1069
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1070
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1070
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1071
1071
|
*/
|
|
1072
1072
|
const orders = await this.fetchOrders(symbol, since, limit, params);
|
|
1073
1073
|
return this.filterBy(orders, 'status', 'closed');
|
|
@@ -1081,7 +1081,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1081
1081
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1082
1082
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1083
1083
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1084
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1084
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1085
1085
|
*/
|
|
1086
1086
|
await this.loadMarkets();
|
|
1087
1087
|
const request = {};
|
|
@@ -1136,7 +1136,7 @@ export default class btcmarkets extends Exchange {
|
|
|
1136
1136
|
* @param {string} address the address to withdraw to
|
|
1137
1137
|
* @param {string} tag
|
|
1138
1138
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1139
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1139
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1140
1140
|
*/
|
|
1141
1141
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1142
1142
|
await this.loadMarkets();
|
package/js/src/btctradeua.js
CHANGED
|
@@ -171,7 +171,7 @@ export default class btctradeua extends Exchange {
|
|
|
171
171
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
172
172
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
173
173
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
174
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
174
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
175
175
|
*/
|
|
176
176
|
await this.loadMarkets();
|
|
177
177
|
const market = this.market(symbol);
|
|
@@ -264,7 +264,7 @@ export default class btctradeua extends Exchange {
|
|
|
264
264
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
265
265
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
266
266
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
267
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
267
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
const market = this.market(symbol);
|
|
@@ -426,9 +426,9 @@ export default class btctradeua extends Exchange {
|
|
|
426
426
|
* @param {string} type must be 'limit'
|
|
427
427
|
* @param {string} side 'buy' or 'sell'
|
|
428
428
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
429
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
429
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
430
430
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
431
|
-
* @returns {object} an [order structure]{@link https://
|
|
431
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
432
432
|
*/
|
|
433
433
|
if (type === 'market') {
|
|
434
434
|
throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -452,7 +452,7 @@ export default class btctradeua extends Exchange {
|
|
|
452
452
|
* @param {string} id order id
|
|
453
453
|
* @param {string} symbol not used by btctradeua cancelOrder ()
|
|
454
454
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
455
|
-
* @returns {object} An [order structure]{@link https://
|
|
455
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
456
456
|
*/
|
|
457
457
|
const request = {
|
|
458
458
|
'id': id,
|
|
@@ -500,7 +500,7 @@ export default class btctradeua extends Exchange {
|
|
|
500
500
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
501
501
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
502
502
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
503
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
503
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
504
504
|
*/
|
|
505
505
|
if (symbol === undefined) {
|
|
506
506
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
package/js/src/btcturk.js
CHANGED
|
@@ -322,7 +322,7 @@ export default class btcturk extends Exchange {
|
|
|
322
322
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
323
323
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
324
324
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
325
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
325
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
326
326
|
*/
|
|
327
327
|
await this.loadMarkets();
|
|
328
328
|
const market = this.market(symbol);
|
|
@@ -401,7 +401,7 @@ export default class btcturk extends Exchange {
|
|
|
401
401
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
402
402
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
403
403
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
404
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
404
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
405
405
|
*/
|
|
406
406
|
await this.loadMarkets();
|
|
407
407
|
const response = await this.publicGetTicker(params);
|
|
@@ -415,7 +415,7 @@ export default class btcturk extends Exchange {
|
|
|
415
415
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
416
416
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
417
417
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
418
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
418
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
419
419
|
*/
|
|
420
420
|
await this.loadMarkets();
|
|
421
421
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -655,9 +655,9 @@ export default class btcturk extends Exchange {
|
|
|
655
655
|
* @param {string} type 'market' or 'limit'
|
|
656
656
|
* @param {string} side 'buy' or 'sell'
|
|
657
657
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
658
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
658
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
659
659
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
660
|
-
* @returns {object} an [order structure]{@link https://
|
|
660
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
661
661
|
*/
|
|
662
662
|
await this.loadMarkets();
|
|
663
663
|
const market = this.market(symbol);
|
|
@@ -688,7 +688,7 @@ export default class btcturk extends Exchange {
|
|
|
688
688
|
* @param {string} id order id
|
|
689
689
|
* @param {string} symbol not used by btcturk cancelOrder ()
|
|
690
690
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
691
|
-
* @returns {object} An [order structure]{@link https://
|
|
691
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
692
692
|
*/
|
|
693
693
|
const request = {
|
|
694
694
|
'id': id,
|
|
@@ -704,7 +704,7 @@ export default class btcturk extends Exchange {
|
|
|
704
704
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
705
705
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
706
706
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
707
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
707
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
708
708
|
*/
|
|
709
709
|
await this.loadMarkets();
|
|
710
710
|
const request = {};
|
|
@@ -728,7 +728,7 @@ export default class btcturk extends Exchange {
|
|
|
728
728
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
729
729
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
730
730
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
731
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
731
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
732
732
|
*/
|
|
733
733
|
await this.loadMarkets();
|
|
734
734
|
const market = this.market(symbol);
|
|
@@ -850,7 +850,7 @@ export default class btcturk extends Exchange {
|
|
|
850
850
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
851
851
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
852
852
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
853
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
853
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
854
854
|
*/
|
|
855
855
|
await this.loadMarkets();
|
|
856
856
|
let market = undefined;
|