ccxt 4.0.74 → 4.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2047 -1932
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +21 -21
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +5 -5
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +21 -21
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.js +5 -5
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/dist/cjs/src/phemex.js
CHANGED
|
@@ -974,7 +974,7 @@ class phemex extends phemex$1 {
|
|
|
974
974
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
975
975
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
976
976
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
977
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
977
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
978
978
|
*/
|
|
979
979
|
await this.loadMarkets();
|
|
980
980
|
const market = this.market(symbol);
|
|
@@ -1261,7 +1261,7 @@ class phemex extends phemex$1 {
|
|
|
1261
1261
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query24hrsticker
|
|
1262
1262
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1263
1263
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
1264
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1264
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1265
1265
|
*/
|
|
1266
1266
|
await this.loadMarkets();
|
|
1267
1267
|
const market = this.market(symbol);
|
|
@@ -1336,7 +1336,7 @@ class phemex extends phemex$1 {
|
|
|
1336
1336
|
* @see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols // inverse
|
|
1337
1337
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1338
1338
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
1339
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1339
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1340
1340
|
*/
|
|
1341
1341
|
await this.loadMarkets();
|
|
1342
1342
|
let market = undefined;
|
|
@@ -2282,13 +2282,13 @@ class phemex extends phemex$1 {
|
|
|
2282
2282
|
* @param {string} type 'market' or 'limit'
|
|
2283
2283
|
* @param {string} side 'buy' or 'sell'
|
|
2284
2284
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2285
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2285
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2286
2286
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2287
2287
|
* @param {object} [params.takeProfit] *swap only* *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
|
|
2288
2288
|
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
2289
2289
|
* @param {object} [params.stopLoss] *swap only* *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
|
|
2290
2290
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
2291
|
-
* @returns {object} an [order structure]{@link https://
|
|
2291
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2292
2292
|
*/
|
|
2293
2293
|
await this.loadMarkets();
|
|
2294
2294
|
const market = this.market(symbol);
|
|
@@ -2582,10 +2582,10 @@ class phemex extends phemex$1 {
|
|
|
2582
2582
|
* @param {string} type 'market' or 'limit'
|
|
2583
2583
|
* @param {string} side 'buy' or 'sell'
|
|
2584
2584
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2585
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
2585
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
2586
2586
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2587
2587
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
2588
|
-
* @returns {object} an [order structure]{@link https://
|
|
2588
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2589
2589
|
*/
|
|
2590
2590
|
if (symbol === undefined) {
|
|
2591
2591
|
throw new errors.ArgumentsRequired(this.id + ' editOrder() requires a symbol argument');
|
|
@@ -2661,7 +2661,7 @@ class phemex extends phemex$1 {
|
|
|
2661
2661
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2662
2662
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2663
2663
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
2664
|
-
* @returns {object} An [order structure]{@link https://
|
|
2664
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2665
2665
|
*/
|
|
2666
2666
|
if (symbol === undefined) {
|
|
2667
2667
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -2702,7 +2702,7 @@ class phemex extends phemex$1 {
|
|
|
2702
2702
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancelall
|
|
2703
2703
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
2704
2704
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2705
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
2705
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2706
2706
|
*/
|
|
2707
2707
|
if (symbol === undefined) {
|
|
2708
2708
|
throw new errors.ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
|
|
@@ -2731,7 +2731,7 @@ class phemex extends phemex$1 {
|
|
|
2731
2731
|
* @description fetches information on an order made by the user
|
|
2732
2732
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2733
2733
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2734
|
-
* @returns {object} An [order structure]{@link https://
|
|
2734
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2735
2735
|
*/
|
|
2736
2736
|
if (symbol === undefined) {
|
|
2737
2737
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -2780,7 +2780,7 @@ class phemex extends phemex$1 {
|
|
|
2780
2780
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2781
2781
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2782
2782
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2783
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2783
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2784
2784
|
*/
|
|
2785
2785
|
if (symbol === undefined) {
|
|
2786
2786
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -2820,7 +2820,7 @@ class phemex extends phemex$1 {
|
|
|
2820
2820
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2821
2821
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2822
2822
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2823
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2823
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2824
2824
|
*/
|
|
2825
2825
|
if (symbol === undefined) {
|
|
2826
2826
|
throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -2866,7 +2866,7 @@ class phemex extends phemex$1 {
|
|
|
2866
2866
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2867
2867
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2868
2868
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2869
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2869
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2870
2870
|
*/
|
|
2871
2871
|
if (symbol === undefined) {
|
|
2872
2872
|
throw new errors.ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -2947,7 +2947,7 @@ class phemex extends phemex$1 {
|
|
|
2947
2947
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2948
2948
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2949
2949
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2950
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2950
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2951
2951
|
*/
|
|
2952
2952
|
if (symbol === undefined) {
|
|
2953
2953
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -3101,7 +3101,7 @@ class phemex extends phemex$1 {
|
|
|
3101
3101
|
* @description fetch the deposit address for a currency associated with this account
|
|
3102
3102
|
* @param {string} code unified currency code
|
|
3103
3103
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3104
|
-
* @returns {object} an [address structure]{@link https://
|
|
3104
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
3105
3105
|
*/
|
|
3106
3106
|
await this.loadMarkets();
|
|
3107
3107
|
const currency = this.currency(code);
|
|
@@ -3151,7 +3151,7 @@ class phemex extends phemex$1 {
|
|
|
3151
3151
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3152
3152
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3153
3153
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3154
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
3154
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
3155
3155
|
*/
|
|
3156
3156
|
await this.loadMarkets();
|
|
3157
3157
|
let currency = undefined;
|
|
@@ -3191,7 +3191,7 @@ class phemex extends phemex$1 {
|
|
|
3191
3191
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3192
3192
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3193
3193
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3194
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
3194
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
3195
3195
|
*/
|
|
3196
3196
|
await this.loadMarkets();
|
|
3197
3197
|
let currency = undefined;
|
|
@@ -3315,7 +3315,7 @@ class phemex extends phemex$1 {
|
|
|
3315
3315
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
|
|
3316
3316
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3317
3317
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3318
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
3318
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3319
3319
|
*/
|
|
3320
3320
|
await this.loadMarkets();
|
|
3321
3321
|
symbols = this.marketSymbols(symbols);
|
|
@@ -3589,7 +3589,7 @@ class phemex extends phemex$1 {
|
|
|
3589
3589
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3590
3590
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3591
3591
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3592
|
-
* @returns {object} a [funding history structure]{@link https://
|
|
3592
|
+
* @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
3593
3593
|
*/
|
|
3594
3594
|
await this.loadMarkets();
|
|
3595
3595
|
if (symbol === undefined) {
|
|
@@ -3659,7 +3659,7 @@ class phemex extends phemex$1 {
|
|
|
3659
3659
|
* @description fetch the current funding rate
|
|
3660
3660
|
* @param {string} symbol unified market symbol
|
|
3661
3661
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3662
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
3662
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
3663
3663
|
*/
|
|
3664
3664
|
await this.loadMarkets();
|
|
3665
3665
|
const market = this.market(symbol);
|
|
@@ -3772,7 +3772,7 @@ class phemex extends phemex$1 {
|
|
|
3772
3772
|
* @param {string} symbol unified market symbol of the market to set margin in
|
|
3773
3773
|
* @param {float} amount the amount to set the margin to
|
|
3774
3774
|
* @param {object} [params] parameters specific to the phemex api endpoint
|
|
3775
|
-
* @returns {object} A [margin structure]{@link https://
|
|
3775
|
+
* @returns {object} A [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
3776
3776
|
*/
|
|
3777
3777
|
await this.loadMarkets();
|
|
3778
3778
|
const market = this.market(symbol);
|
|
@@ -3887,7 +3887,7 @@ class phemex extends phemex$1 {
|
|
|
3887
3887
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3888
3888
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3889
3889
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3890
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://
|
|
3890
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
|
|
3891
3891
|
*/
|
|
3892
3892
|
await this.loadMarkets();
|
|
3893
3893
|
if (symbols !== undefined) {
|
|
@@ -4109,7 +4109,7 @@ class phemex extends phemex$1 {
|
|
|
4109
4109
|
* @param {string} toAccount account to transfer to
|
|
4110
4110
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
4111
4111
|
* @param {string} [params.bizType] for transferring between main and sub-acounts either 'SPOT' or 'PERPETUAL' default is 'SPOT'
|
|
4112
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
4112
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4113
4113
|
*/
|
|
4114
4114
|
await this.loadMarkets();
|
|
4115
4115
|
const currency = this.currency(code);
|
|
@@ -4194,7 +4194,7 @@ class phemex extends phemex$1 {
|
|
|
4194
4194
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4195
4195
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4196
4196
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
4197
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
4197
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4198
4198
|
*/
|
|
4199
4199
|
await this.loadMarkets();
|
|
4200
4200
|
if (code === undefined) {
|
package/dist/cjs/src/poloniex.js
CHANGED
|
@@ -551,26 +551,33 @@ class poloniex extends poloniex$1 {
|
|
|
551
551
|
//
|
|
552
552
|
// {
|
|
553
553
|
// "symbol" : "BTC_USDT",
|
|
554
|
-
// "open" : "
|
|
555
|
-
// "low" : "
|
|
556
|
-
// "high" : "
|
|
557
|
-
// "close" : "
|
|
558
|
-
// "quantity" : "
|
|
559
|
-
// "amount" : "
|
|
560
|
-
// "tradeCount" :
|
|
561
|
-
// "startTime" :
|
|
562
|
-
// "closeTime" :
|
|
554
|
+
// "open" : "26053.33",
|
|
555
|
+
// "low" : "26053.33",
|
|
556
|
+
// "high" : "26798.02",
|
|
557
|
+
// "close" : "26447.58",
|
|
558
|
+
// "quantity" : "6116.210188",
|
|
559
|
+
// "amount" : "161082122.88450926",
|
|
560
|
+
// "tradeCount" : "134709",
|
|
561
|
+
// "startTime" : "1692784440000",
|
|
562
|
+
// "closeTime" : "1692870839630",
|
|
563
563
|
// "displayName" : "BTC/USDT",
|
|
564
|
-
// "dailyChange" : "0.
|
|
565
|
-
// "
|
|
564
|
+
// "dailyChange" : "0.0151",
|
|
565
|
+
// "bid" : "26447.57",
|
|
566
|
+
// "bidQuantity" : "0.016313",
|
|
567
|
+
// "ask" : "26447.58",
|
|
568
|
+
// "askQuantity" : "0.068307",
|
|
569
|
+
// "ts" : "1692870845446",
|
|
570
|
+
// "markPrice" : "26444.11"
|
|
566
571
|
// }
|
|
567
572
|
//
|
|
568
573
|
const timestamp = this.safeInteger(ticker, 'ts');
|
|
569
574
|
const marketId = this.safeString(ticker, 'symbol');
|
|
570
575
|
market = this.safeMarket(marketId);
|
|
571
576
|
const close = this.safeString(ticker, 'close');
|
|
572
|
-
const relativeChange = this.safeString(ticker, '
|
|
577
|
+
const relativeChange = this.safeString(ticker, 'dailyChange');
|
|
573
578
|
const percentage = Precise["default"].stringMul(relativeChange, '100');
|
|
579
|
+
const bidVolume = this.safeString(ticker, 'bidQuantity');
|
|
580
|
+
const askVolume = this.safeString(ticker, 'askQuantity');
|
|
574
581
|
return this.safeTicker({
|
|
575
582
|
'id': marketId,
|
|
576
583
|
'symbol': market['symbol'],
|
|
@@ -578,10 +585,10 @@ class poloniex extends poloniex$1 {
|
|
|
578
585
|
'datetime': this.iso8601(timestamp),
|
|
579
586
|
'high': this.safeString(ticker, 'high'),
|
|
580
587
|
'low': this.safeString(ticker, 'low'),
|
|
581
|
-
'bid':
|
|
582
|
-
'bidVolume':
|
|
583
|
-
'ask':
|
|
584
|
-
'askVolume':
|
|
588
|
+
'bid': this.safeString(ticker, 'bid'),
|
|
589
|
+
'bidVolume': bidVolume,
|
|
590
|
+
'ask': this.safeString(ticker, 'ask'),
|
|
591
|
+
'askVolume': askVolume,
|
|
585
592
|
'vwap': undefined,
|
|
586
593
|
'open': this.safeString(ticker, 'open'),
|
|
587
594
|
'close': close,
|
|
@@ -603,7 +610,7 @@ class poloniex extends poloniex$1 {
|
|
|
603
610
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
604
611
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
605
612
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
606
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
613
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
607
614
|
*/
|
|
608
615
|
await this.loadMarkets();
|
|
609
616
|
symbols = this.marketSymbols(symbols);
|
|
@@ -611,19 +618,24 @@ class poloniex extends poloniex$1 {
|
|
|
611
618
|
//
|
|
612
619
|
// [
|
|
613
620
|
// {
|
|
614
|
-
//
|
|
615
|
-
//
|
|
616
|
-
//
|
|
617
|
-
//
|
|
618
|
-
//
|
|
619
|
-
//
|
|
620
|
-
//
|
|
621
|
-
//
|
|
622
|
-
//
|
|
623
|
-
//
|
|
624
|
-
//
|
|
625
|
-
//
|
|
626
|
-
//
|
|
621
|
+
// "symbol" : "BTC_USDT",
|
|
622
|
+
// "open" : "26053.33",
|
|
623
|
+
// "low" : "26053.33",
|
|
624
|
+
// "high" : "26798.02",
|
|
625
|
+
// "close" : "26447.58",
|
|
626
|
+
// "quantity" : "6116.210188",
|
|
627
|
+
// "amount" : "161082122.88450926",
|
|
628
|
+
// "tradeCount" : "134709",
|
|
629
|
+
// "startTime" : "1692784440000",
|
|
630
|
+
// "closeTime" : "1692870839630",
|
|
631
|
+
// "displayName" : "BTC/USDT",
|
|
632
|
+
// "dailyChange" : "0.0151",
|
|
633
|
+
// "bid" : "26447.57",
|
|
634
|
+
// "bidQuantity" : "0.016313",
|
|
635
|
+
// "ask" : "26447.58",
|
|
636
|
+
// "askQuantity" : "0.068307",
|
|
637
|
+
// "ts" : "1692870845446",
|
|
638
|
+
// "markPrice" : "26444.11"
|
|
627
639
|
// }
|
|
628
640
|
// ]
|
|
629
641
|
//
|
|
@@ -770,7 +782,7 @@ class poloniex extends poloniex$1 {
|
|
|
770
782
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
771
783
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
772
784
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
773
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
785
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
774
786
|
*/
|
|
775
787
|
await this.loadMarkets();
|
|
776
788
|
const market = this.market(symbol);
|
|
@@ -781,18 +793,23 @@ class poloniex extends poloniex$1 {
|
|
|
781
793
|
//
|
|
782
794
|
// {
|
|
783
795
|
// "symbol" : "BTC_USDT",
|
|
784
|
-
// "open" : "
|
|
785
|
-
// "low" : "
|
|
786
|
-
// "high" : "
|
|
787
|
-
// "close" : "
|
|
788
|
-
// "quantity" : "
|
|
789
|
-
// "amount" : "
|
|
790
|
-
// "tradeCount" :
|
|
791
|
-
// "startTime" :
|
|
792
|
-
// "closeTime" :
|
|
796
|
+
// "open" : "26053.33",
|
|
797
|
+
// "low" : "26053.33",
|
|
798
|
+
// "high" : "26798.02",
|
|
799
|
+
// "close" : "26447.58",
|
|
800
|
+
// "quantity" : "6116.210188",
|
|
801
|
+
// "amount" : "161082122.88450926",
|
|
802
|
+
// "tradeCount" : "134709",
|
|
803
|
+
// "startTime" : "1692784440000",
|
|
804
|
+
// "closeTime" : "1692870839630",
|
|
793
805
|
// "displayName" : "BTC/USDT",
|
|
794
|
-
// "dailyChange" : "0.
|
|
795
|
-
// "
|
|
806
|
+
// "dailyChange" : "0.0151",
|
|
807
|
+
// "bid" : "26447.57",
|
|
808
|
+
// "bidQuantity" : "0.016313",
|
|
809
|
+
// "ask" : "26447.58",
|
|
810
|
+
// "askQuantity" : "0.068307",
|
|
811
|
+
// "ts" : "1692870845446",
|
|
812
|
+
// "markPrice" : "26444.11"
|
|
796
813
|
// }
|
|
797
814
|
//
|
|
798
815
|
return this.parseTicker(response, market);
|
|
@@ -934,7 +951,7 @@ class poloniex extends poloniex$1 {
|
|
|
934
951
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
935
952
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
936
953
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
937
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
954
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
938
955
|
*/
|
|
939
956
|
await this.loadMarkets();
|
|
940
957
|
let market = undefined;
|
|
@@ -1136,7 +1153,7 @@ class poloniex extends poloniex$1 {
|
|
|
1136
1153
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1137
1154
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1138
1155
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1139
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1156
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1140
1157
|
*/
|
|
1141
1158
|
await this.loadMarkets();
|
|
1142
1159
|
let market = undefined;
|
|
@@ -1186,7 +1203,7 @@ class poloniex extends poloniex$1 {
|
|
|
1186
1203
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1187
1204
|
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1188
1205
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1189
|
-
* @returns {object} an [order structure]{@link https://
|
|
1206
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1190
1207
|
*/
|
|
1191
1208
|
// if (type === 'market') {
|
|
1192
1209
|
// throw new ExchangeError (this.id + ' createOrder() does not accept market orders');
|
|
@@ -1259,7 +1276,7 @@ class poloniex extends poloniex$1 {
|
|
|
1259
1276
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1260
1277
|
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1261
1278
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1262
|
-
* @returns {object} an [order structure]{@link https://
|
|
1279
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1263
1280
|
*/
|
|
1264
1281
|
await this.loadMarkets();
|
|
1265
1282
|
const market = this.market(symbol);
|
|
@@ -1292,7 +1309,7 @@ class poloniex extends poloniex$1 {
|
|
|
1292
1309
|
* @param {string} id order id
|
|
1293
1310
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1294
1311
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1295
|
-
* @returns {object} An [order structure]{@link https://
|
|
1312
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1296
1313
|
*/
|
|
1297
1314
|
await this.loadMarkets();
|
|
1298
1315
|
const request = {};
|
|
@@ -1322,7 +1339,7 @@ class poloniex extends poloniex$1 {
|
|
|
1322
1339
|
* @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
|
|
1323
1340
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1324
1341
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1325
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1342
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1326
1343
|
*/
|
|
1327
1344
|
await this.loadMarkets();
|
|
1328
1345
|
const request = {
|
|
@@ -1364,7 +1381,7 @@ class poloniex extends poloniex$1 {
|
|
|
1364
1381
|
* @param {string} id order id
|
|
1365
1382
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1366
1383
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1367
|
-
* @returns {object} an [order structure]{@link https://
|
|
1384
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1368
1385
|
*/
|
|
1369
1386
|
await this.loadMarkets();
|
|
1370
1387
|
id = id.toString();
|
|
@@ -1413,7 +1430,7 @@ class poloniex extends poloniex$1 {
|
|
|
1413
1430
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1414
1431
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1415
1432
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1416
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1433
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1417
1434
|
*/
|
|
1418
1435
|
await this.loadMarkets();
|
|
1419
1436
|
const request = {
|
|
@@ -1503,7 +1520,7 @@ class poloniex extends poloniex$1 {
|
|
|
1503
1520
|
* @description fetch the trading fees for multiple markets
|
|
1504
1521
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
|
|
1505
1522
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1506
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1523
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1507
1524
|
*/
|
|
1508
1525
|
await this.loadMarkets();
|
|
1509
1526
|
const response = await this.privateGetFeeinfo(params);
|
|
@@ -1538,7 +1555,7 @@ class poloniex extends poloniex$1 {
|
|
|
1538
1555
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1539
1556
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1540
1557
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1541
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1558
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1542
1559
|
*/
|
|
1543
1560
|
await this.loadMarkets();
|
|
1544
1561
|
const market = this.market(symbol);
|
|
@@ -1594,7 +1611,7 @@ class poloniex extends poloniex$1 {
|
|
|
1594
1611
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1595
1612
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1596
1613
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1597
|
-
* @returns {object} an [address structure]{@link https://
|
|
1614
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1598
1615
|
*/
|
|
1599
1616
|
await this.loadMarkets();
|
|
1600
1617
|
const currency = this.currency(code);
|
|
@@ -1645,7 +1662,7 @@ class poloniex extends poloniex$1 {
|
|
|
1645
1662
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1646
1663
|
* @param {string} code unified currency code
|
|
1647
1664
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1648
|
-
* @returns {object} an [address structure]{@link https://
|
|
1665
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1649
1666
|
*/
|
|
1650
1667
|
await this.loadMarkets();
|
|
1651
1668
|
const currency = this.currency(code);
|
|
@@ -1699,7 +1716,7 @@ class poloniex extends poloniex$1 {
|
|
|
1699
1716
|
* @param {string} fromAccount account to transfer from
|
|
1700
1717
|
* @param {string} toAccount account to transfer to
|
|
1701
1718
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1702
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1719
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1703
1720
|
*/
|
|
1704
1721
|
await this.loadMarkets();
|
|
1705
1722
|
const currency = this.currency(code);
|
|
@@ -1750,7 +1767,7 @@ class poloniex extends poloniex$1 {
|
|
|
1750
1767
|
* @param {string} address the address to withdraw to
|
|
1751
1768
|
* @param {string} tag
|
|
1752
1769
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1753
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1770
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1754
1771
|
*/
|
|
1755
1772
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1756
1773
|
this.checkAddress(address);
|
|
@@ -1874,7 +1891,7 @@ class poloniex extends poloniex$1 {
|
|
|
1874
1891
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1875
1892
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1876
1893
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1877
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1894
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1878
1895
|
*/
|
|
1879
1896
|
await this.loadMarkets();
|
|
1880
1897
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
@@ -1899,7 +1916,7 @@ class poloniex extends poloniex$1 {
|
|
|
1899
1916
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1900
1917
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1901
1918
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1902
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1919
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1903
1920
|
*/
|
|
1904
1921
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
1905
1922
|
let currency = undefined;
|
|
@@ -1918,7 +1935,7 @@ class poloniex extends poloniex$1 {
|
|
|
1918
1935
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
1919
1936
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1920
1937
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1921
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
1938
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1922
1939
|
*/
|
|
1923
1940
|
await this.loadMarkets();
|
|
1924
1941
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
@@ -2044,7 +2061,7 @@ class poloniex extends poloniex$1 {
|
|
|
2044
2061
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2045
2062
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2046
2063
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
2047
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2064
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2048
2065
|
*/
|
|
2049
2066
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2050
2067
|
let currency = undefined;
|