ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/src/poloniex.js
CHANGED
|
@@ -410,7 +410,7 @@ class poloniex extends poloniex$1 {
|
|
|
410
410
|
* @param {string} timeframe the length of time each candle represents
|
|
411
411
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
412
412
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
413
|
-
* @param {object} [params] extra parameters specific to the
|
|
413
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
414
414
|
* @param {int} [params.until] timestamp in ms
|
|
415
415
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
416
416
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -471,7 +471,7 @@ class poloniex extends poloniex$1 {
|
|
|
471
471
|
* @name poloniex#fetchMarkets
|
|
472
472
|
* @description retrieves data on all markets for poloniex
|
|
473
473
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
|
|
474
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
475
475
|
* @returns {object[]} an array of objects representing market data
|
|
476
476
|
*/
|
|
477
477
|
const markets = await this.publicGetMarkets(params);
|
|
@@ -562,7 +562,7 @@ class poloniex extends poloniex$1 {
|
|
|
562
562
|
* @name poloniex#fetchTime
|
|
563
563
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
564
564
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
|
|
565
|
-
* @param {object} [params] extra parameters specific to the
|
|
565
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
566
566
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
567
567
|
*/
|
|
568
568
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -627,10 +627,10 @@ class poloniex extends poloniex$1 {
|
|
|
627
627
|
/**
|
|
628
628
|
* @method
|
|
629
629
|
* @name poloniex#fetchTickers
|
|
630
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
630
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
631
631
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
632
632
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
633
|
-
* @param {object} [params] extra parameters specific to the
|
|
633
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
634
634
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
635
635
|
*/
|
|
636
636
|
await this.loadMarkets();
|
|
@@ -668,7 +668,7 @@ class poloniex extends poloniex$1 {
|
|
|
668
668
|
* @name poloniex#fetchCurrencies
|
|
669
669
|
* @description fetches all available currencies on an exchange
|
|
670
670
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
671
|
-
* @param {object} [params] extra parameters specific to the
|
|
671
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
672
672
|
* @returns {object} an associative dictionary of currencies
|
|
673
673
|
*/
|
|
674
674
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
@@ -802,7 +802,7 @@ class poloniex extends poloniex$1 {
|
|
|
802
802
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
803
803
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
804
804
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
805
|
-
* @param {object} [params] extra parameters specific to the
|
|
805
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
806
806
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
807
807
|
*/
|
|
808
808
|
await this.loadMarkets();
|
|
@@ -935,7 +935,7 @@ class poloniex extends poloniex$1 {
|
|
|
935
935
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
936
936
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
937
937
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
938
|
-
* @param {object} [params] extra parameters specific to the
|
|
938
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
939
939
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
940
940
|
*/
|
|
941
941
|
await this.loadMarkets();
|
|
@@ -971,7 +971,7 @@ class poloniex extends poloniex$1 {
|
|
|
971
971
|
* @param {string} symbol unified market symbol
|
|
972
972
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
973
973
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
974
|
-
* @param {object} [params] extra parameters specific to the
|
|
974
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
975
975
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
976
976
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
977
977
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -1183,7 +1183,7 @@ class poloniex extends poloniex$1 {
|
|
|
1183
1183
|
* @param {string} symbol unified market symbol
|
|
1184
1184
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1185
1185
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1186
|
-
* @param {object} [params] extra parameters specific to the
|
|
1186
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1187
1187
|
* @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
|
|
1188
1188
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1189
1189
|
*/
|
|
@@ -1244,7 +1244,7 @@ class poloniex extends poloniex$1 {
|
|
|
1244
1244
|
* @param {string} side 'buy' or 'sell'
|
|
1245
1245
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1246
1246
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1247
|
-
* @param {object} [params] extra parameters specific to the
|
|
1247
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1248
1248
|
* @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
|
|
1249
1249
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1250
1250
|
*/
|
|
@@ -1328,7 +1328,7 @@ class poloniex extends poloniex$1 {
|
|
|
1328
1328
|
* @param {string} side 'buy' or 'sell'
|
|
1329
1329
|
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
1330
1330
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1331
|
-
* @param {object} [params] extra parameters specific to the
|
|
1331
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1332
1332
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1333
1333
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1334
1334
|
*/
|
|
@@ -1370,7 +1370,7 @@ class poloniex extends poloniex$1 {
|
|
|
1370
1370
|
// @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-order-by-id // trigger orders
|
|
1371
1371
|
// @param {string} id order id
|
|
1372
1372
|
// @param {string} symbol unified symbol of the market the order was made in
|
|
1373
|
-
// @param {object} [params] extra parameters specific to the
|
|
1373
|
+
// @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1374
1374
|
// @param {boolean} [params.trigger] true if canceling a trigger order
|
|
1375
1375
|
// @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1376
1376
|
//
|
|
@@ -1409,7 +1409,7 @@ class poloniex extends poloniex$1 {
|
|
|
1409
1409
|
* @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
|
|
1410
1410
|
* @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
|
|
1411
1411
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1412
|
-
* @param {object} [params] extra parameters specific to the
|
|
1412
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1413
1413
|
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
1414
1414
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1415
1415
|
*/
|
|
@@ -1462,7 +1462,7 @@ class poloniex extends poloniex$1 {
|
|
|
1462
1462
|
* @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
|
|
1463
1463
|
* @param {string} id order id
|
|
1464
1464
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1465
|
-
* @param {object} [params] extra parameters specific to the
|
|
1465
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1466
1466
|
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1467
1467
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1468
1468
|
*/
|
|
@@ -1522,7 +1522,7 @@ class poloniex extends poloniex$1 {
|
|
|
1522
1522
|
* @param {string} symbol unified market symbol
|
|
1523
1523
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1524
1524
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1525
|
-
* @param {object} [params] extra parameters specific to the
|
|
1525
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1526
1526
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1527
1527
|
*/
|
|
1528
1528
|
await this.loadMarkets();
|
|
@@ -1580,7 +1580,7 @@ class poloniex extends poloniex$1 {
|
|
|
1580
1580
|
* @name poloniex#fetchBalance
|
|
1581
1581
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1582
1582
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
|
|
1583
|
-
* @param {object} [params] extra parameters specific to the
|
|
1583
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1584
1584
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1585
1585
|
*/
|
|
1586
1586
|
await this.loadMarkets();
|
|
@@ -1612,7 +1612,7 @@ class poloniex extends poloniex$1 {
|
|
|
1612
1612
|
* @name poloniex#fetchTradingFees
|
|
1613
1613
|
* @description fetch the trading fees for multiple markets
|
|
1614
1614
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
|
|
1615
|
-
* @param {object} [params] extra parameters specific to the
|
|
1615
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1616
1616
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1617
1617
|
*/
|
|
1618
1618
|
await this.loadMarkets();
|
|
@@ -1647,7 +1647,7 @@ class poloniex extends poloniex$1 {
|
|
|
1647
1647
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-order-book
|
|
1648
1648
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1649
1649
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1650
|
-
* @param {object} [params] extra parameters specific to the
|
|
1650
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1651
1651
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1652
1652
|
*/
|
|
1653
1653
|
await this.loadMarkets();
|
|
@@ -1703,7 +1703,7 @@ class poloniex extends poloniex$1 {
|
|
|
1703
1703
|
* @description create a currency deposit address
|
|
1704
1704
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1705
1705
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1706
|
-
* @param {object} [params] extra parameters specific to the
|
|
1706
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1707
1707
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1708
1708
|
*/
|
|
1709
1709
|
await this.loadMarkets();
|
|
@@ -1754,7 +1754,7 @@ class poloniex extends poloniex$1 {
|
|
|
1754
1754
|
* @description fetch the deposit address for a currency associated with this account
|
|
1755
1755
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1756
1756
|
* @param {string} code unified currency code
|
|
1757
|
-
* @param {object} [params] extra parameters specific to the
|
|
1757
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1758
1758
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1759
1759
|
*/
|
|
1760
1760
|
await this.loadMarkets();
|
|
@@ -1808,7 +1808,7 @@ class poloniex extends poloniex$1 {
|
|
|
1808
1808
|
* @param {float} amount amount to transfer
|
|
1809
1809
|
* @param {string} fromAccount account to transfer from
|
|
1810
1810
|
* @param {string} toAccount account to transfer to
|
|
1811
|
-
* @param {object} [params] extra parameters specific to the
|
|
1811
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1812
1812
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1813
1813
|
*/
|
|
1814
1814
|
await this.loadMarkets();
|
|
@@ -1859,7 +1859,7 @@ class poloniex extends poloniex$1 {
|
|
|
1859
1859
|
* @param {float} amount the amount to withdraw
|
|
1860
1860
|
* @param {string} address the address to withdraw to
|
|
1861
1861
|
* @param {string} tag
|
|
1862
|
-
* @param {object} [params] extra parameters specific to the
|
|
1862
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1863
1863
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1864
1864
|
*/
|
|
1865
1865
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1983,7 +1983,7 @@ class poloniex extends poloniex$1 {
|
|
|
1983
1983
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1984
1984
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1985
1985
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1986
|
-
* @param {object} [params] extra parameters specific to the
|
|
1986
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1987
1987
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1988
1988
|
*/
|
|
1989
1989
|
await this.loadMarkets();
|
|
@@ -2008,7 +2008,7 @@ class poloniex extends poloniex$1 {
|
|
|
2008
2008
|
* @param {string} code unified currency code
|
|
2009
2009
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2010
2010
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2011
|
-
* @param {object} [params] extra parameters specific to the
|
|
2011
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2012
2012
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2013
2013
|
*/
|
|
2014
2014
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
@@ -2027,7 +2027,7 @@ class poloniex extends poloniex$1 {
|
|
|
2027
2027
|
* @description fetch deposit and withdraw fees
|
|
2028
2028
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
2029
2029
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2030
|
-
* @param {object} [params] extra parameters specific to the
|
|
2030
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2031
2031
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2032
2032
|
*/
|
|
2033
2033
|
await this.loadMarkets();
|
|
@@ -2154,7 +2154,7 @@ class poloniex extends poloniex$1 {
|
|
|
2154
2154
|
* @param {string} code unified currency code
|
|
2155
2155
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2156
2156
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2157
|
-
* @param {object} [params] extra parameters specific to the
|
|
2157
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2158
2158
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2159
2159
|
*/
|
|
2160
2160
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
@@ -205,7 +205,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
205
205
|
* @name poloniexfutures#fetchMarkets
|
|
206
206
|
* @description retrieves data on all markets for poloniexfutures
|
|
207
207
|
* @see https://futures-docs.poloniex.com/#symbol-2
|
|
208
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
208
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
209
209
|
* @returns {object[]} an array of objects representing market data
|
|
210
210
|
*/
|
|
211
211
|
const response = await this.publicGetContractsActive(params);
|
|
@@ -401,7 +401,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
401
401
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
404
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
405
405
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
406
406
|
*/
|
|
407
407
|
await this.loadMarkets();
|
|
@@ -434,10 +434,10 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
434
434
|
/**
|
|
435
435
|
* @method
|
|
436
436
|
* @name poloniexfutures#fetchTickers
|
|
437
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
437
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
440
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
441
441
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
442
442
|
*/
|
|
443
443
|
await this.loadMarkets();
|
|
@@ -453,7 +453,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
453
453
|
* @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
456
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
457
457
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
458
458
|
*/
|
|
459
459
|
await this.loadMarkets();
|
|
@@ -539,7 +539,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
539
539
|
* @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
|
|
540
540
|
* @param {string} symbol unified market symbol
|
|
541
541
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
542
|
-
* @param {object} [params] extra parameters specific to the
|
|
542
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
543
543
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
544
544
|
*/
|
|
545
545
|
await this.loadMarkets();
|
|
@@ -647,7 +647,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
647
647
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
648
648
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
649
649
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
650
|
-
* @param {object} [params] extra parameters specific to the
|
|
650
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
651
651
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
652
652
|
*/
|
|
653
653
|
await this.loadMarkets();
|
|
@@ -681,7 +681,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
681
681
|
* @name poloniexfutures#fetchTime
|
|
682
682
|
* @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
|
683
683
|
* @see https://futures-docs.poloniex.com/#time
|
|
684
|
-
* @param {object} [params] extra parameters specific to the
|
|
684
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
685
685
|
* @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
|
|
686
686
|
*/
|
|
687
687
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -704,7 +704,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
704
704
|
* @param {string} timeframe the length of time each candle represents
|
|
705
705
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
706
706
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
707
|
-
* @param {object} [params] extra parameters specific to the
|
|
707
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
708
708
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
709
709
|
*/
|
|
710
710
|
await this.loadMarkets();
|
|
@@ -769,7 +769,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
769
769
|
* @name poloniexfutures#fetchBalance
|
|
770
770
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
771
771
|
* @see https://futures-docs.poloniex.com/#get-account-overview
|
|
772
|
-
* @param {object} [params] extra parameters specific to the
|
|
772
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
773
773
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
774
774
|
*/
|
|
775
775
|
await this.loadMarkets();
|
|
@@ -810,7 +810,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
810
810
|
* @param {string} side 'buy' or 'sell'
|
|
811
811
|
* @param {float} amount the amount of currency to trade
|
|
812
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
|
-
* @param {object} [params]
|
|
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
|
|
816
816
|
* @param {bool} [params.reduceOnly] A mark to reduce the position size only. Set to false by default. Need to set the position size when reduceOnly is true.
|
|
@@ -915,7 +915,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
915
915
|
* @see https://futures-docs.poloniex.com/#cancel-an-order
|
|
916
916
|
* @param {string} id order id
|
|
917
917
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
918
|
-
* @param {object} [params] extra parameters specific to the
|
|
918
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
919
919
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
920
920
|
*/
|
|
921
921
|
await this.loadMarkets();
|
|
@@ -954,7 +954,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
954
954
|
* @description fetch all open positions
|
|
955
955
|
* @see https://futures-docs.poloniex.com/#get-position-list
|
|
956
956
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
957
|
-
* @param {object} [params] extra parameters specific to the
|
|
957
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
958
958
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
959
959
|
*/
|
|
960
960
|
await this.loadMarkets();
|
|
@@ -1110,7 +1110,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1110
1110
|
* @param {string} symbol unified market symbol
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
1113
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1114
1114
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
1115
1115
|
*/
|
|
1116
1116
|
if (symbol === undefined) {
|
|
@@ -1180,7 +1180,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1180
1180
|
* @name poloniexfutures#cancelAllOrders
|
|
1181
1181
|
* @description cancel all open orders
|
|
1182
1182
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1183
|
-
* @param {object} [params] extra parameters specific to the
|
|
1183
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1184
1184
|
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1185
1185
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1186
1186
|
*/
|
|
@@ -1349,7 +1349,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1349
1349
|
* @param {string} symbol unified market symbol
|
|
1350
1350
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1351
1351
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1352
|
-
* @param {object} [params] extra parameters specific to the
|
|
1352
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
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
|
|
@@ -1367,7 +1367,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1367
1367
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1368
1368
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1369
1369
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1370
|
-
* @param {object} [params] extra parameters specific to the
|
|
1370
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
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
|
|
@@ -1383,7 +1383,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1383
1383
|
* @see https://futures-docs.poloniex.com/#get-details-of-a-single-order
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
1386
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1387
1387
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1388
1388
|
*/
|
|
1389
1389
|
await this.loadMarkets();
|
|
@@ -1582,7 +1582,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1582
1582
|
* @description fetch the current funding rate
|
|
1583
1583
|
* @see https://futures-docs.poloniex.com/#get-premium-index
|
|
1584
1584
|
* @param {string} symbol unified market symbol
|
|
1585
|
-
* @param {object} [params] extra parameters specific to the
|
|
1585
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1586
1586
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1587
1587
|
*/
|
|
1588
1588
|
await this.loadMarkets();
|
|
@@ -1632,7 +1632,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1632
1632
|
* @param {string} symbol unified market symbol
|
|
1633
1633
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1634
1634
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1635
|
-
* @param {object} [params] extra parameters specific to the
|
|
1635
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1636
1636
|
* @param {string} orderIdFills filles for a specific order (other parameters can be ignored if specified)
|
|
1637
1637
|
* @param {string} side buy or sell
|
|
1638
1638
|
* @param {string} type limit, market, limit_stop or market_stop
|
|
@@ -1695,7 +1695,7 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
1695
1695
|
* @see https://futures-docs.poloniex.com/#change-margin-mode
|
|
1696
1696
|
* @param {int} marginMode 0 (isolated) or 1 (cross)
|
|
1697
1697
|
* @param {string} symbol unified market symbol
|
|
1698
|
-
* @param {object} [params] extra parameters specific to the
|
|
1698
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1699
1699
|
* @returns {object} response from the exchange
|
|
1700
1700
|
*/
|
|
1701
1701
|
if (symbol === undefined) {
|
|
@@ -50,7 +50,7 @@ class alpaca extends alpaca$1 {
|
|
|
50
50
|
* @name alpaca#watchTicker
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
53
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
54
54
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
55
55
|
*/
|
|
56
56
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -128,7 +128,7 @@ class alpaca extends alpaca$1 {
|
|
|
128
128
|
* @param {string} timeframe the length of time each candle represents
|
|
129
129
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
130
130
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
131
|
-
* @param {object} [params] extra parameters specific to the
|
|
131
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
132
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
133
133
|
*/
|
|
134
134
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -182,7 +182,7 @@ class alpaca extends alpaca$1 {
|
|
|
182
182
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
185
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
186
186
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
187
187
|
*/
|
|
188
188
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -262,7 +262,7 @@ class alpaca extends alpaca$1 {
|
|
|
262
262
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
265
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
266
266
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
267
267
|
*/
|
|
268
268
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -314,7 +314,7 @@ class alpaca extends alpaca$1 {
|
|
|
314
314
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
315
315
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
316
316
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
317
|
-
* @param {object} [params] extra parameters specific to the
|
|
317
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
318
318
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
319
319
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
320
320
|
*/
|
|
@@ -346,7 +346,7 @@ class alpaca extends alpaca$1 {
|
|
|
346
346
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
349
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
350
350
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
351
351
|
*/
|
|
352
352
|
const url = this.urls['api']['ws']['trading'];
|
|
@@ -79,7 +79,7 @@ class ascendex extends ascendex$1 {
|
|
|
79
79
|
* @param {string} timeframe the length of time each candle represents
|
|
80
80
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
81
81
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
82
|
-
* @param {object} [params] extra parameters specific to the
|
|
82
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
83
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
84
84
|
*/
|
|
85
85
|
await this.loadMarkets();
|
|
@@ -143,7 +143,7 @@ class ascendex extends ascendex$1 {
|
|
|
143
143
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
144
144
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
145
145
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
146
|
-
* @param {object} [params] extra parameters specific to the
|
|
146
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
147
147
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
148
148
|
*/
|
|
149
149
|
await this.loadMarkets();
|
|
@@ -203,7 +203,7 @@ class ascendex extends ascendex$1 {
|
|
|
203
203
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
206
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
207
207
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
208
208
|
*/
|
|
209
209
|
await this.loadMarkets();
|
|
@@ -348,7 +348,7 @@ class ascendex extends ascendex$1 {
|
|
|
348
348
|
* @method
|
|
349
349
|
* @name ascendex#watchBalance
|
|
350
350
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
351
|
-
* @param {object} [params] extra parameters specific to the
|
|
351
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
352
352
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
353
353
|
*/
|
|
354
354
|
await this.loadMarkets();
|
|
@@ -476,7 +476,7 @@ class ascendex extends ascendex$1 {
|
|
|
476
476
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
479
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
480
480
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
481
481
|
*/
|
|
482
482
|
await this.loadMarkets();
|