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/js/src/poloniex.js
CHANGED
|
@@ -413,7 +413,7 @@ export default class poloniex extends Exchange {
|
|
|
413
413
|
* @param {string} timeframe the length of time each candle represents
|
|
414
414
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
415
415
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
416
|
-
* @param {object} [params] extra parameters specific to the
|
|
416
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
417
417
|
* @param {int} [params.until] timestamp in ms
|
|
418
418
|
* @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)
|
|
419
419
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -474,7 +474,7 @@ export default class poloniex extends Exchange {
|
|
|
474
474
|
* @name poloniex#fetchMarkets
|
|
475
475
|
* @description retrieves data on all markets for poloniex
|
|
476
476
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
|
|
477
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
477
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
478
478
|
* @returns {object[]} an array of objects representing market data
|
|
479
479
|
*/
|
|
480
480
|
const markets = await this.publicGetMarkets(params);
|
|
@@ -565,7 +565,7 @@ export default class poloniex extends Exchange {
|
|
|
565
565
|
* @name poloniex#fetchTime
|
|
566
566
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
567
567
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
|
|
568
|
-
* @param {object} [params] extra parameters specific to the
|
|
568
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
569
569
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
570
570
|
*/
|
|
571
571
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -630,10 +630,10 @@ export default class poloniex extends Exchange {
|
|
|
630
630
|
/**
|
|
631
631
|
* @method
|
|
632
632
|
* @name poloniex#fetchTickers
|
|
633
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
633
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
634
634
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
635
635
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
636
|
-
* @param {object} [params] extra parameters specific to the
|
|
636
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
637
637
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
638
638
|
*/
|
|
639
639
|
await this.loadMarkets();
|
|
@@ -671,7 +671,7 @@ export default class poloniex extends Exchange {
|
|
|
671
671
|
* @name poloniex#fetchCurrencies
|
|
672
672
|
* @description fetches all available currencies on an exchange
|
|
673
673
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
674
|
-
* @param {object} [params] extra parameters specific to the
|
|
674
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
675
675
|
* @returns {object} an associative dictionary of currencies
|
|
676
676
|
*/
|
|
677
677
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
@@ -805,7 +805,7 @@ export default class poloniex extends Exchange {
|
|
|
805
805
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
806
806
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
807
807
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
808
|
-
* @param {object} [params] extra parameters specific to the
|
|
808
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
809
809
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
810
810
|
*/
|
|
811
811
|
await this.loadMarkets();
|
|
@@ -938,7 +938,7 @@ export default class poloniex extends Exchange {
|
|
|
938
938
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
939
939
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
940
940
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
941
|
-
* @param {object} [params] extra parameters specific to the
|
|
941
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
942
942
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
943
943
|
*/
|
|
944
944
|
await this.loadMarkets();
|
|
@@ -974,7 +974,7 @@ export default class poloniex extends Exchange {
|
|
|
974
974
|
* @param {string} symbol unified market symbol
|
|
975
975
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
976
976
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
977
|
-
* @param {object} [params] extra parameters specific to the
|
|
977
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
978
978
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
979
979
|
* @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)
|
|
980
980
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -1186,7 +1186,7 @@ export default class poloniex extends Exchange {
|
|
|
1186
1186
|
* @param {string} symbol unified market symbol
|
|
1187
1187
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1188
1188
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1189
|
-
* @param {object} [params] extra parameters specific to the
|
|
1189
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1190
1190
|
* @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
|
|
1191
1191
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1192
1192
|
*/
|
|
@@ -1247,7 +1247,7 @@ export default class poloniex extends Exchange {
|
|
|
1247
1247
|
* @param {string} side 'buy' or 'sell'
|
|
1248
1248
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1249
1249
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1250
|
-
* @param {object} [params] extra parameters specific to the
|
|
1250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1251
1251
|
* @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
|
|
1252
1252
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1253
1253
|
*/
|
|
@@ -1331,7 +1331,7 @@ export default class poloniex extends Exchange {
|
|
|
1331
1331
|
* @param {string} side 'buy' or 'sell'
|
|
1332
1332
|
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
1333
1333
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1334
|
-
* @param {object} [params] extra parameters specific to the
|
|
1334
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1335
1335
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1336
1336
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1337
1337
|
*/
|
|
@@ -1373,7 +1373,7 @@ export default class poloniex extends Exchange {
|
|
|
1373
1373
|
// @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-order-by-id // trigger orders
|
|
1374
1374
|
// @param {string} id order id
|
|
1375
1375
|
// @param {string} symbol unified symbol of the market the order was made in
|
|
1376
|
-
// @param {object} [params] extra parameters specific to the
|
|
1376
|
+
// @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1377
1377
|
// @param {boolean} [params.trigger] true if canceling a trigger order
|
|
1378
1378
|
// @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1379
1379
|
//
|
|
@@ -1412,7 +1412,7 @@ export default class poloniex extends Exchange {
|
|
|
1412
1412
|
* @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
|
|
1413
1413
|
* @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
|
|
1414
1414
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1415
|
-
* @param {object} [params] extra parameters specific to the
|
|
1415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1416
1416
|
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
1417
1417
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1418
1418
|
*/
|
|
@@ -1465,7 +1465,7 @@ export default class poloniex extends Exchange {
|
|
|
1465
1465
|
* @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
|
|
1466
1466
|
* @param {string} id order id
|
|
1467
1467
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1468
|
-
* @param {object} [params] extra parameters specific to the
|
|
1468
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1469
1469
|
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1470
1470
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1471
1471
|
*/
|
|
@@ -1525,7 +1525,7 @@ export default class poloniex extends Exchange {
|
|
|
1525
1525
|
* @param {string} symbol unified market symbol
|
|
1526
1526
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1527
1527
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1528
|
-
* @param {object} [params] extra parameters specific to the
|
|
1528
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1529
1529
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
await this.loadMarkets();
|
|
@@ -1583,7 +1583,7 @@ export default class poloniex extends Exchange {
|
|
|
1583
1583
|
* @name poloniex#fetchBalance
|
|
1584
1584
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1585
1585
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
|
|
1586
|
-
* @param {object} [params] extra parameters specific to the
|
|
1586
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1587
1587
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1588
1588
|
*/
|
|
1589
1589
|
await this.loadMarkets();
|
|
@@ -1615,7 +1615,7 @@ export default class poloniex extends Exchange {
|
|
|
1615
1615
|
* @name poloniex#fetchTradingFees
|
|
1616
1616
|
* @description fetch the trading fees for multiple markets
|
|
1617
1617
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
|
|
1618
|
-
* @param {object} [params] extra parameters specific to the
|
|
1618
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1619
1619
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1620
1620
|
*/
|
|
1621
1621
|
await this.loadMarkets();
|
|
@@ -1650,7 +1650,7 @@ export default class poloniex extends Exchange {
|
|
|
1650
1650
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-order-book
|
|
1651
1651
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1652
1652
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1653
|
-
* @param {object} [params] extra parameters specific to the
|
|
1653
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1654
1654
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1655
1655
|
*/
|
|
1656
1656
|
await this.loadMarkets();
|
|
@@ -1706,7 +1706,7 @@ export default class poloniex extends Exchange {
|
|
|
1706
1706
|
* @description create a currency deposit address
|
|
1707
1707
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1708
1708
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1709
|
-
* @param {object} [params] extra parameters specific to the
|
|
1709
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1710
1710
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1711
1711
|
*/
|
|
1712
1712
|
await this.loadMarkets();
|
|
@@ -1757,7 +1757,7 @@ export default class poloniex extends Exchange {
|
|
|
1757
1757
|
* @description fetch the deposit address for a currency associated with this account
|
|
1758
1758
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1759
1759
|
* @param {string} code unified currency code
|
|
1760
|
-
* @param {object} [params] extra parameters specific to the
|
|
1760
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1761
1761
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1762
1762
|
*/
|
|
1763
1763
|
await this.loadMarkets();
|
|
@@ -1811,7 +1811,7 @@ export default class poloniex extends Exchange {
|
|
|
1811
1811
|
* @param {float} amount amount to transfer
|
|
1812
1812
|
* @param {string} fromAccount account to transfer from
|
|
1813
1813
|
* @param {string} toAccount account to transfer to
|
|
1814
|
-
* @param {object} [params] extra parameters specific to the
|
|
1814
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1815
1815
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1816
1816
|
*/
|
|
1817
1817
|
await this.loadMarkets();
|
|
@@ -1862,7 +1862,7 @@ export default class poloniex extends Exchange {
|
|
|
1862
1862
|
* @param {float} amount the amount to withdraw
|
|
1863
1863
|
* @param {string} address the address to withdraw to
|
|
1864
1864
|
* @param {string} tag
|
|
1865
|
-
* @param {object} [params] extra parameters specific to the
|
|
1865
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1866
1866
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1867
1867
|
*/
|
|
1868
1868
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1986,7 +1986,7 @@ export default class poloniex extends Exchange {
|
|
|
1986
1986
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1987
1987
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1988
1988
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1989
|
-
* @param {object} [params] extra parameters specific to the
|
|
1989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1990
1990
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1991
1991
|
*/
|
|
1992
1992
|
await this.loadMarkets();
|
|
@@ -2011,7 +2011,7 @@ export default class poloniex extends Exchange {
|
|
|
2011
2011
|
* @param {string} code unified currency code
|
|
2012
2012
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2013
2013
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2014
|
-
* @param {object} [params] extra parameters specific to the
|
|
2014
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2015
2015
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2016
2016
|
*/
|
|
2017
2017
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
@@ -2030,7 +2030,7 @@ export default class poloniex extends Exchange {
|
|
|
2030
2030
|
* @description fetch deposit and withdraw fees
|
|
2031
2031
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
2032
2032
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2033
|
-
* @param {object} [params] extra parameters specific to the
|
|
2033
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2034
2034
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2035
2035
|
*/
|
|
2036
2036
|
await this.loadMarkets();
|
|
@@ -2157,7 +2157,7 @@ export default class poloniex extends Exchange {
|
|
|
2157
2157
|
* @param {string} code unified currency code
|
|
2158
2158
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2159
2159
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2160
|
-
* @param {object} [params] extra parameters specific to the
|
|
2160
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2161
2161
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2162
2162
|
*/
|
|
2163
2163
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
@@ -208,7 +208,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
208
208
|
* @name poloniexfutures#fetchMarkets
|
|
209
209
|
* @description retrieves data on all markets for poloniexfutures
|
|
210
210
|
* @see https://futures-docs.poloniex.com/#symbol-2
|
|
211
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
211
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
212
212
|
* @returns {object[]} an array of objects representing market data
|
|
213
213
|
*/
|
|
214
214
|
const response = await this.publicGetContractsActive(params);
|
|
@@ -404,7 +404,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
404
404
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
405
405
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
|
|
406
406
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
407
|
-
* @param {object} [params] extra parameters specific to the
|
|
407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
408
408
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
409
409
|
*/
|
|
410
410
|
await this.loadMarkets();
|
|
@@ -437,10 +437,10 @@ export default class poloniexfutures extends Exchange {
|
|
|
437
437
|
/**
|
|
438
438
|
* @method
|
|
439
439
|
* @name poloniexfutures#fetchTickers
|
|
440
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
440
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
441
441
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
|
|
442
442
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
443
|
-
* @param {object} [params] extra parameters specific to the
|
|
443
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
444
444
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
445
445
|
*/
|
|
446
446
|
await this.loadMarkets();
|
|
@@ -456,7 +456,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
456
456
|
* @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
|
|
457
457
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
458
458
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
459
|
-
* @param {object} [params] extra parameters specific to the
|
|
459
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
460
460
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
461
461
|
*/
|
|
462
462
|
await this.loadMarkets();
|
|
@@ -542,7 +542,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
542
542
|
* @see https://futures-docs.poloniex.com/#get-full-order-book-level-3
|
|
543
543
|
* @param {string} symbol unified market symbol
|
|
544
544
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
545
|
-
* @param {object} [params] extra parameters specific to the
|
|
545
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
546
546
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
547
547
|
*/
|
|
548
548
|
await this.loadMarkets();
|
|
@@ -650,7 +650,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
650
650
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
651
651
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
652
652
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
653
|
-
* @param {object} [params] extra parameters specific to the
|
|
653
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
654
654
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
655
655
|
*/
|
|
656
656
|
await this.loadMarkets();
|
|
@@ -684,7 +684,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
684
684
|
* @name poloniexfutures#fetchTime
|
|
685
685
|
* @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
|
686
686
|
* @see https://futures-docs.poloniex.com/#time
|
|
687
|
-
* @param {object} [params] extra parameters specific to the
|
|
687
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
688
688
|
* @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
|
|
689
689
|
*/
|
|
690
690
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -707,7 +707,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
707
707
|
* @param {string} timeframe the length of time each candle represents
|
|
708
708
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
709
709
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
710
|
-
* @param {object} [params] extra parameters specific to the
|
|
710
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
711
711
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
712
712
|
*/
|
|
713
713
|
await this.loadMarkets();
|
|
@@ -772,7 +772,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
772
772
|
* @name poloniexfutures#fetchBalance
|
|
773
773
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
774
774
|
* @see https://futures-docs.poloniex.com/#get-account-overview
|
|
775
|
-
* @param {object} [params] extra parameters specific to the
|
|
775
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
776
776
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
777
777
|
*/
|
|
778
778
|
await this.loadMarkets();
|
|
@@ -813,7 +813,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
813
813
|
* @param {string} side 'buy' or 'sell'
|
|
814
814
|
* @param {float} amount the amount of currency to trade
|
|
815
815
|
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
816
|
-
* @param {object} [params]
|
|
816
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
817
817
|
* @param {float} [params.leverage] Leverage size of the order
|
|
818
818
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
819
819
|
* @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.
|
|
@@ -918,7 +918,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
918
918
|
* @see https://futures-docs.poloniex.com/#cancel-an-order
|
|
919
919
|
* @param {string} id order id
|
|
920
920
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
921
|
-
* @param {object} [params] extra parameters specific to the
|
|
921
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
922
922
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
923
923
|
*/
|
|
924
924
|
await this.loadMarkets();
|
|
@@ -957,7 +957,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
957
957
|
* @description fetch all open positions
|
|
958
958
|
* @see https://futures-docs.poloniex.com/#get-position-list
|
|
959
959
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
960
|
-
* @param {object} [params] extra parameters specific to the
|
|
960
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
961
961
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
962
962
|
*/
|
|
963
963
|
await this.loadMarkets();
|
|
@@ -1113,7 +1113,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1113
1113
|
* @param {string} symbol unified market symbol
|
|
1114
1114
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
1115
1115
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1116
|
-
* @param {object} [params] extra parameters specific to the
|
|
1116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1117
1117
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
1118
1118
|
*/
|
|
1119
1119
|
if (symbol === undefined) {
|
|
@@ -1183,7 +1183,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1183
1183
|
* @name poloniexfutures#cancelAllOrders
|
|
1184
1184
|
* @description cancel all open orders
|
|
1185
1185
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1186
|
-
* @param {object} [params] extra parameters specific to the
|
|
1186
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1187
1187
|
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1188
1188
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1189
1189
|
*/
|
|
@@ -1352,7 +1352,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1352
1352
|
* @param {string} symbol unified market symbol
|
|
1353
1353
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1354
1354
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1355
|
-
* @param {object} [params] extra parameters specific to the
|
|
1355
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1356
1356
|
* @param {int} [params.till] end time in ms
|
|
1357
1357
|
* @param {string} [params.side] buy or sell
|
|
1358
1358
|
* @param {string} [params.type] limit, or market
|
|
@@ -1370,7 +1370,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1370
1370
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1371
1371
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1372
1372
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1373
|
-
* @param {object} [params] extra parameters specific to the
|
|
1373
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1374
1374
|
* @param {int} [params.till] end time in ms
|
|
1375
1375
|
* @param {string} [params.side] buy or sell
|
|
1376
1376
|
* @param {string} [params.type] limit, or market
|
|
@@ -1386,7 +1386,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1386
1386
|
* @see https://futures-docs.poloniex.com/#get-details-of-a-single-order
|
|
1387
1387
|
* @see https://futures-docs.poloniex.com/#get-single-order-by-clientoid
|
|
1388
1388
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1389
|
-
* @param {object} [params] extra parameters specific to the
|
|
1389
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1390
1390
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1391
1391
|
*/
|
|
1392
1392
|
await this.loadMarkets();
|
|
@@ -1585,7 +1585,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1585
1585
|
* @description fetch the current funding rate
|
|
1586
1586
|
* @see https://futures-docs.poloniex.com/#get-premium-index
|
|
1587
1587
|
* @param {string} symbol unified market symbol
|
|
1588
|
-
* @param {object} [params] extra parameters specific to the
|
|
1588
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1589
1589
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1590
1590
|
*/
|
|
1591
1591
|
await this.loadMarkets();
|
|
@@ -1635,7 +1635,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1635
1635
|
* @param {string} symbol unified market symbol
|
|
1636
1636
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1637
1637
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1638
|
-
* @param {object} [params] extra parameters specific to the
|
|
1638
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1639
1639
|
* @param {string} orderIdFills filles for a specific order (other parameters can be ignored if specified)
|
|
1640
1640
|
* @param {string} side buy or sell
|
|
1641
1641
|
* @param {string} type limit, market, limit_stop or market_stop
|
|
@@ -1698,7 +1698,7 @@ export default class poloniexfutures extends Exchange {
|
|
|
1698
1698
|
* @see https://futures-docs.poloniex.com/#change-margin-mode
|
|
1699
1699
|
* @param {int} marginMode 0 (isolated) or 1 (cross)
|
|
1700
1700
|
* @param {string} symbol unified market symbol
|
|
1701
|
-
* @param {object} [params] extra parameters specific to the
|
|
1701
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1702
1702
|
* @returns {object} response from the exchange
|
|
1703
1703
|
*/
|
|
1704
1704
|
if (symbol === undefined) {
|
package/js/src/pro/alpaca.js
CHANGED
|
@@ -53,7 +53,7 @@ export default class alpaca extends alpacaRest {
|
|
|
53
53
|
* @name alpaca#watchTicker
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
56
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
57
57
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
58
58
|
*/
|
|
59
59
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -131,7 +131,7 @@ export default class alpaca extends alpacaRest {
|
|
|
131
131
|
* @param {string} timeframe the length of time each candle represents
|
|
132
132
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
133
133
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
134
|
-
* @param {object} [params] extra parameters specific to the
|
|
134
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
135
135
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
136
136
|
*/
|
|
137
137
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -185,7 +185,7 @@ export default class alpaca extends alpacaRest {
|
|
|
185
185
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
189
189
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
190
190
|
*/
|
|
191
191
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -265,7 +265,7 @@ export default class alpaca extends alpacaRest {
|
|
|
265
265
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
269
269
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
270
270
|
*/
|
|
271
271
|
const url = this.urls['api']['ws']['crypto'];
|
|
@@ -317,7 +317,7 @@ export default class alpaca extends alpacaRest {
|
|
|
317
317
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
318
318
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
319
319
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
320
|
-
* @param {object} [params] extra parameters specific to the
|
|
320
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
321
321
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
322
322
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
323
323
|
*/
|
|
@@ -349,7 +349,7 @@ export default class alpaca extends alpacaRest {
|
|
|
349
349
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
352
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
353
353
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
354
354
|
*/
|
|
355
355
|
const url = this.urls['api']['ws']['trading'];
|
package/js/src/pro/ascendex.js
CHANGED
|
@@ -82,7 +82,7 @@ export default class ascendex extends ascendexRest {
|
|
|
82
82
|
* @param {string} timeframe the length of time each candle represents
|
|
83
83
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
84
84
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
85
|
-
* @param {object} [params] extra parameters specific to the
|
|
85
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
86
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
87
87
|
*/
|
|
88
88
|
await this.loadMarkets();
|
|
@@ -146,7 +146,7 @@ export default class ascendex extends ascendexRest {
|
|
|
146
146
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
147
147
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
148
148
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
149
|
-
* @param {object} [params] extra parameters specific to the
|
|
149
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
150
150
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
151
151
|
*/
|
|
152
152
|
await this.loadMarkets();
|
|
@@ -206,7 +206,7 @@ export default class ascendex extends ascendexRest {
|
|
|
206
206
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
209
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
210
210
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
211
211
|
*/
|
|
212
212
|
await this.loadMarkets();
|
|
@@ -351,7 +351,7 @@ export default class ascendex extends ascendexRest {
|
|
|
351
351
|
* @method
|
|
352
352
|
* @name ascendex#watchBalance
|
|
353
353
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
354
|
-
* @param {object} [params] extra parameters specific to the
|
|
354
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
355
355
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
356
356
|
*/
|
|
357
357
|
await this.loadMarkets();
|
|
@@ -479,7 +479,7 @@ export default class ascendex extends ascendexRest {
|
|
|
479
479
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
482
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
483
483
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
484
484
|
*/
|
|
485
485
|
await this.loadMarkets();
|