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
|
@@ -358,7 +358,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
358
358
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
359
359
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
360
360
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
361
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
361
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
362
362
|
*/
|
|
363
363
|
return await this.fetchL3OrderBook(symbol, limit, params);
|
|
364
364
|
}
|
|
@@ -370,7 +370,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
370
370
|
* @param {string} symbol unified market symbol
|
|
371
371
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
372
372
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
373
|
-
* @returns {object} an [order book structure]{@link https://
|
|
373
|
+
* @returns {object} an [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
|
|
374
374
|
*/
|
|
375
375
|
await this.loadMarkets();
|
|
376
376
|
const market = this.market(symbol);
|
|
@@ -439,7 +439,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
439
439
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
440
440
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
441
441
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
442
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
442
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
443
443
|
*/
|
|
444
444
|
await this.loadMarkets();
|
|
445
445
|
const market = this.market(symbol);
|
|
@@ -456,7 +456,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
456
456
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
457
457
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
458
458
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
459
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
459
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
460
460
|
*/
|
|
461
461
|
await this.loadMarkets();
|
|
462
462
|
const tickers = await this.publicGetTickers(params);
|
|
@@ -538,9 +538,9 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
538
538
|
* @param {string} type 'market' or 'limit'
|
|
539
539
|
* @param {string} side 'buy' or 'sell'
|
|
540
540
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
541
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
541
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
542
542
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
543
|
-
* @returns {object} an [order structure]{@link https://
|
|
543
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
544
544
|
*/
|
|
545
545
|
await this.loadMarkets();
|
|
546
546
|
const market = this.market(symbol);
|
|
@@ -599,7 +599,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
599
599
|
* @param {string} id order id
|
|
600
600
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
601
601
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
602
|
-
* @returns {object} An [order structure]{@link https://
|
|
602
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
603
603
|
*/
|
|
604
604
|
const request = {
|
|
605
605
|
'orderId': id,
|
|
@@ -617,7 +617,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
617
617
|
* @description cancel all open orders
|
|
618
618
|
* @param {string} symbol unified market symbol of the market to cancel orders in, all markets are used if undefined, default is undefined
|
|
619
619
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
620
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
620
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
621
621
|
*/
|
|
622
622
|
// cancels all open orders if no symbol specified
|
|
623
623
|
// cancels all open orders of specified symbol, if symbol is specified
|
|
@@ -641,7 +641,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
641
641
|
* @name blockchaincom#fetchTradingFees
|
|
642
642
|
* @description fetch the trading fees for multiple markets
|
|
643
643
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
644
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
644
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
645
645
|
*/
|
|
646
646
|
await this.loadMarkets();
|
|
647
647
|
const response = await this.privateGetFees(params);
|
|
@@ -675,7 +675,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
675
675
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
676
676
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
677
677
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
678
|
-
* @returns {object} a list of [order structures]{@link https://
|
|
678
|
+
* @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
679
679
|
*/
|
|
680
680
|
const state = 'CANCELED';
|
|
681
681
|
return await this.fetchOrdersByState(state, symbol, since, limit, params);
|
|
@@ -689,7 +689,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
689
689
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
690
690
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
691
691
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
692
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
692
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
693
693
|
*/
|
|
694
694
|
const state = 'FILLED';
|
|
695
695
|
return await this.fetchOrdersByState(state, symbol, since, limit, params);
|
|
@@ -703,7 +703,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
703
703
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
704
704
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
705
705
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
706
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
706
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
707
707
|
*/
|
|
708
708
|
const state = 'OPEN';
|
|
709
709
|
return await this.fetchOrdersByState(state, symbol, since, limit, params);
|
|
@@ -779,7 +779,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
779
779
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
780
780
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
781
781
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
782
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
782
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
783
783
|
*/
|
|
784
784
|
await this.loadMarkets();
|
|
785
785
|
const request = {};
|
|
@@ -801,7 +801,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
801
801
|
* @description fetch the deposit address for a currency associated with this account
|
|
802
802
|
* @param {string} code unified currency code
|
|
803
803
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
804
|
-
* @returns {object} an [address structure]{@link https://
|
|
804
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
805
805
|
*/
|
|
806
806
|
await this.loadMarkets();
|
|
807
807
|
const currency = this.currency(code);
|
|
@@ -956,7 +956,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
956
956
|
* @param {string} address the address to withdraw to
|
|
957
957
|
* @param {string} tag
|
|
958
958
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
959
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
959
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
960
960
|
*/
|
|
961
961
|
await this.loadMarkets();
|
|
962
962
|
const currency = this.currency(code);
|
|
@@ -989,7 +989,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
989
989
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
990
990
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
991
991
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
992
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
992
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
993
993
|
*/
|
|
994
994
|
await this.loadMarkets();
|
|
995
995
|
const request = {
|
|
@@ -1014,7 +1014,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
1014
1014
|
* @param {string} id withdrawal id
|
|
1015
1015
|
* @param {string} code not used by blockchaincom.fetchWithdrawal
|
|
1016
1016
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1017
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1017
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1018
1018
|
*/
|
|
1019
1019
|
await this.loadMarkets();
|
|
1020
1020
|
const request = {
|
|
@@ -1032,7 +1032,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
1032
1032
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1033
1033
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1034
1034
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1035
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1035
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1036
1036
|
*/
|
|
1037
1037
|
await this.loadMarkets();
|
|
1038
1038
|
const request = {
|
|
@@ -1057,7 +1057,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
1057
1057
|
* @param {string} id deposit id
|
|
1058
1058
|
* @param {string} code not used by blockchaincom fetchDeposit ()
|
|
1059
1059
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1060
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1060
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1061
1061
|
*/
|
|
1062
1062
|
await this.loadMarkets();
|
|
1063
1063
|
const depositId = this.safeString(params, 'depositId', id);
|
|
@@ -1120,7 +1120,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
1120
1120
|
* @description fetches information on an order made by the user
|
|
1121
1121
|
* @param {string} symbol not used by blockchaincom fetchOrder
|
|
1122
1122
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
1123
|
-
* @returns {object} An [order structure]{@link https://
|
|
1123
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1124
1124
|
*/
|
|
1125
1125
|
// note: only works with exchange-order-id
|
|
1126
1126
|
// does not work with clientOrderId
|
package/dist/cjs/src/btcalpha.js
CHANGED
|
@@ -239,7 +239,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
239
239
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
240
240
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
241
241
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
242
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
242
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
243
243
|
*/
|
|
244
244
|
await this.loadMarkets();
|
|
245
245
|
const response = await this.publicGetTicker(params);
|
|
@@ -269,7 +269,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
269
269
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
270
270
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
271
271
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
272
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
272
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
273
273
|
*/
|
|
274
274
|
await this.loadMarkets();
|
|
275
275
|
const market = this.market(symbol);
|
|
@@ -341,7 +341,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
341
341
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
342
342
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
343
343
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
344
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
344
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
345
345
|
*/
|
|
346
346
|
await this.loadMarkets();
|
|
347
347
|
const market = this.market(symbol);
|
|
@@ -447,7 +447,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
447
447
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
448
448
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
449
449
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
450
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
450
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
451
451
|
*/
|
|
452
452
|
await this.loadMarkets();
|
|
453
453
|
let currency = undefined;
|
|
@@ -476,7 +476,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
476
476
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
477
477
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
478
478
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
479
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
479
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
480
480
|
*/
|
|
481
481
|
await this.loadMarkets();
|
|
482
482
|
let currency = undefined;
|
|
@@ -722,9 +722,9 @@ class btcalpha extends btcalpha$1 {
|
|
|
722
722
|
* @param {string} type 'market' or 'limit'
|
|
723
723
|
* @param {string} side 'buy' or 'sell'
|
|
724
724
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
725
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
725
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
726
726
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
727
|
-
* @returns {object} an [order structure]{@link https://
|
|
727
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
728
728
|
*/
|
|
729
729
|
await this.loadMarkets();
|
|
730
730
|
const market = this.market(symbol);
|
|
@@ -753,7 +753,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
753
753
|
* @param {string} id order id
|
|
754
754
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
755
755
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
756
|
-
* @returns {object} An [order structure]{@link https://
|
|
756
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
757
757
|
*/
|
|
758
758
|
const request = {
|
|
759
759
|
'order': id,
|
|
@@ -768,7 +768,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
768
768
|
* @description fetches information on an order made by the user
|
|
769
769
|
* @param {string} symbol not used by btcalpha fetchOrder
|
|
770
770
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
771
|
-
* @returns {object} An [order structure]{@link https://
|
|
771
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
772
772
|
*/
|
|
773
773
|
await this.loadMarkets();
|
|
774
774
|
const request = {
|
|
@@ -786,7 +786,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
786
786
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
787
787
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
788
788
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
789
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
789
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
790
790
|
*/
|
|
791
791
|
await this.loadMarkets();
|
|
792
792
|
const request = {};
|
|
@@ -810,7 +810,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
810
810
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
811
811
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
812
812
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
813
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
813
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
814
814
|
*/
|
|
815
815
|
const request = {
|
|
816
816
|
'status': '1',
|
|
@@ -826,7 +826,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
826
826
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
827
827
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
828
828
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
829
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
829
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
830
830
|
*/
|
|
831
831
|
const request = {
|
|
832
832
|
'status': '3',
|
|
@@ -842,7 +842,7 @@ class btcalpha extends btcalpha$1 {
|
|
|
842
842
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
843
843
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
844
844
|
* @param {object} [params] extra parameters specific to the btcalpha api endpoint
|
|
845
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
845
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
846
846
|
*/
|
|
847
847
|
await this.loadMarkets();
|
|
848
848
|
const request = {};
|
package/dist/cjs/src/btcbox.js
CHANGED
|
@@ -158,7 +158,7 @@ class btcbox extends btcbox$1 {
|
|
|
158
158
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
159
159
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
160
160
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
161
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
161
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
162
162
|
*/
|
|
163
163
|
await this.loadMarkets();
|
|
164
164
|
const market = this.market(symbol);
|
|
@@ -204,7 +204,7 @@ class btcbox extends btcbox$1 {
|
|
|
204
204
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
205
205
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
206
206
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
207
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
207
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
208
208
|
*/
|
|
209
209
|
await this.loadMarkets();
|
|
210
210
|
const market = this.market(symbol);
|
|
@@ -292,9 +292,9 @@ class btcbox extends btcbox$1 {
|
|
|
292
292
|
* @param {string} type 'market' or 'limit'
|
|
293
293
|
* @param {string} side 'buy' or 'sell'
|
|
294
294
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
295
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
295
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
296
296
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
297
|
-
* @returns {object} an [order structure]{@link https://
|
|
297
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
298
298
|
*/
|
|
299
299
|
await this.loadMarkets();
|
|
300
300
|
const market = this.market(symbol);
|
|
@@ -321,7 +321,7 @@ class btcbox extends btcbox$1 {
|
|
|
321
321
|
* @param {string} id order id
|
|
322
322
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
323
323
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
324
|
-
* @returns {object} An [order structure]{@link https://
|
|
324
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
325
325
|
*/
|
|
326
326
|
await this.loadMarkets();
|
|
327
327
|
// a special case for btcbox – default symbol is BTC/JPY
|
|
@@ -415,7 +415,7 @@ class btcbox extends btcbox$1 {
|
|
|
415
415
|
* @description fetches information on an order made by the user
|
|
416
416
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
417
417
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
418
|
-
* @returns {object} An [order structure]{@link https://
|
|
418
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
419
419
|
*/
|
|
420
420
|
await this.loadMarkets();
|
|
421
421
|
// a special case for btcbox – default symbol is BTC/JPY
|
|
@@ -485,7 +485,7 @@ class btcbox extends btcbox$1 {
|
|
|
485
485
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
486
486
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
487
487
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
488
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
488
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
489
489
|
*/
|
|
490
490
|
return await this.fetchOrdersByType('all', symbol, since, limit, params);
|
|
491
491
|
}
|
|
@@ -498,7 +498,7 @@ class btcbox extends btcbox$1 {
|
|
|
498
498
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
499
499
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
500
500
|
* @param {object} [params] extra parameters specific to the btcbox api endpoint
|
|
501
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
501
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
502
502
|
*/
|
|
503
503
|
return await this.fetchOrdersByType('open', symbol, since, limit, params);
|
|
504
504
|
}
|
|
@@ -195,7 +195,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
195
195
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
196
196
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
197
197
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
198
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
198
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
199
199
|
*/
|
|
200
200
|
return await this.fetchTransactionsWithMethod('privateGetTransfers', code, since, limit, params);
|
|
201
201
|
}
|
|
@@ -208,7 +208,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
208
208
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
209
209
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
210
210
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
211
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
211
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
212
212
|
*/
|
|
213
213
|
return await this.fetchTransactionsWithMethod('privateGetDeposits', code, since, limit, params);
|
|
214
214
|
}
|
|
@@ -221,7 +221,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
221
221
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
222
222
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
223
223
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
224
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
224
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
225
225
|
*/
|
|
226
226
|
return await this.fetchTransactionsWithMethod('privateGetWithdrawals', code, since, limit, params);
|
|
227
227
|
}
|
|
@@ -544,7 +544,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
544
544
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
545
545
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
546
546
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
547
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
547
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
548
548
|
*/
|
|
549
549
|
await this.loadMarkets();
|
|
550
550
|
const market = this.market(symbol);
|
|
@@ -630,7 +630,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
630
630
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
631
631
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
632
632
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
633
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
633
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
634
634
|
*/
|
|
635
635
|
await this.loadMarkets();
|
|
636
636
|
const market = this.market(symbol);
|
|
@@ -767,9 +767,9 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
767
767
|
* @param {string} type 'market' or 'limit'
|
|
768
768
|
* @param {string} side 'buy' or 'sell'
|
|
769
769
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
770
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
770
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
771
771
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
772
|
-
* @returns {object} an [order structure]{@link https://
|
|
772
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
773
773
|
*/
|
|
774
774
|
await this.loadMarkets();
|
|
775
775
|
const market = this.market(symbol);
|
|
@@ -866,7 +866,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
866
866
|
* @param {string[]} ids order ids
|
|
867
867
|
* @param {string} symbol not used by btcmarkets cancelOrders ()
|
|
868
868
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
869
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
869
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
870
870
|
*/
|
|
871
871
|
await this.loadMarkets();
|
|
872
872
|
for (let i = 0; i < ids.length; i++) {
|
|
@@ -885,7 +885,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
885
885
|
* @param {string} id order id
|
|
886
886
|
* @param {string} symbol not used by btcmarket cancelOrder ()
|
|
887
887
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
888
|
-
* @returns {object} An [order structure]{@link https://
|
|
888
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
889
889
|
*/
|
|
890
890
|
await this.loadMarkets();
|
|
891
891
|
const request = {
|
|
@@ -1003,7 +1003,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1003
1003
|
* @description fetches information on an order made by the user
|
|
1004
1004
|
* @param {string} symbol not used by btcmarkets fetchOrder
|
|
1005
1005
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1006
|
-
* @returns {object} An [order structure]{@link https://
|
|
1006
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1007
1007
|
*/
|
|
1008
1008
|
await this.loadMarkets();
|
|
1009
1009
|
const request = {
|
|
@@ -1021,7 +1021,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1021
1021
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1022
1022
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1023
1023
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1024
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1024
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1025
1025
|
*/
|
|
1026
1026
|
await this.loadMarkets();
|
|
1027
1027
|
const request = {
|
|
@@ -1050,7 +1050,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1050
1050
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1051
1051
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1052
1052
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1053
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1053
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1054
1054
|
*/
|
|
1055
1055
|
const request = { 'status': 'open' };
|
|
1056
1056
|
return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
|
|
@@ -1064,7 +1064,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1064
1064
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1065
1065
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1066
1066
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1067
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1067
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1068
1068
|
*/
|
|
1069
1069
|
const orders = await this.fetchOrders(symbol, since, limit, params);
|
|
1070
1070
|
return this.filterBy(orders, 'status', 'closed');
|
|
@@ -1078,7 +1078,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1078
1078
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1079
1079
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1080
1080
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1081
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1081
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1082
1082
|
*/
|
|
1083
1083
|
await this.loadMarkets();
|
|
1084
1084
|
const request = {};
|
|
@@ -1133,7 +1133,7 @@ class btcmarkets extends btcmarkets$1 {
|
|
|
1133
1133
|
* @param {string} address the address to withdraw to
|
|
1134
1134
|
* @param {string} tag
|
|
1135
1135
|
* @param {object} [params] extra parameters specific to the btcmarkets api endpoint
|
|
1136
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1136
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1137
1137
|
*/
|
|
1138
1138
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1139
1139
|
await this.loadMarkets();
|
|
@@ -168,7 +168,7 @@ class btctradeua extends btctradeua$1 {
|
|
|
168
168
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
169
169
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
170
170
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
171
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
171
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
172
172
|
*/
|
|
173
173
|
await this.loadMarkets();
|
|
174
174
|
const market = this.market(symbol);
|
|
@@ -261,7 +261,7 @@ class btctradeua extends btctradeua$1 {
|
|
|
261
261
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
262
262
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
263
263
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
264
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
264
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
265
265
|
*/
|
|
266
266
|
await this.loadMarkets();
|
|
267
267
|
const market = this.market(symbol);
|
|
@@ -423,9 +423,9 @@ class btctradeua extends btctradeua$1 {
|
|
|
423
423
|
* @param {string} type must be 'limit'
|
|
424
424
|
* @param {string} side 'buy' or 'sell'
|
|
425
425
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
426
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
426
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
427
427
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
428
|
-
* @returns {object} an [order structure]{@link https://
|
|
428
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
429
429
|
*/
|
|
430
430
|
if (type === 'market') {
|
|
431
431
|
throw new errors.ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -449,7 +449,7 @@ class btctradeua extends btctradeua$1 {
|
|
|
449
449
|
* @param {string} id order id
|
|
450
450
|
* @param {string} symbol not used by btctradeua cancelOrder ()
|
|
451
451
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
452
|
-
* @returns {object} An [order structure]{@link https://
|
|
452
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
453
453
|
*/
|
|
454
454
|
const request = {
|
|
455
455
|
'id': id,
|
|
@@ -497,7 +497,7 @@ class btctradeua extends btctradeua$1 {
|
|
|
497
497
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
498
498
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
499
499
|
* @param {object} [params] extra parameters specific to the btctradeua api endpoint
|
|
500
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
500
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
501
501
|
*/
|
|
502
502
|
if (symbol === undefined) {
|
|
503
503
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
package/dist/cjs/src/btcturk.js
CHANGED
|
@@ -319,7 +319,7 @@ class btcturk extends btcturk$1 {
|
|
|
319
319
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
320
320
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
321
321
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
322
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
322
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
323
323
|
*/
|
|
324
324
|
await this.loadMarkets();
|
|
325
325
|
const market = this.market(symbol);
|
|
@@ -398,7 +398,7 @@ class btcturk extends btcturk$1 {
|
|
|
398
398
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
399
399
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
400
400
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
401
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
401
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
402
402
|
*/
|
|
403
403
|
await this.loadMarkets();
|
|
404
404
|
const response = await this.publicGetTicker(params);
|
|
@@ -412,7 +412,7 @@ class btcturk extends btcturk$1 {
|
|
|
412
412
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
413
413
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
414
414
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
415
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
415
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
416
416
|
*/
|
|
417
417
|
await this.loadMarkets();
|
|
418
418
|
const tickers = await this.fetchTickers([symbol], params);
|
|
@@ -652,9 +652,9 @@ class btcturk extends btcturk$1 {
|
|
|
652
652
|
* @param {string} type 'market' or 'limit'
|
|
653
653
|
* @param {string} side 'buy' or 'sell'
|
|
654
654
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
655
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
655
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
656
656
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
657
|
-
* @returns {object} an [order structure]{@link https://
|
|
657
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
658
658
|
*/
|
|
659
659
|
await this.loadMarkets();
|
|
660
660
|
const market = this.market(symbol);
|
|
@@ -685,7 +685,7 @@ class btcturk extends btcturk$1 {
|
|
|
685
685
|
* @param {string} id order id
|
|
686
686
|
* @param {string} symbol not used by btcturk cancelOrder ()
|
|
687
687
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
688
|
-
* @returns {object} An [order structure]{@link https://
|
|
688
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
689
689
|
*/
|
|
690
690
|
const request = {
|
|
691
691
|
'id': id,
|
|
@@ -701,7 +701,7 @@ class btcturk extends btcturk$1 {
|
|
|
701
701
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
702
702
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
703
703
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
704
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
704
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
705
705
|
*/
|
|
706
706
|
await this.loadMarkets();
|
|
707
707
|
const request = {};
|
|
@@ -725,7 +725,7 @@ class btcturk extends btcturk$1 {
|
|
|
725
725
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
726
726
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
727
727
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
728
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
728
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
729
729
|
*/
|
|
730
730
|
await this.loadMarkets();
|
|
731
731
|
const market = this.market(symbol);
|
|
@@ -847,7 +847,7 @@ class btcturk extends btcturk$1 {
|
|
|
847
847
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
848
848
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
849
849
|
* @param {object} [params] extra parameters specific to the btcturk api endpoint
|
|
850
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
850
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
851
851
|
*/
|
|
852
852
|
await this.loadMarkets();
|
|
853
853
|
let market = undefined;
|