ccxt 4.0.74 → 4.0.76
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 +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- 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 +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +19 -18
- package/dist/cjs/src/pro/phemex.js +6 -6
- 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 +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- package/js/src/pro/phemex.js +6 -6
- 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 +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/js/src/pro/poloniex.js
CHANGED
|
@@ -187,7 +187,7 @@ export default class poloniex extends poloniexRest {
|
|
|
187
187
|
* @see https://docs.poloniex.com/#public-channels-market-data-ticker
|
|
188
188
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
189
189
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
190
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
190
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
191
191
|
*/
|
|
192
192
|
await this.loadMarkets();
|
|
193
193
|
symbol = this.symbol(symbol);
|
|
@@ -202,7 +202,7 @@ export default class poloniex extends poloniexRest {
|
|
|
202
202
|
* @see https://docs.poloniex.com/#public-channels-market-data-ticker
|
|
203
203
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
204
204
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
205
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
205
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
206
206
|
*/
|
|
207
207
|
await this.loadMarkets();
|
|
208
208
|
const name = 'ticker';
|
|
@@ -223,7 +223,7 @@ export default class poloniex extends poloniexRest {
|
|
|
223
223
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
224
224
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
225
225
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
226
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
226
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
227
227
|
*/
|
|
228
228
|
await this.loadMarkets();
|
|
229
229
|
symbol = this.symbol(symbol);
|
|
@@ -243,7 +243,7 @@ export default class poloniex extends poloniexRest {
|
|
|
243
243
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
244
244
|
* @param {int} [limit] not used by poloniex watchOrderBook
|
|
245
245
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
246
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
246
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
247
247
|
*/
|
|
248
248
|
await this.loadMarkets();
|
|
249
249
|
const watchOrderBookOptions = this.safeValue(this.options, 'watchOrderBook');
|
|
@@ -262,7 +262,7 @@ export default class poloniex extends poloniexRest {
|
|
|
262
262
|
* @param {int} [since] not used by poloniex watchOrders
|
|
263
263
|
* @param {int} [limit] not used by poloniex watchOrders
|
|
264
264
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
265
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
265
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
266
266
|
*/
|
|
267
267
|
await this.loadMarkets();
|
|
268
268
|
const name = 'orders';
|
|
@@ -287,7 +287,7 @@ export default class poloniex extends poloniexRest {
|
|
|
287
287
|
* @param {int} [since] not used by poloniex watchMyTrades
|
|
288
288
|
* @param {int} [limit] not used by poloniex watchMyTrades
|
|
289
289
|
* @param {object} [params] extra parameters specific to the poloniex strean
|
|
290
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
290
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
291
291
|
*/
|
|
292
292
|
await this.loadMarkets();
|
|
293
293
|
const name = 'orders';
|
|
@@ -310,7 +310,7 @@ export default class poloniex extends poloniexRest {
|
|
|
310
310
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
311
311
|
* @see https://docs.poloniex.com/#authenticated-channels-market-data-balances
|
|
312
312
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
313
|
-
* @returns {object} a [balance structure]{@link https://
|
|
313
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
314
314
|
*/
|
|
315
315
|
await this.loadMarkets();
|
|
316
316
|
const name = 'balances';
|
|
@@ -225,7 +225,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
225
225
|
* @see https://futures-docs.poloniex.com/#get-real-time-symbol-ticker
|
|
226
226
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
227
227
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
228
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
228
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
229
229
|
*/
|
|
230
230
|
await this.loadMarkets();
|
|
231
231
|
symbol = this.symbol(symbol);
|
|
@@ -242,7 +242,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
242
242
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
243
243
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
244
244
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
245
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
245
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
246
246
|
*/
|
|
247
247
|
await this.loadMarkets();
|
|
248
248
|
const options = this.safeValue(this.options, 'watchTrades');
|
|
@@ -265,7 +265,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
265
265
|
* @param {int} [limit] not used by poloniexfutures watchOrderBook
|
|
266
266
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
267
267
|
* @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
|
|
268
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
268
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
269
269
|
*/
|
|
270
270
|
await this.loadMarkets();
|
|
271
271
|
const options = this.safeValue(this.options, 'watchOrderBook');
|
|
@@ -296,7 +296,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
296
296
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
297
297
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
298
298
|
* @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
|
299
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
299
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
300
300
|
*/
|
|
301
301
|
await this.loadMarkets();
|
|
302
302
|
const options = this.safeValue(this.options, 'watchOrders');
|
|
@@ -318,7 +318,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
|
|
|
318
318
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
319
319
|
* @see https://futures-docs.poloniex.com/#account-balance-events
|
|
320
320
|
* @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
|
|
321
|
-
* @returns {object} a [balance structure]{@link https://
|
|
321
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
322
322
|
*/
|
|
323
323
|
await this.loadMarkets();
|
|
324
324
|
const name = '/contractAccount/wallet';
|
package/js/src/pro/probit.js
CHANGED
|
@@ -58,7 +58,7 @@ export default class probit extends probitRest {
|
|
|
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
60
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
61
|
-
* @returns {object} a [balance structure]{@link https://
|
|
61
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
62
62
|
*/
|
|
63
63
|
await this.authenticate(params);
|
|
64
64
|
const messageHash = 'balance';
|
|
@@ -126,7 +126,7 @@ export default class probit extends probitRest {
|
|
|
126
126
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
127
127
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
128
128
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
129
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
129
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
130
130
|
*/
|
|
131
131
|
let filter = undefined;
|
|
132
132
|
[filter, params] = this.handleOptionAndParams(params, 'watchTicker', 'filter', 'ticker');
|
|
@@ -171,7 +171,7 @@ export default class probit extends probitRest {
|
|
|
171
171
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
172
172
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
173
173
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
174
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
174
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
175
175
|
*/
|
|
176
176
|
let filter = undefined;
|
|
177
177
|
[filter, params] = this.handleOptionAndParams(params, 'watchTrades', 'filter', 'recent_trades');
|
|
@@ -231,7 +231,7 @@ export default class probit extends probitRest {
|
|
|
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
233
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
234
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
234
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
235
235
|
*/
|
|
236
236
|
await this.loadMarkets();
|
|
237
237
|
await this.authenticate(params);
|
|
@@ -312,7 +312,7 @@ export default class probit extends probitRest {
|
|
|
312
312
|
* @param {int} [limit] the maximum amount of orders to watch
|
|
313
313
|
* @param {object} [params] extra parameters specific to the aax api endpoint
|
|
314
314
|
* @param {string} [params.channel] choose what channel to use. Can open_order or order_history.
|
|
315
|
-
* @returns {object} An [order structure]{@link https://
|
|
315
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
316
316
|
*/
|
|
317
317
|
await this.authenticate(params);
|
|
318
318
|
const url = this.urls['api']['ws'];
|
|
@@ -396,7 +396,7 @@ export default class probit extends probitRest {
|
|
|
396
396
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
397
397
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
398
398
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
399
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
399
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
400
400
|
*/
|
|
401
401
|
let filter = undefined;
|
|
402
402
|
[filter, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'filter', 'order_books');
|
package/js/src/pro/upbit.js
CHANGED
|
@@ -58,7 +58,7 @@ export default class upbit extends upbitRest {
|
|
|
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
60
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
61
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
61
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
62
62
|
*/
|
|
63
63
|
return await this.watchPublic(symbol, 'ticker');
|
|
64
64
|
}
|
|
@@ -71,7 +71,7 @@ export default class upbit extends upbitRest {
|
|
|
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
73
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
74
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
74
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
75
75
|
*/
|
|
76
76
|
await this.loadMarkets();
|
|
77
77
|
symbol = this.symbol(symbol);
|
|
@@ -89,7 +89,7 @@ export default class upbit extends upbitRest {
|
|
|
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
91
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
92
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
92
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
93
93
|
*/
|
|
94
94
|
const orderbook = await this.watchPublic(symbol, 'orderbook');
|
|
95
95
|
return orderbook.limit();
|
package/js/src/pro/wazirx.js
CHANGED
|
@@ -47,7 +47,7 @@ export default class wazirx extends wazirxRest {
|
|
|
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
49
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
50
|
-
* @returns {object} a [balance structure]{@link https://
|
|
50
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
51
51
|
*/
|
|
52
52
|
await this.loadMarkets();
|
|
53
53
|
const token = await this.authenticate(params);
|
|
@@ -168,7 +168,7 @@ export default class wazirx extends wazirxRest {
|
|
|
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
170
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
171
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
171
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
172
172
|
*/
|
|
173
173
|
await this.loadMarkets();
|
|
174
174
|
const market = this.market(symbol);
|
|
@@ -191,7 +191,7 @@ export default class wazirx extends wazirxRest {
|
|
|
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
193
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
194
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
194
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
195
195
|
*/
|
|
196
196
|
await this.loadMarkets();
|
|
197
197
|
symbols = this.marketSymbols(symbols);
|
|
@@ -291,7 +291,7 @@ export default class wazirx extends wazirxRest {
|
|
|
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
293
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
294
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
294
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
297
297
|
const market = this.market(symbol);
|
|
@@ -357,7 +357,7 @@ export default class wazirx extends wazirxRest {
|
|
|
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
359
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
360
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
360
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
361
361
|
*/
|
|
362
362
|
await this.loadMarkets();
|
|
363
363
|
const token = await this.authenticate(params);
|
|
@@ -476,7 +476,7 @@ export default class wazirx extends wazirxRest {
|
|
|
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
478
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
479
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
479
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
480
480
|
*/
|
|
481
481
|
await this.loadMarkets();
|
|
482
482
|
const market = this.market(symbol);
|
package/js/src/pro/whitebit.js
CHANGED
|
@@ -137,7 +137,7 @@ export default class whitebit extends whitebitRest {
|
|
|
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
139
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
140
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
140
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
141
141
|
*/
|
|
142
142
|
await this.loadMarkets();
|
|
143
143
|
const market = this.market(symbol);
|
|
@@ -240,7 +240,7 @@ export default class whitebit extends whitebitRest {
|
|
|
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
242
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
243
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
243
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
244
244
|
*/
|
|
245
245
|
await this.loadMarkets();
|
|
246
246
|
const market = this.market(symbol);
|
|
@@ -308,7 +308,7 @@ export default class whitebit extends whitebitRest {
|
|
|
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
310
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
311
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
311
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
312
312
|
*/
|
|
313
313
|
await this.loadMarkets();
|
|
314
314
|
const market = this.market(symbol);
|
|
@@ -374,7 +374,7 @@ export default class whitebit extends whitebitRest {
|
|
|
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
376
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
377
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
377
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
378
378
|
*/
|
|
379
379
|
if (symbol === undefined) {
|
|
380
380
|
throw new ArgumentsRequired(this.id + ' watchMyTrades requires a symbol argument');
|
|
@@ -473,7 +473,7 @@ export default class whitebit extends whitebitRest {
|
|
|
473
473
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
474
474
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
475
475
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
476
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
476
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
477
477
|
*/
|
|
478
478
|
if (symbol === undefined) {
|
|
479
479
|
throw new ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -646,7 +646,7 @@ export default class whitebit extends whitebitRest {
|
|
|
646
646
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
647
647
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
648
648
|
* @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
|
|
649
|
-
* @returns {object} a [balance structure]{@link https://
|
|
649
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
650
650
|
*/
|
|
651
651
|
await this.loadMarkets();
|
|
652
652
|
let type = undefined;
|
package/js/src/probit.js
CHANGED
|
@@ -533,7 +533,7 @@ export default class probit extends Exchange {
|
|
|
533
533
|
* @see https://docs-en.probit.com/reference/balance
|
|
534
534
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
535
535
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
536
|
-
* @returns {object} a [balance structure]{@link https://
|
|
536
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
539
539
|
const response = await this.privateGetBalance(params);
|
|
@@ -559,7 +559,7 @@ export default class probit extends Exchange {
|
|
|
559
559
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
560
560
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
561
561
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
562
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
562
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
563
563
|
*/
|
|
564
564
|
await this.loadMarkets();
|
|
565
565
|
const market = this.market(symbol);
|
|
@@ -588,7 +588,7 @@ export default class probit extends Exchange {
|
|
|
588
588
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
589
589
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
590
590
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
591
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
591
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
592
592
|
*/
|
|
593
593
|
await this.loadMarkets();
|
|
594
594
|
const request = {};
|
|
@@ -624,7 +624,7 @@ export default class probit extends Exchange {
|
|
|
624
624
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
625
625
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
626
626
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
627
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
627
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
628
628
|
*/
|
|
629
629
|
await this.loadMarkets();
|
|
630
630
|
const market = this.market(symbol);
|
|
@@ -708,7 +708,7 @@ export default class probit extends Exchange {
|
|
|
708
708
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
709
709
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
710
710
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
711
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
711
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
712
712
|
*/
|
|
713
713
|
await this.loadMarkets();
|
|
714
714
|
let market = undefined;
|
|
@@ -762,7 +762,7 @@ export default class probit extends Exchange {
|
|
|
762
762
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
763
763
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
764
764
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
765
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
765
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
766
766
|
*/
|
|
767
767
|
await this.loadMarkets();
|
|
768
768
|
const market = this.market(symbol);
|
|
@@ -1025,7 +1025,7 @@ export default class probit extends Exchange {
|
|
|
1025
1025
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1026
1026
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1027
1027
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1028
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1028
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1029
1029
|
*/
|
|
1030
1030
|
await this.loadMarkets();
|
|
1031
1031
|
since = this.parse8601(since);
|
|
@@ -1049,7 +1049,7 @@ export default class probit extends Exchange {
|
|
|
1049
1049
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1050
1050
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1051
1051
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1052
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1052
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1053
1053
|
*/
|
|
1054
1054
|
await this.loadMarkets();
|
|
1055
1055
|
const request = {
|
|
@@ -1080,7 +1080,7 @@ export default class probit extends Exchange {
|
|
|
1080
1080
|
* @description fetches information on an order made by the user
|
|
1081
1081
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1082
1082
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1083
|
-
* @returns {object} An [order structure]{@link https://
|
|
1083
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1084
1084
|
*/
|
|
1085
1085
|
if (symbol === undefined) {
|
|
1086
1086
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -1189,9 +1189,9 @@ export default class probit extends Exchange {
|
|
|
1189
1189
|
* @param {string} type 'market' or 'limit'
|
|
1190
1190
|
* @param {string} side 'buy' or 'sell'
|
|
1191
1191
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1192
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1192
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1193
1193
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1194
|
-
* @returns {object} an [order structure]{@link https://
|
|
1194
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1195
1195
|
*/
|
|
1196
1196
|
await this.loadMarkets();
|
|
1197
1197
|
const market = this.market(symbol);
|
|
@@ -1283,7 +1283,7 @@ export default class probit extends Exchange {
|
|
|
1283
1283
|
* @param {string} id order id
|
|
1284
1284
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1285
1285
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1286
|
-
* @returns {object} An [order structure]{@link https://
|
|
1286
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1287
1287
|
*/
|
|
1288
1288
|
if (symbol === undefined) {
|
|
1289
1289
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1322,7 +1322,7 @@ export default class probit extends Exchange {
|
|
|
1322
1322
|
* @description fetch the deposit address for a currency associated with this account
|
|
1323
1323
|
* @param {string} code unified currency code
|
|
1324
1324
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1325
|
-
* @returns {object} an [address structure]{@link https://
|
|
1325
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1326
1326
|
*/
|
|
1327
1327
|
await this.loadMarkets();
|
|
1328
1328
|
const currency = this.currency(code);
|
|
@@ -1376,7 +1376,7 @@ export default class probit extends Exchange {
|
|
|
1376
1376
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1377
1377
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1378
1378
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1379
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
1379
|
+
* @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1380
1380
|
*/
|
|
1381
1381
|
await this.loadMarkets();
|
|
1382
1382
|
const request = {};
|
|
@@ -1403,7 +1403,7 @@ export default class probit extends Exchange {
|
|
|
1403
1403
|
* @param {string} address the address to withdraw to
|
|
1404
1404
|
* @param {string} tag
|
|
1405
1405
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1406
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1406
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1407
1407
|
*/
|
|
1408
1408
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1409
1409
|
// In order to use this method
|
|
@@ -1448,7 +1448,7 @@ export default class probit extends Exchange {
|
|
|
1448
1448
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1449
1449
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1450
1450
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1451
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1451
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1452
1452
|
*/
|
|
1453
1453
|
const request = {
|
|
1454
1454
|
'type': 'deposit',
|
|
@@ -1465,7 +1465,7 @@ export default class probit extends Exchange {
|
|
|
1465
1465
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1466
1466
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1467
1467
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1468
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1468
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1469
1469
|
*/
|
|
1470
1470
|
const request = {
|
|
1471
1471
|
'type': 'withdrawal',
|
|
@@ -1484,7 +1484,7 @@ export default class probit extends Exchange {
|
|
|
1484
1484
|
* @param {int} [since] the earliest time in ms to fetch transactions for
|
|
1485
1485
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1486
1486
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1487
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1487
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1488
1488
|
*/
|
|
1489
1489
|
await this.loadMarkets();
|
|
1490
1490
|
let currency = undefined;
|
|
@@ -1588,7 +1588,7 @@ export default class probit extends Exchange {
|
|
|
1588
1588
|
* @description fetch deposit and withdraw fees
|
|
1589
1589
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1590
1590
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1591
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
1591
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1592
1592
|
*/
|
|
1593
1593
|
await this.loadMarkets();
|
|
1594
1594
|
const response = await this.publicGetCurrencyWithPlatform(params);
|
package/js/src/tidex.js
CHANGED
|
@@ -369,7 +369,7 @@ export default class tidex extends Exchange {
|
|
|
369
369
|
* @name tidex#fetchBalance
|
|
370
370
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
371
371
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
372
|
-
* @returns {object} a [balance structure]{@link https://
|
|
372
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
373
373
|
*/
|
|
374
374
|
await this.loadMarkets();
|
|
375
375
|
const response = await this.privatePostGetInfoExt(params);
|
|
@@ -409,7 +409,7 @@ export default class tidex extends Exchange {
|
|
|
409
409
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
410
410
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
411
411
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
412
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
412
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
413
413
|
*/
|
|
414
414
|
await this.loadMarkets();
|
|
415
415
|
const market = this.market(symbol);
|
|
@@ -435,7 +435,7 @@ export default class tidex extends Exchange {
|
|
|
435
435
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
436
436
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
437
437
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
438
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
438
|
+
* @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
|
|
439
439
|
*/
|
|
440
440
|
await this.loadMarkets();
|
|
441
441
|
let ids = undefined;
|
|
@@ -514,7 +514,7 @@ export default class tidex extends Exchange {
|
|
|
514
514
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
515
515
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
516
516
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
517
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
517
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
518
518
|
*/
|
|
519
519
|
await this.loadMarkets();
|
|
520
520
|
symbols = this.marketSymbols(symbols);
|
|
@@ -553,7 +553,7 @@ export default class tidex extends Exchange {
|
|
|
553
553
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
554
554
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
555
555
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
556
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
556
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
557
557
|
*/
|
|
558
558
|
const tickers = await this.fetchTickers([symbol], params);
|
|
559
559
|
return tickers[symbol];
|
|
@@ -623,7 +623,7 @@ export default class tidex extends Exchange {
|
|
|
623
623
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
624
624
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
625
625
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
626
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
626
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
627
627
|
*/
|
|
628
628
|
await this.loadMarkets();
|
|
629
629
|
const market = this.market(symbol);
|
|
@@ -651,9 +651,9 @@ export default class tidex extends Exchange {
|
|
|
651
651
|
* @param {string} type 'market' or 'limit'
|
|
652
652
|
* @param {string} side 'buy' or 'sell'
|
|
653
653
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
654
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
654
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
655
655
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
656
|
-
* @returns {object} an [order structure]{@link https://
|
|
656
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
657
657
|
*/
|
|
658
658
|
if (type === 'market') {
|
|
659
659
|
throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -714,7 +714,7 @@ export default class tidex extends Exchange {
|
|
|
714
714
|
* @param {string} id order id
|
|
715
715
|
* @param {string} symbol not used by tidex cancelOrder ()
|
|
716
716
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
717
|
-
* @returns {object} An [order structure]{@link https://
|
|
717
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
718
718
|
*/
|
|
719
719
|
await this.loadMarkets();
|
|
720
720
|
const request = {
|
|
@@ -780,7 +780,7 @@ export default class tidex extends Exchange {
|
|
|
780
780
|
* @description fetches information on an order made by the user
|
|
781
781
|
* @param {string} symbol not used by tidex fetchOrder
|
|
782
782
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
783
|
-
* @returns {object} An [order structure]{@link https://
|
|
783
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
784
784
|
*/
|
|
785
785
|
await this.loadMarkets();
|
|
786
786
|
const request = {
|
|
@@ -801,7 +801,7 @@ export default class tidex extends Exchange {
|
|
|
801
801
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
802
802
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
803
803
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
804
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
804
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
805
805
|
*/
|
|
806
806
|
await this.loadMarkets();
|
|
807
807
|
const request = {};
|
|
@@ -845,7 +845,7 @@ export default class tidex extends Exchange {
|
|
|
845
845
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
846
846
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
847
847
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
848
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
848
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
849
849
|
*/
|
|
850
850
|
await this.loadMarkets();
|
|
851
851
|
let market = undefined;
|
|
@@ -884,7 +884,7 @@ export default class tidex extends Exchange {
|
|
|
884
884
|
* @param {string} address the address to withdraw to
|
|
885
885
|
* @param {string} tag
|
|
886
886
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
887
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
887
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
888
888
|
*/
|
|
889
889
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
890
890
|
this.checkAddress(address);
|