ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/pro/ndax.js
CHANGED
|
@@ -44,7 +44,7 @@ export default class ndax extends ndaxRest {
|
|
|
44
44
|
* @name ndax#watchTicker
|
|
45
45
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
46
46
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
47
|
-
* @param {object} [params] extra parameters specific to the
|
|
47
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
48
48
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
49
49
|
*/
|
|
50
50
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -111,7 +111,7 @@ export default class ndax extends ndaxRest {
|
|
|
111
111
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
112
112
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
113
113
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
114
|
-
* @param {object} [params] extra parameters specific to the
|
|
114
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
115
115
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
116
116
|
*/
|
|
117
117
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -193,7 +193,7 @@ export default class ndax extends ndaxRest {
|
|
|
193
193
|
* @param {string} timeframe the length of time each candle represents
|
|
194
194
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
195
195
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
196
|
-
* @param {object} [params] extra parameters specific to the
|
|
196
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
197
197
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
198
198
|
*/
|
|
199
199
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -323,7 +323,7 @@ export default class ndax extends ndaxRest {
|
|
|
323
323
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
324
324
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
325
325
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
326
|
-
* @param {object} [params] extra parameters specific to the
|
|
326
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
327
327
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
328
328
|
*/
|
|
329
329
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
package/js/src/pro/okcoin.js
CHANGED
|
@@ -73,7 +73,7 @@ export default class okcoin extends okcoinRest {
|
|
|
73
73
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
74
74
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
75
75
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
76
|
-
* @param {object} [params] extra parameters specific to the
|
|
76
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
77
77
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
78
78
|
*/
|
|
79
79
|
await this.loadMarkets();
|
|
@@ -92,7 +92,7 @@ export default class okcoin extends okcoinRest {
|
|
|
92
92
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
93
93
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
94
94
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
95
|
-
* @param {object} [params] extra parameters specific to the
|
|
95
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
96
96
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
97
97
|
*/
|
|
98
98
|
await this.loadMarkets();
|
|
@@ -176,7 +176,7 @@ export default class okcoin extends okcoinRest {
|
|
|
176
176
|
* @name okcoin#watchTicker
|
|
177
177
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
178
178
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
179
|
-
* @param {object} [params] extra parameters specific to the
|
|
179
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
180
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
181
181
|
*/
|
|
182
182
|
return await this.subscribe('ticker', symbol, params);
|
|
@@ -259,7 +259,7 @@ export default class okcoin extends okcoinRest {
|
|
|
259
259
|
* @param {string} timeframe the length of time each candle represents
|
|
260
260
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
261
261
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
262
|
-
* @param {object} [params] extra parameters specific to the
|
|
262
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
263
263
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
264
264
|
*/
|
|
265
265
|
await this.loadMarkets();
|
|
@@ -324,7 +324,7 @@ export default class okcoin extends okcoinRest {
|
|
|
324
324
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
325
325
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
326
326
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
327
|
-
* @param {object} [params] extra parameters specific to the
|
|
327
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
328
328
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
329
329
|
*/
|
|
330
330
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
@@ -485,7 +485,7 @@ export default class okcoin extends okcoinRest {
|
|
|
485
485
|
* @method
|
|
486
486
|
* @name okcoin#watchBalance
|
|
487
487
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
488
|
-
* @param {object} [params] extra parameters specific to the
|
|
488
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
489
489
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
490
490
|
*/
|
|
491
491
|
const defaultType = this.safeString2(this.options, 'watchBalance', 'defaultType');
|
package/js/src/pro/okx.js
CHANGED
|
@@ -165,7 +165,7 @@ export default class okx extends okxRest {
|
|
|
165
165
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
166
166
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
167
167
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
168
|
-
* @param {object} [params] extra parameters specific to the
|
|
168
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
169
169
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
170
170
|
*/
|
|
171
171
|
await this.loadMarkets();
|
|
@@ -184,7 +184,7 @@ export default class okx extends okxRest {
|
|
|
184
184
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
185
185
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
186
186
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
187
|
-
* @param {object} [params] extra parameters specific to the
|
|
187
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
188
188
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
|
|
189
189
|
*/
|
|
190
190
|
const symbolsLength = symbols.length;
|
|
@@ -260,7 +260,7 @@ export default class okx extends okxRest {
|
|
|
260
260
|
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-tickers-channel
|
|
261
261
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
262
262
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
263
|
-
* @param {object} [params] extra parameters specific to the
|
|
263
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
264
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
265
265
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
266
266
|
*/
|
|
@@ -277,7 +277,7 @@ export default class okx extends okxRest {
|
|
|
277
277
|
* @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-ws-tickers-channel
|
|
278
278
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
279
279
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
280
|
-
* @param {object} [params] extra parameters specific to the
|
|
280
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
281
281
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
282
282
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
283
283
|
*/
|
|
@@ -352,7 +352,7 @@ export default class okx extends okxRest {
|
|
|
352
352
|
* @param {string} timeframe the length of time each candle represents
|
|
353
353
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
354
354
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
355
|
-
* @param {object} [params] extra parameters specific to the
|
|
355
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
356
356
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
357
357
|
*/
|
|
358
358
|
await this.loadMarkets();
|
|
@@ -412,7 +412,7 @@ export default class okx extends okxRest {
|
|
|
412
412
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
413
413
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
414
414
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
415
|
-
* @param {object} [params] extra parameters specific to the
|
|
415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
416
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
417
417
|
*/
|
|
418
418
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
@@ -453,7 +453,7 @@ export default class okx extends okxRest {
|
|
|
453
453
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
454
454
|
* @param {string[]} symbols unified array of symbols
|
|
455
455
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
456
|
-
* @param {object} [params] extra parameters specific to the
|
|
456
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
457
457
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
458
458
|
*/
|
|
459
459
|
await this.loadMarkets();
|
|
@@ -728,7 +728,7 @@ export default class okx extends okxRest {
|
|
|
728
728
|
* @method
|
|
729
729
|
* @name okx#watchBalance
|
|
730
730
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
731
|
-
* @param {object} [params] extra parameters specific to the
|
|
731
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
732
732
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
733
733
|
*/
|
|
734
734
|
await this.loadMarkets();
|
|
@@ -821,7 +821,7 @@ export default class okx extends okxRest {
|
|
|
821
821
|
* @param {string} [symbol] unified market symbol of the market trades were made in
|
|
822
822
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
823
823
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
824
|
-
* @param {object} [params] extra parameters specific to the
|
|
824
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
825
825
|
* @param {bool} [params.stop] true if fetching trigger or conditional trades
|
|
826
826
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
827
827
|
*/
|
|
@@ -861,7 +861,7 @@ export default class okx extends okxRest {
|
|
|
861
861
|
* @see https://www.okx.com/docs-v5/en/#trading-account-websocket-positions-channel
|
|
862
862
|
* @description watch all open positions
|
|
863
863
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
864
|
-
* @param {object} params extra parameters specific to the
|
|
864
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
865
865
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
866
866
|
*/
|
|
867
867
|
if (this.isEmpty(symbols)) {
|
|
@@ -982,7 +982,7 @@ export default class okx extends okxRest {
|
|
|
982
982
|
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
983
983
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
984
984
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
985
|
-
* @param {object} [params] extra parameters specific to the
|
|
985
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
986
986
|
* @param {bool} [params.stop] true if fetching trigger or conditional orders
|
|
987
987
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
988
988
|
*/
|
|
@@ -1200,7 +1200,7 @@ export default class okx extends okxRest {
|
|
|
1200
1200
|
* @param {string} side 'buy' or 'sell'
|
|
1201
1201
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1202
1202
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1203
|
-
* @param {object} [params] extra parameters specific to the
|
|
1203
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1204
1204
|
* @param {boolean} params.test test order, default false
|
|
1205
1205
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1206
1206
|
*/
|
|
@@ -1270,7 +1270,7 @@ export default class okx extends okxRest {
|
|
|
1270
1270
|
* @param {string} side 'buy' or 'sell'
|
|
1271
1271
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
1272
1272
|
* @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1273
|
-
* @param {object} [params] extra parameters specific to the
|
|
1273
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1274
1274
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1275
1275
|
*/
|
|
1276
1276
|
await this.loadMarkets();
|
|
@@ -1295,7 +1295,7 @@ export default class okx extends okxRest {
|
|
|
1295
1295
|
* @description cancel multiple orders
|
|
1296
1296
|
* @param {string} id order id
|
|
1297
1297
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1298
|
-
* @param {object} [params] extra parameters specific to the
|
|
1298
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1299
1299
|
* @param {string} [params.clOrdId] client order id
|
|
1300
1300
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1301
1301
|
*/
|
|
@@ -1332,7 +1332,7 @@ export default class okx extends okxRest {
|
|
|
1332
1332
|
* @description cancel multiple orders
|
|
1333
1333
|
* @param {string[]} ids order ids
|
|
1334
1334
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1335
|
-
* @param {object} [params] extra parameters specific to the
|
|
1335
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1336
1336
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1337
1337
|
*/
|
|
1338
1338
|
const idsLength = ids.length;
|
|
@@ -1368,7 +1368,7 @@ export default class okx extends okxRest {
|
|
|
1368
1368
|
* @see https://docs.okx.com/websockets/#message-cancelAll
|
|
1369
1369
|
* @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
|
1370
1370
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
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 list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1373
1373
|
*/
|
|
1374
1374
|
if (symbol === undefined) {
|
package/js/src/pro/phemex.js
CHANGED
|
@@ -301,7 +301,7 @@ export default class phemex extends phemexRest {
|
|
|
301
301
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Contract-API-en.md#subscribe-account-order-position-aop
|
|
302
302
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-wallet-order-messages
|
|
303
303
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
304
|
-
* @param {object} [params] extra parameters specific to the
|
|
304
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
305
305
|
* @param {string} [params.settle] set to USDT to use hedged perpetual api
|
|
306
306
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
307
307
|
*/
|
|
@@ -497,7 +497,7 @@ export default class phemex extends phemexRest {
|
|
|
497
497
|
* @see https://github.com/phemex/phemex-api-docs/blob/master/Public-Spot-API-en.md#subscribe-24-hours-ticker
|
|
498
498
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
499
499
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
500
|
-
* @param {object} [params] extra parameters specific to the
|
|
500
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
501
501
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
502
502
|
*/
|
|
503
503
|
await this.loadMarkets();
|
|
@@ -532,7 +532,7 @@ export default class phemex extends phemexRest {
|
|
|
532
532
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
533
533
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
534
534
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
535
|
-
* @param {object} [params] extra parameters specific to the
|
|
535
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
536
536
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
@@ -569,7 +569,7 @@ export default class phemex extends phemexRest {
|
|
|
569
569
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
570
570
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
571
571
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
572
|
-
* @param {object} [params] extra parameters specific to the
|
|
572
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
573
573
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
574
574
|
*/
|
|
575
575
|
await this.loadMarkets();
|
|
@@ -605,7 +605,7 @@ export default class phemex extends phemexRest {
|
|
|
605
605
|
* @param {string} timeframe the length of time each candle represents
|
|
606
606
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
607
607
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
608
|
-
* @param {object} [params] extra parameters specific to the
|
|
608
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
609
609
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
610
610
|
*/
|
|
611
611
|
await this.loadMarkets();
|
|
@@ -727,7 +727,7 @@ export default class phemex extends phemexRest {
|
|
|
727
727
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
728
728
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
729
729
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
730
|
-
* @param {object} [params] extra parameters specific to the
|
|
730
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
731
731
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
|
|
732
732
|
*/
|
|
733
733
|
await this.loadMarkets();
|
|
@@ -890,7 +890,7 @@ export default class phemex extends phemexRest {
|
|
|
890
890
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
891
891
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
892
892
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
893
|
-
* @param {object} [params] extra parameters specific to the
|
|
893
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
894
894
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
895
895
|
*/
|
|
896
896
|
await this.loadMarkets();
|
package/js/src/pro/poloniex.js
CHANGED
|
@@ -332,7 +332,7 @@ export default class poloniex extends poloniexRest {
|
|
|
332
332
|
* @param {string} timeframe the length of time each candle represents
|
|
333
333
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
334
334
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
335
|
-
* @param {object} [params] extra parameters specific to the
|
|
335
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
336
336
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
337
337
|
*/
|
|
338
338
|
await this.loadMarkets();
|
|
@@ -354,7 +354,7 @@ export default class poloniex extends poloniexRest {
|
|
|
354
354
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
355
355
|
* @see https://docs.poloniex.com/#public-channels-market-data-ticker
|
|
356
356
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
357
|
-
* @param {object} [params] extra parameters specific to the
|
|
357
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
358
358
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
359
359
|
*/
|
|
360
360
|
await this.loadMarkets();
|
|
@@ -369,7 +369,7 @@ export default class poloniex extends poloniexRest {
|
|
|
369
369
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
370
370
|
* @see https://docs.poloniex.com/#public-channels-market-data-ticker
|
|
371
371
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
372
|
-
* @param {object} [params] extra parameters specific to the
|
|
372
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
373
373
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
374
374
|
*/
|
|
375
375
|
await this.loadMarkets();
|
|
@@ -390,7 +390,7 @@ export default class poloniex extends poloniexRest {
|
|
|
390
390
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
391
391
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
392
392
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
393
|
-
* @param {object} [params] extra parameters specific to the
|
|
393
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
394
394
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
395
395
|
*/
|
|
396
396
|
await this.loadMarkets();
|
|
@@ -410,7 +410,7 @@ export default class poloniex extends poloniexRest {
|
|
|
410
410
|
* @see https://docs.poloniex.com/#public-channels-market-data-book-level-2
|
|
411
411
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
412
412
|
* @param {int} [limit] not used by poloniex watchOrderBook
|
|
413
|
-
* @param {object} [params] extra parameters specific to the
|
|
413
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
414
414
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
415
415
|
*/
|
|
416
416
|
await this.loadMarkets();
|
|
@@ -429,7 +429,7 @@ export default class poloniex extends poloniexRest {
|
|
|
429
429
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
430
430
|
* @param {int} [since] not used by poloniex watchOrders
|
|
431
431
|
* @param {int} [limit] not used by poloniex watchOrders
|
|
432
|
-
* @param {object} [params] extra parameters specific to the
|
|
432
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
433
433
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
434
434
|
*/
|
|
435
435
|
await this.loadMarkets();
|
|
@@ -477,7 +477,7 @@ export default class poloniex extends poloniexRest {
|
|
|
477
477
|
* @name poloniex#watchBalance
|
|
478
478
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
479
479
|
* @see https://docs.poloniex.com/#authenticated-channels-market-data-balances
|
|
480
|
-
* @param {object} [params] extra parameters specific to the
|
|
480
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
481
481
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
482
482
|
*/
|
|
483
483
|
await this.loadMarkets();
|
|
@@ -233,7 +233,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
233
233
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
234
234
|
* @see https://futures-docs.poloniex.com/#get-real-time-symbol-ticker
|
|
235
235
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
236
|
-
* @param {object} [params] extra parameters specific to the
|
|
236
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
237
237
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
238
238
|
*/
|
|
239
239
|
await this.loadMarkets();
|
|
@@ -250,7 +250,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
250
250
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
251
251
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
252
252
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
253
|
-
* @param {object} [params] extra parameters specific to the
|
|
253
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
254
254
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
255
255
|
*/
|
|
256
256
|
await this.loadMarkets();
|
|
@@ -272,7 +272,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
272
272
|
* @see https://futures-docs.poloniex.com/#level-2-market-data
|
|
273
273
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
274
274
|
* @param {int} [limit] not used by poloniexfutures watchOrderBook
|
|
275
|
-
* @param {object} [params] extra parameters specific to the
|
|
275
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
276
276
|
* @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
|
|
277
277
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
278
278
|
*/
|
|
@@ -303,7 +303,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
303
303
|
* @param {string} symbol filter by unified market symbol of the market orders were made in
|
|
304
304
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
305
305
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
306
|
-
* @param {object} [params] extra parameters specific to the
|
|
306
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
307
307
|
* @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
|
308
308
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
309
309
|
*/
|
|
@@ -327,7 +327,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
327
327
|
* @name poloniexfutures#watchBalance
|
|
328
328
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
329
329
|
* @see https://futures-docs.poloniex.com/#account-balance-events
|
|
330
|
-
* @param {object} [params] extra parameters specific to the
|
|
330
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
331
331
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
332
332
|
*/
|
|
333
333
|
await this.loadMarkets();
|
package/js/src/pro/probit.js
CHANGED
|
@@ -57,7 +57,7 @@ export default class probit extends probitRest {
|
|
|
57
57
|
* @name probit#watchBalance
|
|
58
58
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
59
59
|
* @see https://docs-en.probit.com/reference/balance-1
|
|
60
|
-
* @param {object} [params] extra parameters specific to the
|
|
60
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
61
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
62
62
|
*/
|
|
63
63
|
await this.authenticate(params);
|
|
@@ -124,7 +124,7 @@ export default class probit extends probitRest {
|
|
|
124
124
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
125
125
|
* @see https://docs-en.probit.com/reference/marketdata
|
|
126
126
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
127
|
-
* @param {object} [params] extra parameters specific to the
|
|
127
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
128
128
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
129
129
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
130
130
|
*/
|
|
@@ -169,7 +169,7 @@ export default class probit extends probitRest {
|
|
|
169
169
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
170
170
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
171
171
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
172
|
-
* @param {object} [params] extra parameters specific to the
|
|
172
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
173
173
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
174
174
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
175
175
|
*/
|
|
@@ -230,7 +230,7 @@ export default class probit extends probitRest {
|
|
|
230
230
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
231
231
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
232
232
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
233
|
-
* @param {object} [params] extra parameters specific to the
|
|
233
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
234
234
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
235
235
|
*/
|
|
236
236
|
await this.loadMarkets();
|
|
@@ -311,7 +311,7 @@ export default class probit extends probitRest {
|
|
|
311
311
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
312
312
|
* @param {int} [since] timestamp in ms of the earliest order to watch
|
|
313
313
|
* @param {int} [limit] the maximum amount of orders to watch
|
|
314
|
-
* @param {object} [params] extra parameters specific to the
|
|
314
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
315
315
|
* @param {string} [params.channel] choose what channel to use. Can open_order or order_history.
|
|
316
316
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
317
317
|
*/
|
|
@@ -397,7 +397,7 @@ export default class probit extends probitRest {
|
|
|
397
397
|
* @see https://docs-en.probit.com/reference/marketdata
|
|
398
398
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
399
399
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
400
|
-
* @param {object} [params] extra parameters specific to the
|
|
400
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
401
401
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
402
402
|
*/
|
|
403
403
|
let filter = undefined;
|
package/js/src/pro/upbit.js
CHANGED
|
@@ -57,7 +57,7 @@ export default class upbit extends upbitRest {
|
|
|
57
57
|
* @name upbit#watchTicker
|
|
58
58
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
59
59
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
60
|
-
* @param {object} [params] extra parameters specific to the
|
|
60
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
61
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
62
62
|
*/
|
|
63
63
|
return await this.watchPublic(symbol, 'ticker');
|
|
@@ -70,7 +70,7 @@ export default class upbit extends upbitRest {
|
|
|
70
70
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
71
71
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
72
72
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
73
|
-
* @param {object} [params] extra parameters specific to the
|
|
73
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
74
74
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
75
75
|
*/
|
|
76
76
|
await this.loadMarkets();
|
|
@@ -88,7 +88,7 @@ export default class upbit extends upbitRest {
|
|
|
88
88
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
89
89
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
90
90
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
91
|
-
* @param {object} [params] extra parameters specific to the
|
|
91
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
92
92
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
93
93
|
*/
|
|
94
94
|
const orderbook = await this.watchPublic(symbol, 'orderbook');
|
package/js/src/pro/wazirx.js
CHANGED
|
@@ -46,7 +46,7 @@ export default class wazirx extends wazirxRest {
|
|
|
46
46
|
* @name wazirx#watchBalance
|
|
47
47
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
48
48
|
* @see https://docs.wazirx.com/#account-update
|
|
49
|
-
* @param {object} [params] extra parameters specific to the
|
|
49
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
50
50
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
51
51
|
*/
|
|
52
52
|
await this.loadMarkets();
|
|
@@ -167,7 +167,7 @@ export default class wazirx extends wazirxRest {
|
|
|
167
167
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
168
168
|
* @see https://docs.wazirx.com/#all-market-tickers-stream
|
|
169
169
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
170
|
-
* @param {object} [params] extra parameters specific to the
|
|
170
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
171
171
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
172
172
|
*/
|
|
173
173
|
await this.loadMarkets();
|
|
@@ -190,7 +190,7 @@ export default class wazirx extends wazirxRest {
|
|
|
190
190
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
191
191
|
* @see https://docs.wazirx.com/#all-market-tickers-stream
|
|
192
192
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
193
|
-
* @param {object} [params] extra parameters specific to the
|
|
193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
194
194
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
195
195
|
*/
|
|
196
196
|
await this.loadMarkets();
|
|
@@ -290,7 +290,7 @@ export default class wazirx extends wazirxRest {
|
|
|
290
290
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
291
291
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
292
292
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
293
|
-
* @param {object} [params] extra parameters specific to the
|
|
293
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
294
294
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
@@ -356,7 +356,7 @@ export default class wazirx extends wazirxRest {
|
|
|
356
356
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
357
357
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
358
358
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
359
|
-
* @param {object} [params] extra parameters specific to the
|
|
359
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
360
360
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
361
361
|
*/
|
|
362
362
|
await this.loadMarkets();
|
|
@@ -388,7 +388,7 @@ export default class wazirx extends wazirxRest {
|
|
|
388
388
|
* @param {string} timeframe the length of time each candle represents
|
|
389
389
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
390
390
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
391
|
-
* @param {object} [params] extra parameters specific to the
|
|
391
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
392
392
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
393
393
|
*/
|
|
394
394
|
await this.loadMarkets();
|
|
@@ -475,7 +475,7 @@ export default class wazirx extends wazirxRest {
|
|
|
475
475
|
* @see https://docs.wazirx.com/#depth-stream
|
|
476
476
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
477
477
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
478
|
-
* @param {object} [params] extra parameters specific to the
|
|
478
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
479
479
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
480
480
|
*/
|
|
481
481
|
await this.loadMarkets();
|
package/js/src/pro/whitebit.js
CHANGED
|
@@ -68,7 +68,7 @@ export default class whitebit extends whitebitRest {
|
|
|
68
68
|
* @param {string} timeframe the length of time each candle represents
|
|
69
69
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
70
70
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
71
|
-
* @param {object} [params] extra parameters specific to the
|
|
71
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
72
72
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
73
73
|
*/
|
|
74
74
|
await this.loadMarkets();
|
|
@@ -136,7 +136,7 @@ export default class whitebit extends whitebitRest {
|
|
|
136
136
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
137
137
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
138
138
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
139
|
-
* @param {object} [params] extra parameters specific to the
|
|
139
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140
140
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
141
141
|
*/
|
|
142
142
|
await this.loadMarkets();
|
|
@@ -239,7 +239,7 @@ export default class whitebit extends whitebitRest {
|
|
|
239
239
|
* @name whitebit#watchTicker
|
|
240
240
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
241
241
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
242
|
-
* @param {object} [params] extra parameters specific to the
|
|
242
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
243
243
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
244
244
|
*/
|
|
245
245
|
await this.loadMarkets();
|
|
@@ -307,7 +307,7 @@ export default class whitebit extends whitebitRest {
|
|
|
307
307
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
308
308
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
309
309
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
310
|
-
* @param {object} [params] extra parameters specific to the
|
|
310
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
311
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
312
312
|
*/
|
|
313
313
|
await this.loadMarkets();
|
|
@@ -373,7 +373,7 @@ export default class whitebit extends whitebitRest {
|
|
|
373
373
|
* @param {str} symbol unified market symbol
|
|
374
374
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
375
375
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
376
|
-
* @param {object} [params] extra parameters specific to the
|
|
376
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
377
377
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
378
378
|
*/
|
|
379
379
|
if (symbol === undefined) {
|
|
@@ -472,7 +472,7 @@ export default class whitebit extends whitebitRest {
|
|
|
472
472
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
473
473
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
474
474
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
475
|
-
* @param {object} [params] extra parameters specific to the
|
|
475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
476
476
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
|
|
477
477
|
*/
|
|
478
478
|
if (symbol === undefined) {
|
|
@@ -644,7 +644,7 @@ export default class whitebit extends whitebitRest {
|
|
|
644
644
|
* @method
|
|
645
645
|
* @name whitebit#watchBalance
|
|
646
646
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
647
|
-
* @param {object} [params] extra parameters specific to the
|
|
647
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
648
648
|
* @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
|
|
649
649
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
650
650
|
*/
|
package/js/src/pro/woo.js
CHANGED
|
@@ -613,7 +613,7 @@ export default class woo extends wooRest {
|
|
|
613
613
|
* @see https://docs.woo.org/#balance
|
|
614
614
|
* @name woo#watchBalance
|
|
615
615
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
616
|
-
* @param {object} [params] extra parameters specific to the
|
|
616
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
617
617
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
618
618
|
*/
|
|
619
619
|
await this.loadMarkets();
|