ccxt 4.0.73 → 4.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
|
@@ -399,7 +399,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
399
399
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
|
|
400
400
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
401
401
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
402
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
402
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
403
403
|
*/
|
|
404
404
|
await this.loadMarkets();
|
|
405
405
|
const market = this.market(symbol);
|
|
@@ -435,7 +435,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
435
435
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
|
|
436
436
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
437
437
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
438
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
438
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
439
439
|
*/
|
|
440
440
|
await this.loadMarkets();
|
|
441
441
|
const response = await this.publicGetTickers(params);
|
|
@@ -451,7 +451,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
451
451
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
452
452
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
453
453
|
* @param {object} [params] extra parameters specific to the poloniexfuturesfutures api endpoint
|
|
454
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
454
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
455
455
|
*/
|
|
456
456
|
await this.loadMarkets();
|
|
457
457
|
const level = this.safeNumber(params, 'level');
|
|
@@ -537,7 +537,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
537
537
|
* @param {string} symbol unified market symbol
|
|
538
538
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
539
539
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
540
|
-
* @returns {object} an [order book structure]{@link https://
|
|
540
|
+
* @returns {object} an [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
|
|
541
541
|
*/
|
|
542
542
|
await this.loadMarkets();
|
|
543
543
|
const market = this.market(symbol);
|
|
@@ -806,7 +806,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
806
806
|
* @param {string} type 'limit' or 'market'
|
|
807
807
|
* @param {string} side 'buy' or 'sell'
|
|
808
808
|
* @param {float} amount the amount of currency to trade
|
|
809
|
-
* @param {float} price *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
809
|
+
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
810
810
|
* @param {object} [params] Extra parameters specific to the exchange API endpoint
|
|
811
811
|
* @param {float} [params.leverage] Leverage size of the order
|
|
812
812
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
@@ -819,7 +819,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
819
819
|
* @param {string} [params.stopPriceType] TP, IP or MP, defaults to TP
|
|
820
820
|
* @param {bool} [params.closeOrder] set to true to close position
|
|
821
821
|
* @param {bool} [params.forceHold] A mark to forcely hold the funds for an order, even though it's an order to reduce the position size. This helps the order stay on the order book and not get canceled when the position size changes. Set to false by default.
|
|
822
|
-
* @returns {object} an [order structure]{@link https://
|
|
822
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
823
823
|
*/
|
|
824
824
|
await this.loadMarkets();
|
|
825
825
|
const market = this.market(symbol);
|
|
@@ -913,7 +913,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
913
913
|
* @param {string} id order id
|
|
914
914
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
915
915
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
916
|
-
* @returns {object} An [order structure]{@link https://
|
|
916
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
917
917
|
*/
|
|
918
918
|
await this.loadMarkets();
|
|
919
919
|
const request = {
|
|
@@ -952,7 +952,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
952
952
|
* @see https://futures-docs.poloniex.com/#get-position-list
|
|
953
953
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
954
954
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
955
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
955
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
956
956
|
*/
|
|
957
957
|
await this.loadMarkets();
|
|
958
958
|
const response = await this.privateGetPositions(params);
|
|
@@ -1108,7 +1108,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1108
1108
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
1109
1109
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1110
1110
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1111
|
-
* @returns {object} a [funding history structure]{@link https://
|
|
1111
|
+
* @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
1112
1112
|
*/
|
|
1113
1113
|
if (symbol === undefined) {
|
|
1114
1114
|
throw new errors.ArgumentsRequired(this.id + ' fetchFundingHistory() requires a symbol argument');
|
|
@@ -1179,7 +1179,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1179
1179
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1180
1180
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1181
1181
|
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1182
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1182
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1183
1183
|
*/
|
|
1184
1184
|
await this.loadMarkets();
|
|
1185
1185
|
const request = {};
|
|
@@ -1247,7 +1247,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1247
1247
|
* @param {int} [params.until] End time in ms
|
|
1248
1248
|
* @param {string} [params.side] buy or sell
|
|
1249
1249
|
* @param {string} [params.type] limit or market
|
|
1250
|
-
* @returns An [array of order structures]{@link https://
|
|
1250
|
+
* @returns An [array of order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1251
1251
|
*/
|
|
1252
1252
|
await this.loadMarkets();
|
|
1253
1253
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1350,7 +1350,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1350
1350
|
* @param {int} [params.till] end time in ms
|
|
1351
1351
|
* @param {string} [params.side] buy or sell
|
|
1352
1352
|
* @param {string} [params.type] limit, or market
|
|
1353
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1353
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1354
1354
|
*/
|
|
1355
1355
|
return await this.fetchOrdersByStatus('open', symbol, since, limit, params);
|
|
1356
1356
|
}
|
|
@@ -1368,7 +1368,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1368
1368
|
* @param {int} [params.till] end time in ms
|
|
1369
1369
|
* @param {string} [params.side] buy or sell
|
|
1370
1370
|
* @param {string} [params.type] limit, or market
|
|
1371
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1371
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1372
1372
|
*/
|
|
1373
1373
|
return await this.fetchOrdersByStatus('closed', symbol, since, limit, params);
|
|
1374
1374
|
}
|
|
@@ -1381,7 +1381,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1381
1381
|
* @see https://futures-docs.poloniex.com/#get-single-order-by-clientoid
|
|
1382
1382
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1383
1383
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1384
|
-
* @returns {object} An [order structure]{@link https://
|
|
1384
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1385
1385
|
*/
|
|
1386
1386
|
await this.loadMarkets();
|
|
1387
1387
|
const request = {};
|
|
@@ -1580,7 +1580,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1580
1580
|
* @see https://futures-docs.poloniex.com/#get-premium-index
|
|
1581
1581
|
* @param {string} symbol unified market symbol
|
|
1582
1582
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1583
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
1583
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
1584
1584
|
*/
|
|
1585
1585
|
await this.loadMarkets();
|
|
1586
1586
|
const market = this.market(symbol);
|
|
@@ -1634,7 +1634,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1634
1634
|
* @param {string} side buy or sell
|
|
1635
1635
|
* @param {string} type limit, market, limit_stop or market_stop
|
|
1636
1636
|
* @param {int} endAt end time (milisecond)
|
|
1637
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1637
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1638
1638
|
*/
|
|
1639
1639
|
await this.loadMarkets();
|
|
1640
1640
|
const request = {};
|
|
@@ -51,7 +51,7 @@ class alpaca extends alpaca$1 {
|
|
|
51
51
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
52
52
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
53
53
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
54
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
54
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
55
55
|
*/
|
|
56
56
|
const url = this.urls['api']['ws']['crypto'];
|
|
57
57
|
await this.authenticate(url);
|
|
@@ -183,7 +183,7 @@ class alpaca extends alpaca$1 {
|
|
|
183
183
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
184
184
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
185
185
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
186
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
186
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
187
187
|
*/
|
|
188
188
|
const url = this.urls['api']['ws']['crypto'];
|
|
189
189
|
await this.authenticate(url);
|
|
@@ -263,7 +263,7 @@ class alpaca extends alpaca$1 {
|
|
|
263
263
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
264
264
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
265
265
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
266
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
266
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
267
267
|
*/
|
|
268
268
|
const url = this.urls['api']['ws']['crypto'];
|
|
269
269
|
await this.authenticate(url);
|
|
@@ -316,7 +316,7 @@ class alpaca extends alpaca$1 {
|
|
|
316
316
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
317
317
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
318
318
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
319
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
319
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
320
320
|
*/
|
|
321
321
|
const url = this.urls['api']['ws']['trading'];
|
|
322
322
|
await this.authenticate(url);
|
|
@@ -347,7 +347,7 @@ class alpaca extends alpaca$1 {
|
|
|
347
347
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
348
348
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
349
349
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
350
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
350
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
351
351
|
*/
|
|
352
352
|
const url = this.urls['api']['ws']['trading'];
|
|
353
353
|
await this.authenticate(url);
|
|
@@ -204,7 +204,7 @@ class ascendex extends ascendex$1 {
|
|
|
204
204
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
205
205
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
206
206
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
207
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
207
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
208
208
|
*/
|
|
209
209
|
await this.loadMarkets();
|
|
210
210
|
const market = this.market(symbol);
|
|
@@ -477,7 +477,7 @@ class ascendex extends ascendex$1 {
|
|
|
477
477
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
478
478
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
479
479
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
480
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
480
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
481
481
|
*/
|
|
482
482
|
await this.loadMarkets();
|
|
483
483
|
let market = undefined;
|
|
@@ -129,7 +129,7 @@ class binance extends binance$1 {
|
|
|
129
129
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
130
130
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
131
131
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
132
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
132
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
133
133
|
*/
|
|
134
134
|
//
|
|
135
135
|
// todo add support for <levels>-snapshots (depth)
|
|
@@ -752,7 +752,7 @@ class binance extends binance$1 {
|
|
|
752
752
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
753
753
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
754
754
|
* @param {string} [params.name] stream to use can be ticker or bookTicker
|
|
755
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
755
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
756
756
|
*/
|
|
757
757
|
await this.loadMarkets();
|
|
758
758
|
const market = this.market(symbol);
|
|
@@ -787,7 +787,7 @@ class binance extends binance$1 {
|
|
|
787
787
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
788
788
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
789
789
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
790
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
790
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
791
791
|
*/
|
|
792
792
|
await this.loadMarkets();
|
|
793
793
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1704,7 +1704,7 @@ class binance extends binance$1 {
|
|
|
1704
1704
|
* @description cancel all open orders in a market
|
|
1705
1705
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1706
1706
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
1707
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1707
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1708
1708
|
*/
|
|
1709
1709
|
await this.loadMarkets();
|
|
1710
1710
|
const url = this.urls['api']['ws']['ws'];
|
|
@@ -1734,7 +1734,7 @@ class binance extends binance$1 {
|
|
|
1734
1734
|
* @description fetches information on an order made by the user
|
|
1735
1735
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1736
1736
|
* @param {object} params extra parameters specific to the binance api endpoint
|
|
1737
|
-
* @returns {object} An [order structure]{@link https://
|
|
1737
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1738
1738
|
*/
|
|
1739
1739
|
await this.loadMarkets();
|
|
1740
1740
|
if (symbol === undefined) {
|
|
@@ -1781,7 +1781,7 @@ class binance extends binance$1 {
|
|
|
1781
1781
|
* @param {int} [params.startTime] earliest time in ms to retrieve orders for
|
|
1782
1782
|
* @param {int} [params.endTime] latest time in ms to retrieve orders for
|
|
1783
1783
|
* @param {int} [params.limit] the maximum number of order structures to retrieve
|
|
1784
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1784
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1785
1785
|
*/
|
|
1786
1786
|
await this.loadMarkets();
|
|
1787
1787
|
if (symbol === undefined) {
|
|
@@ -1818,7 +1818,7 @@ class binance extends binance$1 {
|
|
|
1818
1818
|
* @param {int|undefined} [since] the earliest time in ms to fetch open orders for
|
|
1819
1819
|
* @param {int|undefined} [limit] the maximum number of open orders structures to retrieve
|
|
1820
1820
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
1821
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1821
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1822
1822
|
*/
|
|
1823
1823
|
await this.loadMarkets();
|
|
1824
1824
|
this.checkIsSpot('fetchOpenOrdersWs', symbol);
|
|
@@ -1853,7 +1853,7 @@ class binance extends binance$1 {
|
|
|
1853
1853
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1854
1854
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1855
1855
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
1856
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1856
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1857
1857
|
*/
|
|
1858
1858
|
await this.loadMarkets();
|
|
1859
1859
|
let messageHash = 'orders';
|
|
@@ -2137,7 +2137,7 @@ class binance extends binance$1 {
|
|
|
2137
2137
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
2138
2138
|
* @param {int} [params.endTime] the latest time in ms to fetch trades for
|
|
2139
2139
|
* @param {int} [params.fromId] first trade Id to fetch
|
|
2140
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
2140
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2141
2141
|
*/
|
|
2142
2142
|
await this.loadMarkets();
|
|
2143
2143
|
if (symbol === undefined) {
|
|
@@ -2212,7 +2212,7 @@ class binance extends binance$1 {
|
|
|
2212
2212
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2213
2213
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2214
2214
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
2215
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
2215
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
2216
2216
|
*/
|
|
2217
2217
|
await this.loadMarkets();
|
|
2218
2218
|
const defaultType = this.safeString2(this.options, 'watchMyTrades', 'defaultType', 'spot');
|
|
@@ -78,7 +78,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
78
78
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
79
79
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
80
80
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
81
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
81
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
82
82
|
*/
|
|
83
83
|
return await this.subscribe('ticker', symbol, params);
|
|
84
84
|
}
|
|
@@ -253,7 +253,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
253
253
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
254
254
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
255
255
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
256
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
256
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
257
257
|
*/
|
|
258
258
|
if (limit !== undefined) {
|
|
259
259
|
if ((limit !== 25) && (limit !== 100)) {
|
|
@@ -460,7 +460,7 @@ class bitfinex extends bitfinex$1 {
|
|
|
460
460
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
461
461
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
462
462
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
463
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
463
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
464
464
|
*/
|
|
465
465
|
await this.loadMarkets();
|
|
466
466
|
await this.authenticate();
|
|
@@ -210,7 +210,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
210
210
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
211
211
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
212
212
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
213
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
213
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
214
214
|
*/
|
|
215
215
|
await this.loadMarkets();
|
|
216
216
|
let messageHash = 'myTrade';
|
|
@@ -231,7 +231,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
231
231
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
232
232
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
233
233
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
234
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
234
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
235
235
|
*/
|
|
236
236
|
return await this.subscribe('ticker', symbol, params);
|
|
237
237
|
}
|
|
@@ -521,7 +521,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
521
521
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
522
522
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
523
523
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
524
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
524
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
525
525
|
*/
|
|
526
526
|
if (limit !== undefined) {
|
|
527
527
|
if ((limit !== 25) && (limit !== 100)) {
|
|
@@ -880,7 +880,7 @@ class bitfinex2 extends bitfinex2$1 {
|
|
|
880
880
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
881
881
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
882
882
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
883
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
883
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
884
884
|
*/
|
|
885
885
|
await this.loadMarkets();
|
|
886
886
|
let messageHash = 'orders';
|
|
@@ -102,7 +102,7 @@ class bitget extends bitget$1 {
|
|
|
102
102
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
103
103
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
104
104
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
105
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
105
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
106
106
|
*/
|
|
107
107
|
await this.loadMarkets();
|
|
108
108
|
const market = this.market(symbol);
|
|
@@ -345,7 +345,7 @@ class bitget extends bitget$1 {
|
|
|
345
345
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
346
346
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
347
347
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
348
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
348
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
349
349
|
*/
|
|
350
350
|
await this.loadMarkets();
|
|
351
351
|
const market = this.market(symbol);
|
|
@@ -573,7 +573,7 @@ class bitget extends bitget$1 {
|
|
|
573
573
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
574
574
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
575
575
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
576
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
576
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
577
577
|
*/
|
|
578
578
|
await this.loadMarkets();
|
|
579
579
|
let market = undefined;
|
|
@@ -856,7 +856,7 @@ class bitget extends bitget$1 {
|
|
|
856
856
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
857
857
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
858
858
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
859
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
859
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
860
860
|
*/
|
|
861
861
|
// only contracts stream provides the trade info consistently in between order updates
|
|
862
862
|
// the spot stream only provides on limit orders updates so we can't support it for spot
|
|
@@ -104,7 +104,7 @@ class bitmart extends bitmart$1 {
|
|
|
104
104
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
105
105
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
106
106
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
107
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
107
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
108
108
|
*/
|
|
109
109
|
return await this.subscribe('ticker', symbol, params);
|
|
110
110
|
}
|
|
@@ -117,7 +117,7 @@ class bitmart extends bitmart$1 {
|
|
|
117
117
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
118
118
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
119
119
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
120
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
120
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
121
121
|
*/
|
|
122
122
|
if (symbol === undefined) {
|
|
123
123
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -384,7 +384,7 @@ class bitmart extends bitmart$1 {
|
|
|
384
384
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
385
385
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
386
386
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
387
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
387
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
388
388
|
*/
|
|
389
389
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
390
390
|
const depth = this.safeString(options, 'depth', 'depth50');
|
|
@@ -54,7 +54,7 @@ class bitmex extends bitmex$1 {
|
|
|
54
54
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
55
55
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
56
56
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
57
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
57
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
58
58
|
*/
|
|
59
59
|
await this.loadMarkets();
|
|
60
60
|
const market = this.market(symbol);
|
|
@@ -597,7 +597,7 @@ class bitmex extends bitmex$1 {
|
|
|
597
597
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
598
598
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
599
599
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
600
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
600
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
601
601
|
*/
|
|
602
602
|
await this.loadMarkets();
|
|
603
603
|
await this.authenticate();
|
|
@@ -812,7 +812,7 @@ class bitmex extends bitmex$1 {
|
|
|
812
812
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
813
813
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
814
814
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
815
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
815
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
816
816
|
*/
|
|
817
817
|
await this.loadMarkets();
|
|
818
818
|
await this.authenticate();
|
|
@@ -928,7 +928,7 @@ class bitmex extends bitmex$1 {
|
|
|
928
928
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
929
929
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
930
930
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
931
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
931
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
932
932
|
*/
|
|
933
933
|
let table = undefined;
|
|
934
934
|
if (limit === undefined) {
|
|
@@ -56,7 +56,7 @@ class bitopro extends bitopro$1 {
|
|
|
56
56
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
57
57
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
58
58
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
59
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
59
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
60
60
|
*/
|
|
61
61
|
if (limit !== undefined) {
|
|
62
62
|
if ((limit !== 5) && (limit !== 10) && (limit !== 20) && (limit !== 50) && (limit !== 100) && (limit !== 500) && (limit !== 1000)) {
|
|
@@ -179,7 +179,7 @@ class bitopro extends bitopro$1 {
|
|
|
179
179
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
180
180
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
181
181
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
182
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
182
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
183
183
|
*/
|
|
184
184
|
await this.loadMarkets();
|
|
185
185
|
const market = this.market(symbol);
|
|
@@ -174,7 +174,7 @@ class bitrue extends bitrue$1 {
|
|
|
174
174
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
175
175
|
* @param {int} [limit] the maximum amount of orders to return
|
|
176
176
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
177
|
-
* @returns {object} A dictionary of [order structure]{@link https://
|
|
177
|
+
* @returns {object} A dictionary of [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure} indexed by market symbols
|
|
178
178
|
*/
|
|
179
179
|
await this.loadMarkets();
|
|
180
180
|
if (symbol !== undefined) {
|
|
@@ -49,7 +49,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
49
49
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
50
50
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
51
51
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
52
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
52
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
53
53
|
*/
|
|
54
54
|
await this.loadMarkets();
|
|
55
55
|
const market = this.market(symbol);
|
|
@@ -268,7 +268,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
268
268
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
269
269
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
270
270
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
271
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
271
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
272
272
|
*/
|
|
273
273
|
if (symbol === undefined) {
|
|
274
274
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -208,7 +208,7 @@ class bittrex extends bittrex$1 {
|
|
|
208
208
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
209
209
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
210
210
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
211
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
211
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
212
212
|
*/
|
|
213
213
|
await this.loadMarkets();
|
|
214
214
|
if (symbol !== undefined) {
|
|
@@ -333,7 +333,7 @@ class bittrex extends bittrex$1 {
|
|
|
333
333
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
334
334
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
335
335
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
336
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
336
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
337
337
|
*/
|
|
338
338
|
await this.loadMarkets();
|
|
339
339
|
const negotiation = await this.negotiate();
|
|
@@ -520,7 +520,7 @@ class bittrex extends bittrex$1 {
|
|
|
520
520
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
521
521
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
522
522
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
523
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
523
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
524
524
|
*/
|
|
525
525
|
await this.loadMarkets();
|
|
526
526
|
symbol = this.symbol(symbol);
|
|
@@ -576,7 +576,7 @@ class bittrex extends bittrex$1 {
|
|
|
576
576
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
577
577
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
578
578
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
579
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
579
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
580
580
|
*/
|
|
581
581
|
limit = (limit === undefined) ? 25 : limit; // 25 by default
|
|
582
582
|
if ((limit !== 1) && (limit !== 25) && (limit !== 500)) {
|
|
@@ -57,7 +57,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
57
57
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
58
58
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
59
59
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
60
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
60
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
61
61
|
*/
|
|
62
62
|
return await this.watchPublic('ticker24h', symbol, params);
|
|
63
63
|
}
|
|
@@ -229,7 +229,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
229
229
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
230
230
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
231
231
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
232
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
232
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
233
233
|
*/
|
|
234
234
|
await this.loadMarkets();
|
|
235
235
|
const market = this.market(symbol);
|
|
@@ -420,7 +420,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
420
420
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
421
421
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
422
422
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
423
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
423
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
424
424
|
*/
|
|
425
425
|
if (symbol === undefined) {
|
|
426
426
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -457,7 +457,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
457
457
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
458
458
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
459
459
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
460
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
460
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ortradeder-structure
|
|
461
461
|
*/
|
|
462
462
|
if (symbol === undefined) {
|
|
463
463
|
throw new errors.ArgumentsRequired(this.id + ' watchMyTrades requires a symbol argument');
|