ccxt 4.0.73 → 4.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/js/src/phemex.js
CHANGED
|
@@ -977,7 +977,7 @@ export default class phemex extends Exchange {
|
|
|
977
977
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
978
978
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
979
979
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
980
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
980
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
981
981
|
*/
|
|
982
982
|
await this.loadMarkets();
|
|
983
983
|
const market = this.market(symbol);
|
|
@@ -1264,7 +1264,7 @@ export default class phemex extends Exchange {
|
|
|
1264
1264
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query24hrsticker
|
|
1265
1265
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1266
1266
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
1267
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1267
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1268
1268
|
*/
|
|
1269
1269
|
await this.loadMarkets();
|
|
1270
1270
|
const market = this.market(symbol);
|
|
@@ -1339,7 +1339,7 @@ export default class phemex extends Exchange {
|
|
|
1339
1339
|
* @see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols // inverse
|
|
1340
1340
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1341
1341
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
1342
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1342
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1343
1343
|
*/
|
|
1344
1344
|
await this.loadMarkets();
|
|
1345
1345
|
let market = undefined;
|
|
@@ -2285,13 +2285,13 @@ export default class phemex extends Exchange {
|
|
|
2285
2285
|
* @param {string} type 'market' or 'limit'
|
|
2286
2286
|
* @param {string} side 'buy' or 'sell'
|
|
2287
2287
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2288
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2288
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2289
2289
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2290
2290
|
* @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)
|
|
2291
2291
|
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
2292
2292
|
* @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)
|
|
2293
2293
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
2294
|
-
* @returns {object} an [order structure]{@link https://
|
|
2294
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2295
2295
|
*/
|
|
2296
2296
|
await this.loadMarkets();
|
|
2297
2297
|
const market = this.market(symbol);
|
|
@@ -2585,10 +2585,10 @@ export default class phemex extends Exchange {
|
|
|
2585
2585
|
* @param {string} type 'market' or 'limit'
|
|
2586
2586
|
* @param {string} side 'buy' or 'sell'
|
|
2587
2587
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2588
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
2588
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
2589
2589
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2590
2590
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
2591
|
-
* @returns {object} an [order structure]{@link https://
|
|
2591
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2592
2592
|
*/
|
|
2593
2593
|
if (symbol === undefined) {
|
|
2594
2594
|
throw new ArgumentsRequired(this.id + ' editOrder() requires a symbol argument');
|
|
@@ -2664,7 +2664,7 @@ export default class phemex extends Exchange {
|
|
|
2664
2664
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2665
2665
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2666
2666
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
2667
|
-
* @returns {object} An [order structure]{@link https://
|
|
2667
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2668
2668
|
*/
|
|
2669
2669
|
if (symbol === undefined) {
|
|
2670
2670
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -2705,7 +2705,7 @@ export default class phemex extends Exchange {
|
|
|
2705
2705
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancelall
|
|
2706
2706
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
2707
2707
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2708
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
2708
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2709
2709
|
*/
|
|
2710
2710
|
if (symbol === undefined) {
|
|
2711
2711
|
throw new ArgumentsRequired(this.id + ' cancelAllOrders() requires a symbol argument');
|
|
@@ -2734,7 +2734,7 @@ export default class phemex extends Exchange {
|
|
|
2734
2734
|
* @description fetches information on an order made by the user
|
|
2735
2735
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2736
2736
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2737
|
-
* @returns {object} An [order structure]{@link https://
|
|
2737
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2738
2738
|
*/
|
|
2739
2739
|
if (symbol === undefined) {
|
|
2740
2740
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -2783,7 +2783,7 @@ export default class phemex extends Exchange {
|
|
|
2783
2783
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2784
2784
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2785
2785
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2786
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2786
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2787
2787
|
*/
|
|
2788
2788
|
if (symbol === undefined) {
|
|
2789
2789
|
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -2823,7 +2823,7 @@ export default class phemex extends Exchange {
|
|
|
2823
2823
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2824
2824
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2825
2825
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2826
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2826
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2827
2827
|
*/
|
|
2828
2828
|
if (symbol === undefined) {
|
|
2829
2829
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
|
|
@@ -2869,7 +2869,7 @@ export default class phemex extends Exchange {
|
|
|
2869
2869
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2870
2870
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2871
2871
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2872
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2872
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2873
2873
|
*/
|
|
2874
2874
|
if (symbol === undefined) {
|
|
2875
2875
|
throw new ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
|
|
@@ -2950,7 +2950,7 @@ export default class phemex extends Exchange {
|
|
|
2950
2950
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2951
2951
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2952
2952
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
2953
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
2953
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
2954
2954
|
*/
|
|
2955
2955
|
if (symbol === undefined) {
|
|
2956
2956
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
@@ -3104,7 +3104,7 @@ export default class phemex extends Exchange {
|
|
|
3104
3104
|
* @description fetch the deposit address for a currency associated with this account
|
|
3105
3105
|
* @param {string} code unified currency code
|
|
3106
3106
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3107
|
-
* @returns {object} an [address structure]{@link https://
|
|
3107
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
3108
3108
|
*/
|
|
3109
3109
|
await this.loadMarkets();
|
|
3110
3110
|
const currency = this.currency(code);
|
|
@@ -3154,7 +3154,7 @@ export default class phemex extends Exchange {
|
|
|
3154
3154
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3155
3155
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3156
3156
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3157
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
3157
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
3158
3158
|
*/
|
|
3159
3159
|
await this.loadMarkets();
|
|
3160
3160
|
let currency = undefined;
|
|
@@ -3194,7 +3194,7 @@ export default class phemex extends Exchange {
|
|
|
3194
3194
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3195
3195
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3196
3196
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3197
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
3197
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
3198
3198
|
*/
|
|
3199
3199
|
await this.loadMarkets();
|
|
3200
3200
|
let currency = undefined;
|
|
@@ -3318,7 +3318,7 @@ export default class phemex extends Exchange {
|
|
|
3318
3318
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
|
|
3319
3319
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3320
3320
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3321
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
3321
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3322
3322
|
*/
|
|
3323
3323
|
await this.loadMarkets();
|
|
3324
3324
|
symbols = this.marketSymbols(symbols);
|
|
@@ -3592,7 +3592,7 @@ export default class phemex extends Exchange {
|
|
|
3592
3592
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3593
3593
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3594
3594
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3595
|
-
* @returns {object} a [funding history structure]{@link https://
|
|
3595
|
+
* @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
3596
3596
|
*/
|
|
3597
3597
|
await this.loadMarkets();
|
|
3598
3598
|
if (symbol === undefined) {
|
|
@@ -3662,7 +3662,7 @@ export default class phemex extends Exchange {
|
|
|
3662
3662
|
* @description fetch the current funding rate
|
|
3663
3663
|
* @param {string} symbol unified market symbol
|
|
3664
3664
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3665
|
-
* @returns {object} a [funding rate structure]{@link https://
|
|
3665
|
+
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
3666
3666
|
*/
|
|
3667
3667
|
await this.loadMarkets();
|
|
3668
3668
|
const market = this.market(symbol);
|
|
@@ -3775,7 +3775,7 @@ export default class phemex extends Exchange {
|
|
|
3775
3775
|
* @param {string} symbol unified market symbol of the market to set margin in
|
|
3776
3776
|
* @param {float} amount the amount to set the margin to
|
|
3777
3777
|
* @param {object} [params] parameters specific to the phemex api endpoint
|
|
3778
|
-
* @returns {object} A [margin structure]{@link https://
|
|
3778
|
+
* @returns {object} A [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
3779
3779
|
*/
|
|
3780
3780
|
await this.loadMarkets();
|
|
3781
3781
|
const market = this.market(symbol);
|
|
@@ -3890,7 +3890,7 @@ export default class phemex extends Exchange {
|
|
|
3890
3890
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3891
3891
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3892
3892
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
3893
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://
|
|
3893
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
|
|
3894
3894
|
*/
|
|
3895
3895
|
await this.loadMarkets();
|
|
3896
3896
|
if (symbols !== undefined) {
|
|
@@ -4112,7 +4112,7 @@ export default class phemex extends Exchange {
|
|
|
4112
4112
|
* @param {string} toAccount account to transfer to
|
|
4113
4113
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
4114
4114
|
* @param {string} [params.bizType] for transferring between main and sub-acounts either 'SPOT' or 'PERPETUAL' default is 'SPOT'
|
|
4115
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
4115
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4116
4116
|
*/
|
|
4117
4117
|
await this.loadMarkets();
|
|
4118
4118
|
const currency = this.currency(code);
|
|
@@ -4197,7 +4197,7 @@ export default class phemex extends Exchange {
|
|
|
4197
4197
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4198
4198
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4199
4199
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
4200
|
-
* @returns {object[]} a list of [transfer structures]{@link https://
|
|
4200
|
+
* @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
4201
4201
|
*/
|
|
4202
4202
|
await this.loadMarkets();
|
|
4203
4203
|
if (code === undefined) {
|
package/js/src/poloniex.js
CHANGED
|
@@ -554,26 +554,33 @@ export default class poloniex extends Exchange {
|
|
|
554
554
|
//
|
|
555
555
|
// {
|
|
556
556
|
// "symbol" : "BTC_USDT",
|
|
557
|
-
// "open" : "
|
|
558
|
-
// "low" : "
|
|
559
|
-
// "high" : "
|
|
560
|
-
// "close" : "
|
|
561
|
-
// "quantity" : "
|
|
562
|
-
// "amount" : "
|
|
563
|
-
// "tradeCount" :
|
|
564
|
-
// "startTime" :
|
|
565
|
-
// "closeTime" :
|
|
557
|
+
// "open" : "26053.33",
|
|
558
|
+
// "low" : "26053.33",
|
|
559
|
+
// "high" : "26798.02",
|
|
560
|
+
// "close" : "26447.58",
|
|
561
|
+
// "quantity" : "6116.210188",
|
|
562
|
+
// "amount" : "161082122.88450926",
|
|
563
|
+
// "tradeCount" : "134709",
|
|
564
|
+
// "startTime" : "1692784440000",
|
|
565
|
+
// "closeTime" : "1692870839630",
|
|
566
566
|
// "displayName" : "BTC/USDT",
|
|
567
|
-
// "dailyChange" : "0.
|
|
568
|
-
// "
|
|
567
|
+
// "dailyChange" : "0.0151",
|
|
568
|
+
// "bid" : "26447.57",
|
|
569
|
+
// "bidQuantity" : "0.016313",
|
|
570
|
+
// "ask" : "26447.58",
|
|
571
|
+
// "askQuantity" : "0.068307",
|
|
572
|
+
// "ts" : "1692870845446",
|
|
573
|
+
// "markPrice" : "26444.11"
|
|
569
574
|
// }
|
|
570
575
|
//
|
|
571
576
|
const timestamp = this.safeInteger(ticker, 'ts');
|
|
572
577
|
const marketId = this.safeString(ticker, 'symbol');
|
|
573
578
|
market = this.safeMarket(marketId);
|
|
574
579
|
const close = this.safeString(ticker, 'close');
|
|
575
|
-
const relativeChange = this.safeString(ticker, '
|
|
580
|
+
const relativeChange = this.safeString(ticker, 'dailyChange');
|
|
576
581
|
const percentage = Precise.stringMul(relativeChange, '100');
|
|
582
|
+
const bidVolume = this.safeString(ticker, 'bidQuantity');
|
|
583
|
+
const askVolume = this.safeString(ticker, 'askQuantity');
|
|
577
584
|
return this.safeTicker({
|
|
578
585
|
'id': marketId,
|
|
579
586
|
'symbol': market['symbol'],
|
|
@@ -581,10 +588,10 @@ export default class poloniex extends Exchange {
|
|
|
581
588
|
'datetime': this.iso8601(timestamp),
|
|
582
589
|
'high': this.safeString(ticker, 'high'),
|
|
583
590
|
'low': this.safeString(ticker, 'low'),
|
|
584
|
-
'bid':
|
|
585
|
-
'bidVolume':
|
|
586
|
-
'ask':
|
|
587
|
-
'askVolume':
|
|
591
|
+
'bid': this.safeString(ticker, 'bid'),
|
|
592
|
+
'bidVolume': bidVolume,
|
|
593
|
+
'ask': this.safeString(ticker, 'ask'),
|
|
594
|
+
'askVolume': askVolume,
|
|
588
595
|
'vwap': undefined,
|
|
589
596
|
'open': this.safeString(ticker, 'open'),
|
|
590
597
|
'close': close,
|
|
@@ -606,7 +613,7 @@ export default class poloniex extends Exchange {
|
|
|
606
613
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
607
614
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
608
615
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
609
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
616
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
610
617
|
*/
|
|
611
618
|
await this.loadMarkets();
|
|
612
619
|
symbols = this.marketSymbols(symbols);
|
|
@@ -614,19 +621,24 @@ export default class poloniex extends Exchange {
|
|
|
614
621
|
//
|
|
615
622
|
// [
|
|
616
623
|
// {
|
|
617
|
-
//
|
|
618
|
-
//
|
|
619
|
-
//
|
|
620
|
-
//
|
|
621
|
-
//
|
|
622
|
-
//
|
|
623
|
-
//
|
|
624
|
-
//
|
|
625
|
-
//
|
|
626
|
-
//
|
|
627
|
-
//
|
|
628
|
-
//
|
|
629
|
-
//
|
|
624
|
+
// "symbol" : "BTC_USDT",
|
|
625
|
+
// "open" : "26053.33",
|
|
626
|
+
// "low" : "26053.33",
|
|
627
|
+
// "high" : "26798.02",
|
|
628
|
+
// "close" : "26447.58",
|
|
629
|
+
// "quantity" : "6116.210188",
|
|
630
|
+
// "amount" : "161082122.88450926",
|
|
631
|
+
// "tradeCount" : "134709",
|
|
632
|
+
// "startTime" : "1692784440000",
|
|
633
|
+
// "closeTime" : "1692870839630",
|
|
634
|
+
// "displayName" : "BTC/USDT",
|
|
635
|
+
// "dailyChange" : "0.0151",
|
|
636
|
+
// "bid" : "26447.57",
|
|
637
|
+
// "bidQuantity" : "0.016313",
|
|
638
|
+
// "ask" : "26447.58",
|
|
639
|
+
// "askQuantity" : "0.068307",
|
|
640
|
+
// "ts" : "1692870845446",
|
|
641
|
+
// "markPrice" : "26444.11"
|
|
630
642
|
// }
|
|
631
643
|
// ]
|
|
632
644
|
//
|
|
@@ -773,7 +785,7 @@ export default class poloniex extends Exchange {
|
|
|
773
785
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
774
786
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
775
787
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
776
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
788
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
777
789
|
*/
|
|
778
790
|
await this.loadMarkets();
|
|
779
791
|
const market = this.market(symbol);
|
|
@@ -784,18 +796,23 @@ export default class poloniex extends Exchange {
|
|
|
784
796
|
//
|
|
785
797
|
// {
|
|
786
798
|
// "symbol" : "BTC_USDT",
|
|
787
|
-
// "open" : "
|
|
788
|
-
// "low" : "
|
|
789
|
-
// "high" : "
|
|
790
|
-
// "close" : "
|
|
791
|
-
// "quantity" : "
|
|
792
|
-
// "amount" : "
|
|
793
|
-
// "tradeCount" :
|
|
794
|
-
// "startTime" :
|
|
795
|
-
// "closeTime" :
|
|
799
|
+
// "open" : "26053.33",
|
|
800
|
+
// "low" : "26053.33",
|
|
801
|
+
// "high" : "26798.02",
|
|
802
|
+
// "close" : "26447.58",
|
|
803
|
+
// "quantity" : "6116.210188",
|
|
804
|
+
// "amount" : "161082122.88450926",
|
|
805
|
+
// "tradeCount" : "134709",
|
|
806
|
+
// "startTime" : "1692784440000",
|
|
807
|
+
// "closeTime" : "1692870839630",
|
|
796
808
|
// "displayName" : "BTC/USDT",
|
|
797
|
-
// "dailyChange" : "0.
|
|
798
|
-
// "
|
|
809
|
+
// "dailyChange" : "0.0151",
|
|
810
|
+
// "bid" : "26447.57",
|
|
811
|
+
// "bidQuantity" : "0.016313",
|
|
812
|
+
// "ask" : "26447.58",
|
|
813
|
+
// "askQuantity" : "0.068307",
|
|
814
|
+
// "ts" : "1692870845446",
|
|
815
|
+
// "markPrice" : "26444.11"
|
|
799
816
|
// }
|
|
800
817
|
//
|
|
801
818
|
return this.parseTicker(response, market);
|
|
@@ -937,7 +954,7 @@ export default class poloniex extends Exchange {
|
|
|
937
954
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
938
955
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
939
956
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
940
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
957
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
941
958
|
*/
|
|
942
959
|
await this.loadMarkets();
|
|
943
960
|
let market = undefined;
|
|
@@ -1139,7 +1156,7 @@ export default class poloniex extends Exchange {
|
|
|
1139
1156
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1140
1157
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1141
1158
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1142
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1159
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1143
1160
|
*/
|
|
1144
1161
|
await this.loadMarkets();
|
|
1145
1162
|
let market = undefined;
|
|
@@ -1189,7 +1206,7 @@ export default class poloniex extends Exchange {
|
|
|
1189
1206
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1190
1207
|
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1191
1208
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1192
|
-
* @returns {object} an [order structure]{@link https://
|
|
1209
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1193
1210
|
*/
|
|
1194
1211
|
// if (type === 'market') {
|
|
1195
1212
|
// throw new ExchangeError (this.id + ' createOrder() does not accept market orders');
|
|
@@ -1262,7 +1279,7 @@ export default class poloniex extends Exchange {
|
|
|
1262
1279
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1263
1280
|
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1264
1281
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1265
|
-
* @returns {object} an [order structure]{@link https://
|
|
1282
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1266
1283
|
*/
|
|
1267
1284
|
await this.loadMarkets();
|
|
1268
1285
|
const market = this.market(symbol);
|
|
@@ -1295,7 +1312,7 @@ export default class poloniex extends Exchange {
|
|
|
1295
1312
|
* @param {string} id order id
|
|
1296
1313
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1297
1314
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1298
|
-
* @returns {object} An [order structure]{@link https://
|
|
1315
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1299
1316
|
*/
|
|
1300
1317
|
await this.loadMarkets();
|
|
1301
1318
|
const request = {};
|
|
@@ -1325,7 +1342,7 @@ export default class poloniex extends Exchange {
|
|
|
1325
1342
|
* @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
|
|
1326
1343
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1327
1344
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1328
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1345
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1329
1346
|
*/
|
|
1330
1347
|
await this.loadMarkets();
|
|
1331
1348
|
const request = {
|
|
@@ -1367,7 +1384,7 @@ export default class poloniex extends Exchange {
|
|
|
1367
1384
|
* @param {string} id order id
|
|
1368
1385
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1369
1386
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1370
|
-
* @returns {object} an [order structure]{@link https://
|
|
1387
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1371
1388
|
*/
|
|
1372
1389
|
await this.loadMarkets();
|
|
1373
1390
|
id = id.toString();
|
|
@@ -1416,7 +1433,7 @@ export default class poloniex extends Exchange {
|
|
|
1416
1433
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1417
1434
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1418
1435
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1419
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
1436
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1420
1437
|
*/
|
|
1421
1438
|
await this.loadMarkets();
|
|
1422
1439
|
const request = {
|
|
@@ -1506,7 +1523,7 @@ export default class poloniex extends Exchange {
|
|
|
1506
1523
|
* @description fetch the trading fees for multiple markets
|
|
1507
1524
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
|
|
1508
1525
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1509
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1526
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1510
1527
|
*/
|
|
1511
1528
|
await this.loadMarkets();
|
|
1512
1529
|
const response = await this.privateGetFeeinfo(params);
|
|
@@ -1541,7 +1558,7 @@ export default class poloniex extends Exchange {
|
|
|
1541
1558
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1542
1559
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1543
1560
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1544
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1561
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1545
1562
|
*/
|
|
1546
1563
|
await this.loadMarkets();
|
|
1547
1564
|
const market = this.market(symbol);
|
|
@@ -1597,7 +1614,7 @@ export default class poloniex extends Exchange {
|
|
|
1597
1614
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1598
1615
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1599
1616
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1600
|
-
* @returns {object} an [address structure]{@link https://
|
|
1617
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1601
1618
|
*/
|
|
1602
1619
|
await this.loadMarkets();
|
|
1603
1620
|
const currency = this.currency(code);
|
|
@@ -1648,7 +1665,7 @@ export default class poloniex extends Exchange {
|
|
|
1648
1665
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1649
1666
|
* @param {string} code unified currency code
|
|
1650
1667
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1651
|
-
* @returns {object} an [address structure]{@link https://
|
|
1668
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1652
1669
|
*/
|
|
1653
1670
|
await this.loadMarkets();
|
|
1654
1671
|
const currency = this.currency(code);
|
|
@@ -1702,7 +1719,7 @@ export default class poloniex extends Exchange {
|
|
|
1702
1719
|
* @param {string} fromAccount account to transfer from
|
|
1703
1720
|
* @param {string} toAccount account to transfer to
|
|
1704
1721
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1705
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1722
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1706
1723
|
*/
|
|
1707
1724
|
await this.loadMarkets();
|
|
1708
1725
|
const currency = this.currency(code);
|
|
@@ -1753,7 +1770,7 @@ export default class poloniex extends Exchange {
|
|
|
1753
1770
|
* @param {string} address the address to withdraw to
|
|
1754
1771
|
* @param {string} tag
|
|
1755
1772
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1756
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1773
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1757
1774
|
*/
|
|
1758
1775
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1759
1776
|
this.checkAddress(address);
|
|
@@ -1877,7 +1894,7 @@ export default class poloniex extends Exchange {
|
|
|
1877
1894
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1878
1895
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1879
1896
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1880
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1897
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1881
1898
|
*/
|
|
1882
1899
|
await this.loadMarkets();
|
|
1883
1900
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
@@ -1902,7 +1919,7 @@ export default class poloniex extends Exchange {
|
|
|
1902
1919
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1903
1920
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1904
1921
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1905
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1922
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1906
1923
|
*/
|
|
1907
1924
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
1908
1925
|
let currency = undefined;
|
|
@@ -1921,7 +1938,7 @@ export default class poloniex extends Exchange {
|
|
|
1921
1938
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
1922
1939
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1923
1940
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1924
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
1941
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1925
1942
|
*/
|
|
1926
1943
|
await this.loadMarkets();
|
|
1927
1944
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
@@ -2047,7 +2064,7 @@ export default class poloniex extends Exchange {
|
|
|
2047
2064
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2048
2065
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2049
2066
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
2050
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2067
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2051
2068
|
*/
|
|
2052
2069
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2053
2070
|
let currency = undefined;
|