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
|
@@ -402,7 +402,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
402
402
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
|
|
403
403
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
404
404
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
405
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
405
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
406
406
|
*/
|
|
407
407
|
await this.loadMarkets();
|
|
408
408
|
const market = this.market(symbol);
|
|
@@ -438,7 +438,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
438
438
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
|
|
439
439
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
440
440
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
441
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
441
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
442
442
|
*/
|
|
443
443
|
await this.loadMarkets();
|
|
444
444
|
const response = await this.publicGetTickers(params);
|
|
@@ -454,7 +454,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
454
454
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
455
455
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
456
456
|
* @param {object} [params] extra parameters specific to the poloniexfuturesfutures api endpoint
|
|
457
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
457
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
458
458
|
*/
|
|
459
459
|
await this.loadMarkets();
|
|
460
460
|
const level = this.safeNumber(params, 'level');
|
|
@@ -540,7 +540,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
540
540
|
* @param {string} symbol unified market symbol
|
|
541
541
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
542
542
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
543
|
-
* @returns {object} an [order book structure]{@link https://
|
|
543
|
+
* @returns {object} an [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
|
|
544
544
|
*/
|
|
545
545
|
await this.loadMarkets();
|
|
546
546
|
const market = this.market(symbol);
|
|
@@ -809,7 +809,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
809
809
|
* @param {string} type 'limit' or 'market'
|
|
810
810
|
* @param {string} side 'buy' or 'sell'
|
|
811
811
|
* @param {float} amount the amount of currency to trade
|
|
812
|
-
* @param {float} price *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
812
|
+
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
813
813
|
* @param {object} [params] Extra parameters specific to the exchange API endpoint
|
|
814
814
|
* @param {float} [params.leverage] Leverage size of the order
|
|
815
815
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
@@ -822,7 +822,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
822
822
|
* @param {string} [params.stopPriceType] TP, IP or MP, defaults to TP
|
|
823
823
|
* @param {bool} [params.closeOrder] set to true to close position
|
|
824
824
|
* @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.
|
|
825
|
-
* @returns {object} an [order structure]{@link https://
|
|
825
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
826
826
|
*/
|
|
827
827
|
await this.loadMarkets();
|
|
828
828
|
const market = this.market(symbol);
|
|
@@ -916,7 +916,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
916
916
|
* @param {string} id order id
|
|
917
917
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
918
918
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
919
|
-
* @returns {object} An [order structure]{@link https://
|
|
919
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
920
920
|
*/
|
|
921
921
|
await this.loadMarkets();
|
|
922
922
|
const request = {
|
|
@@ -955,7 +955,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
955
955
|
* @see https://futures-docs.poloniex.com/#get-position-list
|
|
956
956
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
957
957
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
958
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
958
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
959
959
|
*/
|
|
960
960
|
await this.loadMarkets();
|
|
961
961
|
const response = await this.privateGetPositions(params);
|
|
@@ -1111,7 +1111,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1111
1111
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
1112
1112
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1113
1113
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1114
|
-
* @returns {object} a [funding history structure]{@link https://
|
|
1114
|
+
* @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
1115
1115
|
*/
|
|
1116
1116
|
if (symbol === undefined) {
|
|
1117
1117
|
throw new ArgumentsRequired(this.id + ' fetchFundingHistory() requires a symbol argument');
|
|
@@ -1182,7 +1182,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1182
1182
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1183
1183
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1184
1184
|
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1185
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1185
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1186
1186
|
*/
|
|
1187
1187
|
await this.loadMarkets();
|
|
1188
1188
|
const request = {};
|
|
@@ -1250,7 +1250,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1250
1250
|
* @param {int} [params.until] End time in ms
|
|
1251
1251
|
* @param {string} [params.side] buy or sell
|
|
1252
1252
|
* @param {string} [params.type] limit or market
|
|
1253
|
-
* @returns An [array of order structures]{@link https://
|
|
1253
|
+
* @returns An [array of order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1254
1254
|
*/
|
|
1255
1255
|
await this.loadMarkets();
|
|
1256
1256
|
const stop = this.safeValue(params, 'stop');
|
|
@@ -1353,7 +1353,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1353
1353
|
* @param {int} [params.till] end time in ms
|
|
1354
1354
|
* @param {string} [params.side] buy or sell
|
|
1355
1355
|
* @param {string} [params.type] limit, or market
|
|
1356
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1356
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1357
1357
|
*/
|
|
1358
1358
|
return await this.fetchOrdersByStatus('open', symbol, since, limit, params);
|
|
1359
1359
|
}
|
|
@@ -1371,7 +1371,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1371
1371
|
* @param {int} [params.till] end time in ms
|
|
1372
1372
|
* @param {string} [params.side] buy or sell
|
|
1373
1373
|
* @param {string} [params.type] limit, or market
|
|
1374
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1374
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1375
1375
|
*/
|
|
1376
1376
|
return await this.fetchOrdersByStatus('closed', symbol, since, limit, params);
|
|
1377
1377
|
}
|
|
@@ -1384,7 +1384,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1384
1384
|
* @see https://futures-docs.poloniex.com/#get-single-order-by-clientoid
|
|
1385
1385
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1386
1386
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1387
|
-
* @returns {object} An [order structure]{@link https://
|
|
1387
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1388
1388
|
*/
|
|
1389
1389
|
await this.loadMarkets();
|
|
1390
1390
|
const request = {};
|
|
@@ -1583,7 +1583,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1583
1583
|
* @see https://futures-docs.poloniex.com/#get-premium-index
|
|
1584
1584
|
* @param {string} symbol unified market symbol
|
|
1585
1585
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
1586
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
1586
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
1587
1587
|
*/
|
|
1588
1588
|
await this.loadMarkets();
|
|
1589
1589
|
const market = this.market(symbol);
|
|
@@ -1637,7 +1637,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1637
1637
|
* @param {string} side buy or sell
|
|
1638
1638
|
* @param {string} type limit, market, limit_stop or market_stop
|
|
1639
1639
|
* @param {int} endAt end time (milisecond)
|
|
1640
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1640
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1641
1641
|
*/
|
|
1642
1642
|
await this.loadMarkets();
|
|
1643
1643
|
const request = {};
|
package/js/src/pro/alpaca.js
CHANGED
|
@@ -54,7 +54,7 @@ export default class alpaca extends alpacaRest {
|
|
|
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 alpaca 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
|
const url = this.urls['api']['ws']['crypto'];
|
|
60
60
|
await this.authenticate(url);
|
|
@@ -186,7 +186,7 @@ export default class alpaca extends alpacaRest {
|
|
|
186
186
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
187
187
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
188
188
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
189
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
189
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
190
190
|
*/
|
|
191
191
|
const url = this.urls['api']['ws']['crypto'];
|
|
192
192
|
await this.authenticate(url);
|
|
@@ -266,7 +266,7 @@ export default class alpaca extends alpacaRest {
|
|
|
266
266
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
267
267
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
268
268
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
269
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
269
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
270
270
|
*/
|
|
271
271
|
const url = this.urls['api']['ws']['crypto'];
|
|
272
272
|
await this.authenticate(url);
|
|
@@ -319,7 +319,7 @@ export default class alpaca extends alpacaRest {
|
|
|
319
319
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
320
320
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
321
321
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
322
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
322
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
323
323
|
*/
|
|
324
324
|
const url = this.urls['api']['ws']['trading'];
|
|
325
325
|
await this.authenticate(url);
|
|
@@ -350,7 +350,7 @@ export default class alpaca extends alpacaRest {
|
|
|
350
350
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
351
351
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
352
352
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
353
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
353
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
354
354
|
*/
|
|
355
355
|
const url = this.urls['api']['ws']['trading'];
|
|
356
356
|
await this.authenticate(url);
|
package/js/src/pro/ascendex.js
CHANGED
|
@@ -207,7 +207,7 @@ export default class ascendex extends ascendexRest {
|
|
|
207
207
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
208
208
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
209
209
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
210
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
210
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
211
211
|
*/
|
|
212
212
|
await this.loadMarkets();
|
|
213
213
|
const market = this.market(symbol);
|
|
@@ -480,7 +480,7 @@ export default class ascendex extends ascendexRest {
|
|
|
480
480
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
481
481
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
482
482
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
483
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
483
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
484
484
|
*/
|
|
485
485
|
await this.loadMarkets();
|
|
486
486
|
let market = undefined;
|
package/js/src/pro/binance.js
CHANGED
|
@@ -132,7 +132,7 @@ export default class binance extends binanceRest {
|
|
|
132
132
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
133
133
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
134
134
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
135
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
135
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
136
136
|
*/
|
|
137
137
|
//
|
|
138
138
|
// todo add support for <levels>-snapshots (depth)
|
|
@@ -755,7 +755,7 @@ export default class binance extends binanceRest {
|
|
|
755
755
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
756
756
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
757
757
|
* @param {string} [params.name] stream to use can be ticker or bookTicker
|
|
758
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
758
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
759
759
|
*/
|
|
760
760
|
await this.loadMarkets();
|
|
761
761
|
const market = this.market(symbol);
|
|
@@ -790,7 +790,7 @@ export default class binance extends binanceRest {
|
|
|
790
790
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
791
791
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
792
792
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
793
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
793
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
794
794
|
*/
|
|
795
795
|
await this.loadMarkets();
|
|
796
796
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1707,7 +1707,7 @@ export default class binance extends binanceRest {
|
|
|
1707
1707
|
* @description cancel all open orders in a market
|
|
1708
1708
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1709
1709
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
1710
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1710
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1711
1711
|
*/
|
|
1712
1712
|
await this.loadMarkets();
|
|
1713
1713
|
const url = this.urls['api']['ws']['ws'];
|
|
@@ -1737,7 +1737,7 @@ export default class binance extends binanceRest {
|
|
|
1737
1737
|
* @description fetches information on an order made by the user
|
|
1738
1738
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1739
1739
|
* @param {object} params extra parameters specific to the binance api endpoint
|
|
1740
|
-
* @returns {object} An [order structure]{@link https://
|
|
1740
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1741
1741
|
*/
|
|
1742
1742
|
await this.loadMarkets();
|
|
1743
1743
|
if (symbol === undefined) {
|
|
@@ -1784,7 +1784,7 @@ export default class binance extends binanceRest {
|
|
|
1784
1784
|
* @param {int} [params.startTime] earliest time in ms to retrieve orders for
|
|
1785
1785
|
* @param {int} [params.endTime] latest time in ms to retrieve orders for
|
|
1786
1786
|
* @param {int} [params.limit] the maximum number of order structures to retrieve
|
|
1787
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1787
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1788
1788
|
*/
|
|
1789
1789
|
await this.loadMarkets();
|
|
1790
1790
|
if (symbol === undefined) {
|
|
@@ -1821,7 +1821,7 @@ export default class binance extends binanceRest {
|
|
|
1821
1821
|
* @param {int|undefined} [since] the earliest time in ms to fetch open orders for
|
|
1822
1822
|
* @param {int|undefined} [limit] the maximum number of open orders structures to retrieve
|
|
1823
1823
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
1824
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1824
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1825
1825
|
*/
|
|
1826
1826
|
await this.loadMarkets();
|
|
1827
1827
|
this.checkIsSpot('fetchOpenOrdersWs', symbol);
|
|
@@ -1856,7 +1856,7 @@ export default class binance extends binanceRest {
|
|
|
1856
1856
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1857
1857
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1858
1858
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
1859
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1859
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1860
1860
|
*/
|
|
1861
1861
|
await this.loadMarkets();
|
|
1862
1862
|
let messageHash = 'orders';
|
|
@@ -2140,7 +2140,7 @@ export default class binance extends binanceRest {
|
|
|
2140
2140
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
2141
2141
|
* @param {int} [params.endTime] the latest time in ms to fetch trades for
|
|
2142
2142
|
* @param {int} [params.fromId] first trade Id to fetch
|
|
2143
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
2143
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2144
2144
|
*/
|
|
2145
2145
|
await this.loadMarkets();
|
|
2146
2146
|
if (symbol === undefined) {
|
|
@@ -2215,7 +2215,7 @@ export default class binance extends binanceRest {
|
|
|
2215
2215
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2216
2216
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2217
2217
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
2218
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
2218
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
2219
2219
|
*/
|
|
2220
2220
|
await this.loadMarkets();
|
|
2221
2221
|
const defaultType = this.safeString2(this.options, 'watchMyTrades', 'defaultType', 'spot');
|
package/js/src/pro/bitfinex.js
CHANGED
|
@@ -81,7 +81,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
81
81
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
82
82
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
83
83
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
84
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
84
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
85
85
|
*/
|
|
86
86
|
return await this.subscribe('ticker', symbol, params);
|
|
87
87
|
}
|
|
@@ -256,7 +256,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
256
256
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
257
257
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
258
258
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
259
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
259
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
260
260
|
*/
|
|
261
261
|
if (limit !== undefined) {
|
|
262
262
|
if ((limit !== 25) && (limit !== 100)) {
|
|
@@ -463,7 +463,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
463
463
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
464
464
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
465
465
|
* @param {object} [params] extra parameters specific to the bitfinex api endpoint
|
|
466
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
466
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
467
467
|
*/
|
|
468
468
|
await this.loadMarkets();
|
|
469
469
|
await this.authenticate();
|
package/js/src/pro/bitfinex2.js
CHANGED
|
@@ -213,7 +213,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
213
213
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
214
214
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
215
215
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
216
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
216
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
217
217
|
*/
|
|
218
218
|
await this.loadMarkets();
|
|
219
219
|
let messageHash = 'myTrade';
|
|
@@ -234,7 +234,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
234
234
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
235
235
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
236
236
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
237
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
237
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
238
238
|
*/
|
|
239
239
|
return await this.subscribe('ticker', symbol, params);
|
|
240
240
|
}
|
|
@@ -524,7 +524,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
524
524
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
525
525
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
526
526
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
527
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
527
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
528
528
|
*/
|
|
529
529
|
if (limit !== undefined) {
|
|
530
530
|
if ((limit !== 25) && (limit !== 100)) {
|
|
@@ -883,7 +883,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
883
883
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
884
884
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
885
885
|
* @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
|
|
886
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
886
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
887
887
|
*/
|
|
888
888
|
await this.loadMarkets();
|
|
889
889
|
let messageHash = 'orders';
|
package/js/src/pro/bitget.js
CHANGED
|
@@ -105,7 +105,7 @@ export default class bitget extends bitgetRest {
|
|
|
105
105
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
106
106
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
107
107
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
108
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
108
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
109
109
|
*/
|
|
110
110
|
await this.loadMarkets();
|
|
111
111
|
const market = this.market(symbol);
|
|
@@ -348,7 +348,7 @@ export default class bitget extends bitgetRest {
|
|
|
348
348
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
349
349
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
350
350
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
351
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
351
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
352
352
|
*/
|
|
353
353
|
await this.loadMarkets();
|
|
354
354
|
const market = this.market(symbol);
|
|
@@ -576,7 +576,7 @@ export default class bitget extends bitgetRest {
|
|
|
576
576
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
577
577
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
578
578
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
579
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
579
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
580
580
|
*/
|
|
581
581
|
await this.loadMarkets();
|
|
582
582
|
let market = undefined;
|
|
@@ -859,7 +859,7 @@ export default class bitget extends bitgetRest {
|
|
|
859
859
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
860
860
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
861
861
|
* @param {object} [params] extra parameters specific to the bitget api endpoint
|
|
862
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
862
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
863
863
|
*/
|
|
864
864
|
// only contracts stream provides the trade info consistently in between order updates
|
|
865
865
|
// the spot stream only provides on limit orders updates so we can't support it for spot
|
package/js/src/pro/bitmart.js
CHANGED
|
@@ -107,7 +107,7 @@ export default class bitmart extends bitmartRest {
|
|
|
107
107
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
108
108
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
109
109
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
110
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
110
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
111
111
|
*/
|
|
112
112
|
return await this.subscribe('ticker', symbol, params);
|
|
113
113
|
}
|
|
@@ -120,7 +120,7 @@ export default class bitmart extends bitmartRest {
|
|
|
120
120
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
121
121
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
122
122
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
123
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
123
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
124
124
|
*/
|
|
125
125
|
if (symbol === undefined) {
|
|
126
126
|
throw new ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -387,7 +387,7 @@ export default class bitmart extends bitmartRest {
|
|
|
387
387
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
388
388
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
389
389
|
* @param {object} [params] extra parameters specific to the bitmart api endpoint
|
|
390
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
390
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
391
391
|
*/
|
|
392
392
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
393
393
|
const depth = this.safeString(options, 'depth', 'depth50');
|
package/js/src/pro/bitmex.js
CHANGED
|
@@ -57,7 +57,7 @@ export default class bitmex extends bitmexRest {
|
|
|
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 bitmex 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
|
await this.loadMarkets();
|
|
63
63
|
const market = this.market(symbol);
|
|
@@ -600,7 +600,7 @@ export default class bitmex extends bitmexRest {
|
|
|
600
600
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
601
601
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
602
602
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
603
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
603
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
604
604
|
*/
|
|
605
605
|
await this.loadMarkets();
|
|
606
606
|
await this.authenticate();
|
|
@@ -815,7 +815,7 @@ export default class bitmex extends bitmexRest {
|
|
|
815
815
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
816
816
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
817
817
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
818
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
818
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
819
819
|
*/
|
|
820
820
|
await this.loadMarkets();
|
|
821
821
|
await this.authenticate();
|
|
@@ -931,7 +931,7 @@ export default class bitmex extends bitmexRest {
|
|
|
931
931
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
932
932
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
933
933
|
* @param {object} [params] extra parameters specific to the bitmex api endpoint
|
|
934
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
934
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
935
935
|
*/
|
|
936
936
|
let table = undefined;
|
|
937
937
|
if (limit === undefined) {
|
package/js/src/pro/bitopro.js
CHANGED
|
@@ -59,7 +59,7 @@ export default class bitopro extends bitoproRest {
|
|
|
59
59
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
60
60
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
61
61
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
62
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
62
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
63
63
|
*/
|
|
64
64
|
if (limit !== undefined) {
|
|
65
65
|
if ((limit !== 5) && (limit !== 10) && (limit !== 20) && (limit !== 50) && (limit !== 100) && (limit !== 500) && (limit !== 1000)) {
|
|
@@ -182,7 +182,7 @@ export default class bitopro extends bitoproRest {
|
|
|
182
182
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
183
183
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
184
184
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
185
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
185
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
186
186
|
*/
|
|
187
187
|
await this.loadMarkets();
|
|
188
188
|
const market = this.market(symbol);
|
package/js/src/pro/bitrue.js
CHANGED
|
@@ -177,7 +177,7 @@ export default class bitrue extends bitrueRest {
|
|
|
177
177
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
178
178
|
* @param {int} [limit] the maximum amount of orders to return
|
|
179
179
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
180
|
-
* @returns {object} A dictionary of [order structure]{@link https://
|
|
180
|
+
* @returns {object} A dictionary of [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure} indexed by market symbols
|
|
181
181
|
*/
|
|
182
182
|
await this.loadMarkets();
|
|
183
183
|
if (symbol !== undefined) {
|
package/js/src/pro/bitstamp.js
CHANGED
|
@@ -52,7 +52,7 @@ export default class bitstamp extends bitstampRest {
|
|
|
52
52
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
53
53
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
54
54
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
55
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
55
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
56
56
|
*/
|
|
57
57
|
await this.loadMarkets();
|
|
58
58
|
const market = this.market(symbol);
|
|
@@ -271,7 +271,7 @@ export default class bitstamp extends bitstampRest {
|
|
|
271
271
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
272
272
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
273
273
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
274
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
274
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
275
275
|
*/
|
|
276
276
|
if (symbol === undefined) {
|
|
277
277
|
throw new ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
package/js/src/pro/bittrex.js
CHANGED
|
@@ -211,7 +211,7 @@ export default class bittrex extends bittrexRest {
|
|
|
211
211
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
212
212
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
213
213
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
214
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
214
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
215
215
|
*/
|
|
216
216
|
await this.loadMarkets();
|
|
217
217
|
if (symbol !== undefined) {
|
|
@@ -336,7 +336,7 @@ export default class bittrex extends bittrexRest {
|
|
|
336
336
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
337
337
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
338
338
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
339
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
339
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
340
340
|
*/
|
|
341
341
|
await this.loadMarkets();
|
|
342
342
|
const negotiation = await this.negotiate();
|
|
@@ -523,7 +523,7 @@ export default class bittrex extends bittrexRest {
|
|
|
523
523
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
524
524
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
525
525
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
526
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
526
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
527
527
|
*/
|
|
528
528
|
await this.loadMarkets();
|
|
529
529
|
symbol = this.symbol(symbol);
|
|
@@ -579,7 +579,7 @@ export default class bittrex extends bittrexRest {
|
|
|
579
579
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
580
580
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
581
581
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
582
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
582
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
583
583
|
*/
|
|
584
584
|
limit = (limit === undefined) ? 25 : limit; // 25 by default
|
|
585
585
|
if ((limit !== 1) && (limit !== 25) && (limit !== 500)) {
|
package/js/src/pro/bitvavo.js
CHANGED
|
@@ -60,7 +60,7 @@ export default class bitvavo extends bitvavoRest {
|
|
|
60
60
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
61
61
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
62
62
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
63
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
63
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
64
64
|
*/
|
|
65
65
|
return await this.watchPublic('ticker24h', symbol, params);
|
|
66
66
|
}
|
|
@@ -232,7 +232,7 @@ export default class bitvavo extends bitvavoRest {
|
|
|
232
232
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
233
233
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
234
234
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
235
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
235
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
236
236
|
*/
|
|
237
237
|
await this.loadMarkets();
|
|
238
238
|
const market = this.market(symbol);
|
|
@@ -423,7 +423,7 @@ export default class bitvavo extends bitvavoRest {
|
|
|
423
423
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
424
424
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
425
425
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
426
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
426
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
427
427
|
*/
|
|
428
428
|
if (symbol === undefined) {
|
|
429
429
|
throw new ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -460,7 +460,7 @@ export default class bitvavo extends bitvavoRest {
|
|
|
460
460
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
461
461
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
462
462
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
463
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
463
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ortradeder-structure
|
|
464
464
|
*/
|
|
465
465
|
if (symbol === undefined) {
|
|
466
466
|
throw new ArgumentsRequired(this.id + ' watchMyTrades requires a symbol argument');
|