ccxt 4.1.64 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +1 -0
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +32 -32
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +8 -8
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +1 -0
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +28 -28
- package/js/src/krakenfutures.js +9 -9
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +17 -17
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +32 -32
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +8 -8
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/paymium.js
CHANGED
|
@@ -139,7 +139,7 @@ export default class paymium extends Exchange {
|
|
|
139
139
|
* @name paymium#fetchBalance
|
|
140
140
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
141
141
|
* @see https://paymium.github.io/api-documentation/#tag/User/paths/~1user/get
|
|
142
|
-
* @param {object} [params] extra parameters specific to the
|
|
142
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
143
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
144
144
|
*/
|
|
145
145
|
await this.loadMarkets();
|
|
@@ -154,7 +154,7 @@ export default class paymium extends Exchange {
|
|
|
154
154
|
* @see https://paymium.github.io/api-documentation/#tag/Public-data/paths/~1data~1%7Bcurrency%7D~1depth/get
|
|
155
155
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
156
156
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
157
|
-
* @param {object} [params] extra parameters specific to the
|
|
157
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
158
158
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
159
159
|
*/
|
|
160
160
|
await this.loadMarkets();
|
|
@@ -220,7 +220,7 @@ export default class paymium extends Exchange {
|
|
|
220
220
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
221
221
|
* @see https://paymium.github.io/api-documentation/#tag/Public-data/paths/~1data~1%7Bcurrency%7D~1ticker/get
|
|
222
222
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
223
|
-
* @param {object} [params] extra parameters specific to the
|
|
223
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
224
224
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
225
225
|
*/
|
|
226
226
|
await this.loadMarkets();
|
|
@@ -282,7 +282,7 @@ export default class paymium extends Exchange {
|
|
|
282
282
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
283
283
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
284
284
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
285
|
-
* @param {object} [params] extra parameters specific to the
|
|
285
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
286
286
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
287
287
|
*/
|
|
288
288
|
await this.loadMarkets();
|
|
@@ -300,7 +300,7 @@ export default class paymium extends Exchange {
|
|
|
300
300
|
* @description create a currency deposit address
|
|
301
301
|
* @see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/post
|
|
302
302
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
303
|
-
* @param {object} [params] extra parameters specific to the
|
|
303
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
304
304
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
305
305
|
*/
|
|
306
306
|
await this.loadMarkets();
|
|
@@ -322,7 +322,7 @@ export default class paymium extends Exchange {
|
|
|
322
322
|
* @description fetch the deposit address for a currency associated with this account
|
|
323
323
|
* @see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses~1%7Baddress%7D/get
|
|
324
324
|
* @param {string} code unified currency code
|
|
325
|
-
* @param {object} [params] extra parameters specific to the
|
|
325
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
326
326
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
327
327
|
*/
|
|
328
328
|
await this.loadMarkets();
|
|
@@ -347,7 +347,7 @@ export default class paymium extends Exchange {
|
|
|
347
347
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
348
348
|
* @see https://paymium.github.io/api-documentation/#tag/User/paths/~1user~1addresses/get
|
|
349
349
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
350
|
-
* @param {object} [params] extra parameters specific to the
|
|
350
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
351
351
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
352
352
|
*/
|
|
353
353
|
await this.loadMarkets();
|
|
@@ -394,7 +394,7 @@ export default class paymium extends Exchange {
|
|
|
394
394
|
* @param {string} side 'buy' or 'sell'
|
|
395
395
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
396
396
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
397
|
-
* @param {object} [params] extra parameters specific to the
|
|
397
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
398
398
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
399
399
|
*/
|
|
400
400
|
await this.loadMarkets();
|
|
@@ -423,7 +423,7 @@ export default class paymium extends Exchange {
|
|
|
423
423
|
* @see https://paymium.github.io/api-documentation/#tag/Order/paths/~1user~1orders~1%7Buuid%7D~1cancel/delete
|
|
424
424
|
* @param {string} id order id
|
|
425
425
|
* @param {string} symbol not used by paymium cancelOrder ()
|
|
426
|
-
* @param {object} [params] extra parameters specific to the
|
|
426
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
427
427
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
428
428
|
*/
|
|
429
429
|
const request = {
|
|
@@ -441,7 +441,7 @@ export default class paymium extends Exchange {
|
|
|
441
441
|
* @param {float} amount amount to transfer
|
|
442
442
|
* @param {string} fromAccount account to transfer from
|
|
443
443
|
* @param {string} toAccount account to transfer to
|
|
444
|
-
* @param {object} [params] extra parameters specific to the
|
|
444
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
445
445
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
446
446
|
*/
|
|
447
447
|
await this.loadMarkets();
|
package/js/src/phemex.js
CHANGED
|
@@ -713,7 +713,7 @@ export default class phemex extends Exchange {
|
|
|
713
713
|
* @method
|
|
714
714
|
* @name phemex#fetchMarkets
|
|
715
715
|
* @description retrieves data on all markets for phemex
|
|
716
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
716
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
717
717
|
* @returns {object[]} an array of objects representing market data
|
|
718
718
|
*/
|
|
719
719
|
const v2Products = await this.publicGetCfgV2Products(params);
|
|
@@ -873,7 +873,7 @@ export default class phemex extends Exchange {
|
|
|
873
873
|
* @method
|
|
874
874
|
* @name phemex#fetchCurrencies
|
|
875
875
|
* @description fetches all available currencies on an exchange
|
|
876
|
-
* @param {object} [params] extra parameters specific to the
|
|
876
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
877
877
|
* @returns {object} an associative dictionary of currencies
|
|
878
878
|
*/
|
|
879
879
|
const response = await this.publicGetCfgV2Products(params);
|
|
@@ -980,7 +980,7 @@ export default class phemex extends Exchange {
|
|
|
980
980
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#queryorderbook
|
|
981
981
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
982
982
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
983
|
-
* @param {object} [params] extra parameters specific to the
|
|
983
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
984
984
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
985
985
|
*/
|
|
986
986
|
await this.loadMarkets();
|
|
@@ -1116,7 +1116,7 @@ export default class phemex extends Exchange {
|
|
|
1116
1116
|
* @param {string} timeframe the length of time each candle represents
|
|
1117
1117
|
* @param {int} [since] *only used for USDT settled contracts, otherwise is emulated and not supported by the exchange* timestamp in ms of the earliest candle to fetch
|
|
1118
1118
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1119
|
-
* @param {object} [params] extra parameters specific to the
|
|
1119
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1120
1120
|
* @param {int} [params.until] *USDT settled/ linear swaps only* end time in ms
|
|
1121
1121
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1122
1122
|
*/
|
|
@@ -1291,7 +1291,7 @@ export default class phemex extends Exchange {
|
|
|
1291
1291
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1292
1292
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query24hrsticker
|
|
1293
1293
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1294
|
-
* @param {object} [params] extra parameters specific to the
|
|
1294
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1295
1295
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1296
1296
|
*/
|
|
1297
1297
|
await this.loadMarkets();
|
|
@@ -1363,12 +1363,12 @@ export default class phemex extends Exchange {
|
|
|
1363
1363
|
/**
|
|
1364
1364
|
* @method
|
|
1365
1365
|
* @name phemex#fetchTickers
|
|
1366
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1366
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1367
1367
|
* @see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols-2 // spot
|
|
1368
1368
|
* @see https://phemex-docs.github.io/#query-24-ticker-for-all-symbols // linear
|
|
1369
1369
|
* @see https://phemex-docs.github.io/#query-24-hours-ticker-for-all-symbols // inverse
|
|
1370
1370
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1371
|
-
* @param {object} [params] extra parameters specific to the
|
|
1371
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1372
1372
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1373
1373
|
*/
|
|
1374
1374
|
await this.loadMarkets();
|
|
@@ -1404,7 +1404,7 @@ export default class phemex extends Exchange {
|
|
|
1404
1404
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1405
1405
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1406
1406
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1407
|
-
* @param {object} [params] extra parameters specific to the
|
|
1407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1408
1408
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1409
1409
|
*/
|
|
1410
1410
|
await this.loadMarkets();
|
|
@@ -1815,7 +1815,7 @@ export default class phemex extends Exchange {
|
|
|
1815
1815
|
* @name phemex#fetchBalance
|
|
1816
1816
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1817
1817
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
|
|
1818
|
-
* @param {object} [params] extra parameters specific to the
|
|
1818
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1819
1819
|
* @param {string} [params.type] spot or swap
|
|
1820
1820
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1821
1821
|
*/
|
|
@@ -2331,7 +2331,7 @@ export default class phemex extends Exchange {
|
|
|
2331
2331
|
* @param {string} side 'buy' or 'sell'
|
|
2332
2332
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2333
2333
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2334
|
-
* @param {object} [params] extra parameters specific to the
|
|
2334
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2335
2335
|
* @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)
|
|
2336
2336
|
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
2337
2337
|
* @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)
|
|
@@ -2633,7 +2633,7 @@ export default class phemex extends Exchange {
|
|
|
2633
2633
|
* @param {string} side 'buy' or 'sell'
|
|
2634
2634
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2635
2635
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
|
|
2636
|
-
* @param {object} [params] extra parameters specific to the
|
|
2636
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2637
2637
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
2638
2638
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2639
2639
|
*/
|
|
@@ -2708,7 +2708,7 @@ export default class phemex extends Exchange {
|
|
|
2708
2708
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancel-single-order-by-orderid
|
|
2709
2709
|
* @param {string} id order id
|
|
2710
2710
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2711
|
-
* @param {object} [params] extra parameters specific to the
|
|
2711
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2712
2712
|
* @param {string} [params.posSide] either 'Merged' or 'Long' or 'Short'
|
|
2713
2713
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2714
2714
|
*/
|
|
@@ -2752,7 +2752,7 @@ export default class phemex extends Exchange {
|
|
|
2752
2752
|
* @description cancel all open orders in a market
|
|
2753
2753
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#cancelall
|
|
2754
2754
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
2755
|
-
* @param {object} [params] extra parameters specific to the
|
|
2755
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2756
2756
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2757
2757
|
*/
|
|
2758
2758
|
if (symbol === undefined) {
|
|
@@ -2783,7 +2783,7 @@ export default class phemex extends Exchange {
|
|
|
2783
2783
|
* @name phemex#fetchOrder
|
|
2784
2784
|
* @description fetches information on an order made by the user
|
|
2785
2785
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2786
|
-
* @param {object} [params] extra parameters specific to the
|
|
2786
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2787
2787
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2788
2788
|
*/
|
|
2789
2789
|
if (symbol === undefined) {
|
|
@@ -2837,7 +2837,7 @@ export default class phemex extends Exchange {
|
|
|
2837
2837
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2838
2838
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2839
2839
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2840
|
-
* @param {object} [params] extra parameters specific to the
|
|
2840
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2841
2841
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2842
2842
|
*/
|
|
2843
2843
|
if (symbol === undefined) {
|
|
@@ -2879,7 +2879,7 @@ export default class phemex extends Exchange {
|
|
|
2879
2879
|
* @param {string} symbol unified market symbol
|
|
2880
2880
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2881
2881
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2882
|
-
* @param {object} [params] extra parameters specific to the
|
|
2882
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2883
2883
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2884
2884
|
*/
|
|
2885
2885
|
if (symbol === undefined) {
|
|
@@ -2926,7 +2926,7 @@ export default class phemex extends Exchange {
|
|
|
2926
2926
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2927
2927
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2928
2928
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2929
|
-
* @param {object} [params] extra parameters specific to the
|
|
2929
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2930
2930
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2931
2931
|
*/
|
|
2932
2932
|
if (symbol === undefined) {
|
|
@@ -3009,7 +3009,7 @@ export default class phemex extends Exchange {
|
|
|
3009
3009
|
* @param {string} symbol unified market symbol
|
|
3010
3010
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3011
3011
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3012
|
-
* @param {object} [params] extra parameters specific to the
|
|
3012
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3013
3013
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
3014
3014
|
*/
|
|
3015
3015
|
if (symbol === undefined) {
|
|
@@ -3171,7 +3171,7 @@ export default class phemex extends Exchange {
|
|
|
3171
3171
|
* @name phemex#fetchDepositAddress
|
|
3172
3172
|
* @description fetch the deposit address for a currency associated with this account
|
|
3173
3173
|
* @param {string} code unified currency code
|
|
3174
|
-
* @param {object} [params] extra parameters specific to the
|
|
3174
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3175
3175
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
3176
3176
|
*/
|
|
3177
3177
|
await this.loadMarkets();
|
|
@@ -3221,7 +3221,7 @@ export default class phemex extends Exchange {
|
|
|
3221
3221
|
* @param {string} code unified currency code
|
|
3222
3222
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
3223
3223
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
3224
|
-
* @param {object} [params] extra parameters specific to the
|
|
3224
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3225
3225
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3226
3226
|
*/
|
|
3227
3227
|
await this.loadMarkets();
|
|
@@ -3261,7 +3261,7 @@ export default class phemex extends Exchange {
|
|
|
3261
3261
|
* @param {string} code unified currency code
|
|
3262
3262
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
3263
3263
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
3264
|
-
* @param {object} [params] extra parameters specific to the
|
|
3264
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3265
3265
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3266
3266
|
*/
|
|
3267
3267
|
await this.loadMarkets();
|
|
@@ -3387,7 +3387,7 @@ export default class phemex extends Exchange {
|
|
|
3387
3387
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#query-trading-account-and-positions
|
|
3388
3388
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#query-account-positions
|
|
3389
3389
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3390
|
-
* @param {object} [params] extra parameters specific to the
|
|
3390
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3391
3391
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
3392
3392
|
*/
|
|
3393
3393
|
await this.loadMarkets();
|
|
@@ -3666,7 +3666,7 @@ export default class phemex extends Exchange {
|
|
|
3666
3666
|
* @param {string} symbol unified market symbol
|
|
3667
3667
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3668
3668
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3669
|
-
* @param {object} [params] extra parameters specific to the
|
|
3669
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3670
3670
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
3671
3671
|
*/
|
|
3672
3672
|
if (symbol === undefined) {
|
|
@@ -3738,7 +3738,7 @@ export default class phemex extends Exchange {
|
|
|
3738
3738
|
* @name phemex#fetchFundingRate
|
|
3739
3739
|
* @description fetch the current funding rate
|
|
3740
3740
|
* @param {string} symbol unified market symbol
|
|
3741
|
-
* @param {object} [params] extra parameters specific to the
|
|
3741
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3742
3742
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
3743
3743
|
*/
|
|
3744
3744
|
await this.loadMarkets();
|
|
@@ -3851,7 +3851,7 @@ export default class phemex extends Exchange {
|
|
|
3851
3851
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#assign-position-balance-in-isolated-marign-mode
|
|
3852
3852
|
* @param {string} symbol unified market symbol of the market to set margin in
|
|
3853
3853
|
* @param {float} amount the amount to set the margin to
|
|
3854
|
-
* @param {object} [params] parameters specific to the
|
|
3854
|
+
* @param {object} [params] parameters specific to the exchange API endpoint
|
|
3855
3855
|
* @returns {object} A [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
3856
3856
|
*/
|
|
3857
3857
|
await this.loadMarkets();
|
|
@@ -3906,7 +3906,7 @@ export default class phemex extends Exchange {
|
|
|
3906
3906
|
* @description set margin mode to 'cross' or 'isolated'
|
|
3907
3907
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
3908
3908
|
* @param {string} symbol unified market symbol
|
|
3909
|
-
* @param {object} [params] extra parameters specific to the
|
|
3909
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3910
3910
|
* @returns {object} response from the exchange
|
|
3911
3911
|
*/
|
|
3912
3912
|
if (symbol === undefined) {
|
|
@@ -3942,7 +3942,7 @@ export default class phemex extends Exchange {
|
|
|
3942
3942
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#switch-position-mode-synchronously
|
|
3943
3943
|
* @param {bool} hedged set to true to use dualSidePosition
|
|
3944
3944
|
* @param {string} symbol not used by binance setPositionMode ()
|
|
3945
|
-
* @param {object} [params] extra parameters specific to the
|
|
3945
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3946
3946
|
* @returns {object} response from the exchange
|
|
3947
3947
|
*/
|
|
3948
3948
|
this.checkRequiredArgument('setPositionMode', symbol, 'symbol');
|
|
@@ -3968,7 +3968,7 @@ export default class phemex extends Exchange {
|
|
|
3968
3968
|
* @name phemex#fetchLeverageTiers
|
|
3969
3969
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
3970
3970
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
3971
|
-
* @param {object} [params] extra parameters specific to the
|
|
3971
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3972
3972
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
3973
3973
|
*/
|
|
3974
3974
|
await this.loadMarkets();
|
|
@@ -4139,7 +4139,7 @@ export default class phemex extends Exchange {
|
|
|
4139
4139
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Hedged-Perpetual-API.md#set-leverage
|
|
4140
4140
|
* @param {float} leverage the rate of leverage
|
|
4141
4141
|
* @param {string} symbol unified market symbol
|
|
4142
|
-
* @param {object} [params] extra parameters specific to the
|
|
4142
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4143
4143
|
* @param {bool} [params.hedged] set to true if hedged position mode is enabled (by default long and short leverage are set to the same value)
|
|
4144
4144
|
* @param {float} [params.longLeverageRr] *hedged mode only* set the leverage for long positions
|
|
4145
4145
|
* @param {float} [params.shortLeverageRr] *hedged mode only* set the leverage for short positions
|
|
@@ -4189,7 +4189,7 @@ export default class phemex extends Exchange {
|
|
|
4189
4189
|
* @param {float} amount amount to transfer
|
|
4190
4190
|
* @param {string} fromAccount account to transfer from
|
|
4191
4191
|
* @param {string} toAccount account to transfer to
|
|
4192
|
-
* @param {object} [params] extra parameters specific to the
|
|
4192
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4193
4193
|
* @param {string} [params.bizType] for transferring between main and sub-acounts either 'SPOT' or 'PERPETUAL' default is 'SPOT'
|
|
4194
4194
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4195
4195
|
*/
|
|
@@ -4275,7 +4275,7 @@ export default class phemex extends Exchange {
|
|
|
4275
4275
|
* @param {string} code unified currency code of the currency transferred
|
|
4276
4276
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
4277
4277
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
4278
|
-
* @param {object} [params] extra parameters specific to the
|
|
4278
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4279
4279
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
4280
4280
|
*/
|
|
4281
4281
|
await this.loadMarkets();
|
|
@@ -4391,7 +4391,7 @@ export default class phemex extends Exchange {
|
|
|
4391
4391
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
4392
4392
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
4393
4393
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
4394
|
-
* @param {object} [params] extra parameters specific to the
|
|
4394
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4395
4395
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
4396
4396
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
4397
4397
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
package/js/src/poloniex.js
CHANGED
|
@@ -413,7 +413,7 @@ export default class poloniex extends Exchange {
|
|
|
413
413
|
* @param {string} timeframe the length of time each candle represents
|
|
414
414
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
415
415
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
416
|
-
* @param {object} [params] extra parameters specific to the
|
|
416
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
417
417
|
* @param {int} [params.until] timestamp in ms
|
|
418
418
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
419
419
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -474,7 +474,7 @@ export default class poloniex extends Exchange {
|
|
|
474
474
|
* @name poloniex#fetchMarkets
|
|
475
475
|
* @description retrieves data on all markets for poloniex
|
|
476
476
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-symbol-information
|
|
477
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
477
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
478
478
|
* @returns {object[]} an array of objects representing market data
|
|
479
479
|
*/
|
|
480
480
|
const markets = await this.publicGetMarkets(params);
|
|
@@ -565,7 +565,7 @@ export default class poloniex extends Exchange {
|
|
|
565
565
|
* @name poloniex#fetchTime
|
|
566
566
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
567
567
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-system-timestamp
|
|
568
|
-
* @param {object} [params] extra parameters specific to the
|
|
568
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
569
569
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
570
570
|
*/
|
|
571
571
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -630,10 +630,10 @@ export default class poloniex extends Exchange {
|
|
|
630
630
|
/**
|
|
631
631
|
* @method
|
|
632
632
|
* @name poloniex#fetchTickers
|
|
633
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
633
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
634
634
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
635
635
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
636
|
-
* @param {object} [params] extra parameters specific to the
|
|
636
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
637
637
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
638
638
|
*/
|
|
639
639
|
await this.loadMarkets();
|
|
@@ -671,7 +671,7 @@ export default class poloniex extends Exchange {
|
|
|
671
671
|
* @name poloniex#fetchCurrencies
|
|
672
672
|
* @description fetches all available currencies on an exchange
|
|
673
673
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
674
|
-
* @param {object} [params] extra parameters specific to the
|
|
674
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
675
675
|
* @returns {object} an associative dictionary of currencies
|
|
676
676
|
*/
|
|
677
677
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
@@ -805,7 +805,7 @@ export default class poloniex extends Exchange {
|
|
|
805
805
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
806
806
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-ticker
|
|
807
807
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
808
|
-
* @param {object} [params] extra parameters specific to the
|
|
808
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
809
809
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
810
810
|
*/
|
|
811
811
|
await this.loadMarkets();
|
|
@@ -938,7 +938,7 @@ export default class poloniex extends Exchange {
|
|
|
938
938
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
939
939
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
940
940
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
941
|
-
* @param {object} [params] extra parameters specific to the
|
|
941
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
942
942
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
943
943
|
*/
|
|
944
944
|
await this.loadMarkets();
|
|
@@ -974,7 +974,7 @@ export default class poloniex extends Exchange {
|
|
|
974
974
|
* @param {string} symbol unified market symbol
|
|
975
975
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
976
976
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
977
|
-
* @param {object} [params] extra parameters specific to the
|
|
977
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
978
978
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
979
979
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
980
980
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -1186,7 +1186,7 @@ export default class poloniex extends Exchange {
|
|
|
1186
1186
|
* @param {string} symbol unified market symbol
|
|
1187
1187
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1188
1188
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1189
|
-
* @param {object} [params] extra parameters specific to the
|
|
1189
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1190
1190
|
* @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
|
|
1191
1191
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1192
1192
|
*/
|
|
@@ -1247,7 +1247,7 @@ export default class poloniex extends Exchange {
|
|
|
1247
1247
|
* @param {string} side 'buy' or 'sell'
|
|
1248
1248
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1249
1249
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1250
|
-
* @param {object} [params] extra parameters specific to the
|
|
1250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1251
1251
|
* @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
|
|
1252
1252
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1253
1253
|
*/
|
|
@@ -1331,7 +1331,7 @@ export default class poloniex extends Exchange {
|
|
|
1331
1331
|
* @param {string} side 'buy' or 'sell'
|
|
1332
1332
|
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
1333
1333
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1334
|
-
* @param {object} [params] extra parameters specific to the
|
|
1334
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1335
1335
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1336
1336
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1337
1337
|
*/
|
|
@@ -1373,7 +1373,7 @@ export default class poloniex extends Exchange {
|
|
|
1373
1373
|
// @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-order-by-id // trigger orders
|
|
1374
1374
|
// @param {string} id order id
|
|
1375
1375
|
// @param {string} symbol unified symbol of the market the order was made in
|
|
1376
|
-
// @param {object} [params] extra parameters specific to the
|
|
1376
|
+
// @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1377
1377
|
// @param {boolean} [params.trigger] true if canceling a trigger order
|
|
1378
1378
|
// @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1379
1379
|
//
|
|
@@ -1412,7 +1412,7 @@ export default class poloniex extends Exchange {
|
|
|
1412
1412
|
* @see https://docs.poloniex.com/#authenticated-endpoints-orders-cancel-all-orders
|
|
1413
1413
|
* @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-cancel-all-orders // trigger orders
|
|
1414
1414
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1415
|
-
* @param {object} [params] extra parameters specific to the
|
|
1415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1416
1416
|
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
1417
1417
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1418
1418
|
*/
|
|
@@ -1465,7 +1465,7 @@ export default class poloniex extends Exchange {
|
|
|
1465
1465
|
* @see https://docs.poloniex.com/#authenticated-endpoints-smart-orders-open-orders // trigger orders
|
|
1466
1466
|
* @param {string} id order id
|
|
1467
1467
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1468
|
-
* @param {object} [params] extra parameters specific to the
|
|
1468
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1469
1469
|
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1470
1470
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1471
1471
|
*/
|
|
@@ -1525,7 +1525,7 @@ export default class poloniex extends Exchange {
|
|
|
1525
1525
|
* @param {string} symbol unified market symbol
|
|
1526
1526
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1527
1527
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1528
|
-
* @param {object} [params] extra parameters specific to the
|
|
1528
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1529
1529
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
await this.loadMarkets();
|
|
@@ -1583,7 +1583,7 @@ export default class poloniex extends Exchange {
|
|
|
1583
1583
|
* @name poloniex#fetchBalance
|
|
1584
1584
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1585
1585
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-all-account-balances
|
|
1586
|
-
* @param {object} [params] extra parameters specific to the
|
|
1586
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1587
1587
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1588
1588
|
*/
|
|
1589
1589
|
await this.loadMarkets();
|
|
@@ -1615,7 +1615,7 @@ export default class poloniex extends Exchange {
|
|
|
1615
1615
|
* @name poloniex#fetchTradingFees
|
|
1616
1616
|
* @description fetch the trading fees for multiple markets
|
|
1617
1617
|
* @see https://docs.poloniex.com/#authenticated-endpoints-accounts-fee-info
|
|
1618
|
-
* @param {object} [params] extra parameters specific to the
|
|
1618
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1619
1619
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1620
1620
|
*/
|
|
1621
1621
|
await this.loadMarkets();
|
|
@@ -1650,7 +1650,7 @@ export default class poloniex extends Exchange {
|
|
|
1650
1650
|
* @see https://docs.poloniex.com/#public-endpoints-market-data-order-book
|
|
1651
1651
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1652
1652
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1653
|
-
* @param {object} [params] extra parameters specific to the
|
|
1653
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1654
1654
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1655
1655
|
*/
|
|
1656
1656
|
await this.loadMarkets();
|
|
@@ -1706,7 +1706,7 @@ export default class poloniex extends Exchange {
|
|
|
1706
1706
|
* @description create a currency deposit address
|
|
1707
1707
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1708
1708
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1709
|
-
* @param {object} [params] extra parameters specific to the
|
|
1709
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1710
1710
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1711
1711
|
*/
|
|
1712
1712
|
await this.loadMarkets();
|
|
@@ -1757,7 +1757,7 @@ export default class poloniex extends Exchange {
|
|
|
1757
1757
|
* @description fetch the deposit address for a currency associated with this account
|
|
1758
1758
|
* @see https://docs.poloniex.com/#authenticated-endpoints-wallets-deposit-addresses
|
|
1759
1759
|
* @param {string} code unified currency code
|
|
1760
|
-
* @param {object} [params] extra parameters specific to the
|
|
1760
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1761
1761
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1762
1762
|
*/
|
|
1763
1763
|
await this.loadMarkets();
|
|
@@ -1811,7 +1811,7 @@ export default class poloniex extends Exchange {
|
|
|
1811
1811
|
* @param {float} amount amount to transfer
|
|
1812
1812
|
* @param {string} fromAccount account to transfer from
|
|
1813
1813
|
* @param {string} toAccount account to transfer to
|
|
1814
|
-
* @param {object} [params] extra parameters specific to the
|
|
1814
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1815
1815
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1816
1816
|
*/
|
|
1817
1817
|
await this.loadMarkets();
|
|
@@ -1862,7 +1862,7 @@ export default class poloniex extends Exchange {
|
|
|
1862
1862
|
* @param {float} amount the amount to withdraw
|
|
1863
1863
|
* @param {string} address the address to withdraw to
|
|
1864
1864
|
* @param {string} tag
|
|
1865
|
-
* @param {object} [params] extra parameters specific to the
|
|
1865
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1866
1866
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1867
1867
|
*/
|
|
1868
1868
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1986,7 +1986,7 @@ export default class poloniex extends Exchange {
|
|
|
1986
1986
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1987
1987
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1988
1988
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1989
|
-
* @param {object} [params] extra parameters specific to the
|
|
1989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1990
1990
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1991
1991
|
*/
|
|
1992
1992
|
await this.loadMarkets();
|
|
@@ -2011,7 +2011,7 @@ export default class poloniex extends Exchange {
|
|
|
2011
2011
|
* @param {string} code unified currency code
|
|
2012
2012
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2013
2013
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2014
|
-
* @param {object} [params] extra parameters specific to the
|
|
2014
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2015
2015
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2016
2016
|
*/
|
|
2017
2017
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
@@ -2030,7 +2030,7 @@ export default class poloniex extends Exchange {
|
|
|
2030
2030
|
* @description fetch deposit and withdraw fees
|
|
2031
2031
|
* @see https://docs.poloniex.com/#public-endpoints-reference-data-currency-information
|
|
2032
2032
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
2033
|
-
* @param {object} [params] extra parameters specific to the
|
|
2033
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2034
2034
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2035
2035
|
*/
|
|
2036
2036
|
await this.loadMarkets();
|
|
@@ -2157,7 +2157,7 @@ export default class poloniex extends Exchange {
|
|
|
2157
2157
|
* @param {string} code unified currency code
|
|
2158
2158
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2159
2159
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2160
|
-
* @param {object} [params] extra parameters specific to the
|
|
2160
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2161
2161
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2162
2162
|
*/
|
|
2163
2163
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|