ccxt 4.0.73 → 4.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/ccxt.browser.js +2058 -1943
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +25 -26
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +12 -11
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +25 -26
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.d.ts +1 -1
- package/js/src/pro/bybit.js +12 -11
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
|
@@ -119,7 +119,7 @@ class kucoin extends kucoin$1 {
|
|
|
119
119
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
120
120
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
121
121
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
122
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
122
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
123
123
|
*/
|
|
124
124
|
await this.loadMarkets();
|
|
125
125
|
const market = this.market(symbol);
|
|
@@ -332,7 +332,7 @@ class kucoin extends kucoin$1 {
|
|
|
332
332
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
333
333
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
334
334
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
335
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
335
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
336
336
|
*/
|
|
337
337
|
//
|
|
338
338
|
// https://docs.kucoin.com/#level-2-market-data
|
|
@@ -496,7 +496,7 @@ class kucoin extends kucoin$1 {
|
|
|
496
496
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
497
497
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
498
498
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
499
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
499
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
500
500
|
*/
|
|
501
501
|
await this.loadMarkets();
|
|
502
502
|
const url = await this.negotiate(true);
|
|
@@ -619,7 +619,7 @@ class kucoin extends kucoin$1 {
|
|
|
619
619
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
620
620
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
621
621
|
* @param {object} [params] extra parameters specific to the kucoin api endpoint
|
|
622
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
622
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
623
623
|
*/
|
|
624
624
|
await this.loadMarkets();
|
|
625
625
|
const url = await this.negotiate(true);
|
|
@@ -135,7 +135,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
135
135
|
* @see https://docs.kucoin.com/futures/#get-real-time-symbol-ticker-v2
|
|
136
136
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
137
137
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
138
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
138
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
139
139
|
*/
|
|
140
140
|
await this.loadMarkets();
|
|
141
141
|
const market = this.market(symbol);
|
|
@@ -249,7 +249,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
249
249
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
250
250
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
251
251
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
252
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
252
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
253
253
|
*/
|
|
254
254
|
if (limit !== undefined) {
|
|
255
255
|
if ((limit !== 20) && (limit !== 100)) {
|
|
@@ -403,7 +403,7 @@ class kucoinfutures extends kucoinfutures$1 {
|
|
|
403
403
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
404
404
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
405
405
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
406
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
406
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
407
407
|
*/
|
|
408
408
|
await this.loadMarkets();
|
|
409
409
|
const url = await this.negotiate(true);
|
package/dist/cjs/src/pro/luno.js
CHANGED
|
@@ -137,7 +137,7 @@ class luno extends luno$1 {
|
|
|
137
137
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
138
138
|
* @param {objectConstructor} [params] extra parameters specific to the luno api endpoint
|
|
139
139
|
* @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
|
|
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.checkRequiredCredentials();
|
|
143
143
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/ndax.js
CHANGED
|
@@ -42,7 +42,7 @@ class ndax extends ndax$1 {
|
|
|
42
42
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
43
43
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
44
44
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
45
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
45
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
46
46
|
*/
|
|
47
47
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
48
48
|
await this.loadMarkets();
|
|
@@ -321,7 +321,7 @@ class ndax extends ndax$1 {
|
|
|
321
321
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
322
322
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
323
323
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
324
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
324
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
325
325
|
*/
|
|
326
326
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
327
327
|
await this.loadMarkets();
|
|
@@ -90,7 +90,7 @@ class okcoin extends okcoin$1 {
|
|
|
90
90
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
91
91
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
92
92
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
93
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
93
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
94
94
|
*/
|
|
95
95
|
await this.loadMarkets();
|
|
96
96
|
await this.authenticate();
|
|
@@ -174,7 +174,7 @@ class okcoin extends okcoin$1 {
|
|
|
174
174
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
175
175
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
176
176
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
177
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
177
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
178
178
|
*/
|
|
179
179
|
return await this.subscribe('ticker', symbol, params);
|
|
180
180
|
}
|
|
@@ -322,7 +322,7 @@ class okcoin extends okcoin$1 {
|
|
|
322
322
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
323
323
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
324
324
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
325
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
325
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
326
326
|
*/
|
|
327
327
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
328
328
|
const depth = this.safeString(options, 'depth', 'depth_l2_tbt');
|
package/dist/cjs/src/pro/okx.js
CHANGED
|
@@ -211,7 +211,7 @@ class okx extends okx$1 {
|
|
|
211
211
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
212
212
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
213
213
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
214
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
214
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
215
215
|
*/
|
|
216
216
|
let channel = undefined;
|
|
217
217
|
[channel, params] = this.handleOptionAndParams(params, 'watchTicker', 'channel', 'tickers');
|
|
@@ -228,7 +228,7 @@ class okx extends okx$1 {
|
|
|
228
228
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
229
229
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
230
230
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
231
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
231
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
232
232
|
*/
|
|
233
233
|
let channel = undefined;
|
|
234
234
|
[channel, params] = this.handleOptionAndParams(params, 'watchTickers', 'channel', 'tickers');
|
|
@@ -359,7 +359,7 @@ class okx extends okx$1 {
|
|
|
359
359
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
360
360
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
361
361
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
362
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
362
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
363
363
|
*/
|
|
364
364
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
365
365
|
//
|
|
@@ -599,15 +599,16 @@ class okx extends okx$1 {
|
|
|
599
599
|
}
|
|
600
600
|
return message;
|
|
601
601
|
}
|
|
602
|
-
authenticate(params = {}) {
|
|
602
|
+
async authenticate(params = {}) {
|
|
603
603
|
this.checkRequiredCredentials();
|
|
604
604
|
const access = this.safeString(params, 'access', 'private');
|
|
605
605
|
params = this.omit(params, ['access']);
|
|
606
606
|
const url = this.getUrl('users', access);
|
|
607
607
|
const messageHash = 'authenticated';
|
|
608
608
|
const client = this.client(url);
|
|
609
|
-
|
|
610
|
-
|
|
609
|
+
const future = client.future(messageHash);
|
|
610
|
+
const authenticated = this.safeValue(client.subscriptions, messageHash);
|
|
611
|
+
if (authenticated === undefined) {
|
|
611
612
|
const timestamp = this.seconds().toString();
|
|
612
613
|
const method = 'GET';
|
|
613
614
|
const path = '/users/self/verify';
|
|
@@ -626,8 +627,7 @@ class okx extends okx$1 {
|
|
|
626
627
|
],
|
|
627
628
|
};
|
|
628
629
|
const message = this.extend(request, params);
|
|
629
|
-
|
|
630
|
-
client.subscriptions[messageHash] = future;
|
|
630
|
+
this.watch(url, messageHash, message, messageHash);
|
|
631
631
|
}
|
|
632
632
|
return future;
|
|
633
633
|
}
|
|
@@ -731,7 +731,7 @@ class okx extends okx$1 {
|
|
|
731
731
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
732
732
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
733
733
|
* @param {bool} [params.stop] true if fetching trigger or conditional trades
|
|
734
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
734
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
735
735
|
*/
|
|
736
736
|
await this.loadMarkets();
|
|
737
737
|
await this.authenticate();
|
|
@@ -773,7 +773,7 @@ class okx extends okx$1 {
|
|
|
773
773
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
774
774
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
775
775
|
* @param {bool} [params.stop] true if fetching trigger or conditional orders
|
|
776
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
776
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
777
777
|
*/
|
|
778
778
|
await this.loadMarkets();
|
|
779
779
|
await this.authenticate();
|
|
@@ -1210,7 +1210,8 @@ class okx extends okx$1 {
|
|
|
1210
1210
|
//
|
|
1211
1211
|
// { event: 'login', success: true }
|
|
1212
1212
|
//
|
|
1213
|
-
client.
|
|
1213
|
+
const future = this.safeValue(client.futures, 'authenticated');
|
|
1214
|
+
future.resolve(true);
|
|
1214
1215
|
}
|
|
1215
1216
|
ping(client) {
|
|
1216
1217
|
// okex does not support built-in ws protocol-level ping-pong
|
|
@@ -495,7 +495,7 @@ class phemex extends phemex$1 {
|
|
|
495
495
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
496
496
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
497
497
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
498
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
498
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
499
499
|
*/
|
|
500
500
|
await this.loadMarkets();
|
|
501
501
|
const market = this.market(symbol);
|
|
@@ -567,7 +567,7 @@ class phemex extends phemex$1 {
|
|
|
567
567
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
568
568
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
569
569
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
570
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
570
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
571
571
|
*/
|
|
572
572
|
await this.loadMarkets();
|
|
573
573
|
const market = this.market(symbol);
|
|
@@ -725,7 +725,7 @@ class phemex extends phemex$1 {
|
|
|
725
725
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
726
726
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
727
727
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
728
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
728
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
729
729
|
*/
|
|
730
730
|
await this.loadMarkets();
|
|
731
731
|
let market = undefined;
|
|
@@ -888,7 +888,7 @@ class phemex extends phemex$1 {
|
|
|
888
888
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
889
889
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
890
890
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
891
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
891
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
892
892
|
*/
|
|
893
893
|
await this.loadMarkets();
|
|
894
894
|
let messageHash = 'orders:';
|
|
@@ -284,7 +284,7 @@ class poloniex extends poloniex$1 {
|
|
|
284
284
|
* @param {int} [since] not used by poloniex watchMyTrades
|
|
285
285
|
* @param {int} [limit] not used by poloniex watchMyTrades
|
|
286
286
|
* @param {object} [params] extra parameters specific to the poloniex strean
|
|
287
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
287
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
288
288
|
*/
|
|
289
289
|
await this.loadMarkets();
|
|
290
290
|
const name = 'orders';
|
|
@@ -55,7 +55,7 @@ class upbit extends upbit$1 {
|
|
|
55
55
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
56
56
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
57
57
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
58
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
58
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
59
59
|
*/
|
|
60
60
|
return await this.watchPublic(symbol, 'ticker');
|
|
61
61
|
}
|
|
@@ -86,7 +86,7 @@ class upbit extends upbit$1 {
|
|
|
86
86
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
87
87
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
88
88
|
* @param {object} [params] extra parameters specific to the upbit api endpoint
|
|
89
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
89
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
90
90
|
*/
|
|
91
91
|
const orderbook = await this.watchPublic(symbol, 'orderbook');
|
|
92
92
|
return orderbook.limit();
|
|
@@ -165,7 +165,7 @@ class wazirx extends wazirx$1 {
|
|
|
165
165
|
* @see https://docs.wazirx.com/#all-market-tickers-stream
|
|
166
166
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
167
167
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
168
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
168
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
169
169
|
*/
|
|
170
170
|
await this.loadMarkets();
|
|
171
171
|
const market = this.market(symbol);
|
|
@@ -188,7 +188,7 @@ class wazirx extends wazirx$1 {
|
|
|
188
188
|
* @see https://docs.wazirx.com/#all-market-tickers-stream
|
|
189
189
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
190
190
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
191
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
191
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
192
192
|
*/
|
|
193
193
|
await this.loadMarkets();
|
|
194
194
|
symbols = this.marketSymbols(symbols);
|
|
@@ -473,7 +473,7 @@ class wazirx extends wazirx$1 {
|
|
|
473
473
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
474
474
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
475
475
|
* @param {object} [params] extra parameters specific to the wazirx api endpoint
|
|
476
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
476
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
477
477
|
*/
|
|
478
478
|
await this.loadMarkets();
|
|
479
479
|
const market = this.market(symbol);
|
|
@@ -134,7 +134,7 @@ class whitebit extends whitebit$1 {
|
|
|
134
134
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
135
135
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
136
136
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
137
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
137
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
138
138
|
*/
|
|
139
139
|
await this.loadMarkets();
|
|
140
140
|
const market = this.market(symbol);
|
|
@@ -237,7 +237,7 @@ class whitebit extends whitebit$1 {
|
|
|
237
237
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
238
238
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
239
239
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
240
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
240
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
241
241
|
*/
|
|
242
242
|
await this.loadMarkets();
|
|
243
243
|
const market = this.market(symbol);
|
|
@@ -371,7 +371,7 @@ class whitebit extends whitebit$1 {
|
|
|
371
371
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
372
372
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
373
373
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
374
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
374
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
375
375
|
*/
|
|
376
376
|
if (symbol === undefined) {
|
|
377
377
|
throw new errors.ArgumentsRequired(this.id + ' watchMyTrades requires a symbol argument');
|
|
@@ -470,7 +470,7 @@ class whitebit extends whitebit$1 {
|
|
|
470
470
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
471
471
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
472
472
|
* @param {object} [params] extra parameters specific to the whitebit api endpoint
|
|
473
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
473
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
474
474
|
*/
|
|
475
475
|
if (symbol === undefined) {
|
|
476
476
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
package/dist/cjs/src/probit.js
CHANGED
|
@@ -556,7 +556,7 @@ class probit extends probit$1 {
|
|
|
556
556
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
557
557
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
558
558
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
559
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
559
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
560
560
|
*/
|
|
561
561
|
await this.loadMarkets();
|
|
562
562
|
const market = this.market(symbol);
|
|
@@ -585,7 +585,7 @@ class probit extends probit$1 {
|
|
|
585
585
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
586
586
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
587
587
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
588
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
588
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
589
589
|
*/
|
|
590
590
|
await this.loadMarkets();
|
|
591
591
|
const request = {};
|
|
@@ -621,7 +621,7 @@ class probit extends probit$1 {
|
|
|
621
621
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
622
622
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
623
623
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
624
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
624
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
625
625
|
*/
|
|
626
626
|
await this.loadMarkets();
|
|
627
627
|
const market = this.market(symbol);
|
|
@@ -705,7 +705,7 @@ class probit extends probit$1 {
|
|
|
705
705
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
706
706
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
707
707
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
708
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
708
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
709
709
|
*/
|
|
710
710
|
await this.loadMarkets();
|
|
711
711
|
let market = undefined;
|
|
@@ -1022,7 +1022,7 @@ class probit extends probit$1 {
|
|
|
1022
1022
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1023
1023
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1024
1024
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1025
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1025
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1026
1026
|
*/
|
|
1027
1027
|
await this.loadMarkets();
|
|
1028
1028
|
since = this.parse8601(since);
|
|
@@ -1046,7 +1046,7 @@ class probit extends probit$1 {
|
|
|
1046
1046
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1047
1047
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1048
1048
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1049
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1049
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1050
1050
|
*/
|
|
1051
1051
|
await this.loadMarkets();
|
|
1052
1052
|
const request = {
|
|
@@ -1077,7 +1077,7 @@ class probit extends probit$1 {
|
|
|
1077
1077
|
* @description fetches information on an order made by the user
|
|
1078
1078
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1079
1079
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1080
|
-
* @returns {object} An [order structure]{@link https://
|
|
1080
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1081
1081
|
*/
|
|
1082
1082
|
if (symbol === undefined) {
|
|
1083
1083
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -1186,9 +1186,9 @@ class probit extends probit$1 {
|
|
|
1186
1186
|
* @param {string} type 'market' or 'limit'
|
|
1187
1187
|
* @param {string} side 'buy' or 'sell'
|
|
1188
1188
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1189
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1189
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1190
1190
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1191
|
-
* @returns {object} an [order structure]{@link https://
|
|
1191
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1192
1192
|
*/
|
|
1193
1193
|
await this.loadMarkets();
|
|
1194
1194
|
const market = this.market(symbol);
|
|
@@ -1280,7 +1280,7 @@ class probit extends probit$1 {
|
|
|
1280
1280
|
* @param {string} id order id
|
|
1281
1281
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1282
1282
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1283
|
-
* @returns {object} An [order structure]{@link https://
|
|
1283
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1284
1284
|
*/
|
|
1285
1285
|
if (symbol === undefined) {
|
|
1286
1286
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -1319,7 +1319,7 @@ class probit extends probit$1 {
|
|
|
1319
1319
|
* @description fetch the deposit address for a currency associated with this account
|
|
1320
1320
|
* @param {string} code unified currency code
|
|
1321
1321
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1322
|
-
* @returns {object} an [address structure]{@link https://
|
|
1322
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1323
1323
|
*/
|
|
1324
1324
|
await this.loadMarkets();
|
|
1325
1325
|
const currency = this.currency(code);
|
|
@@ -1373,7 +1373,7 @@ class probit extends probit$1 {
|
|
|
1373
1373
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1374
1374
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1375
1375
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1376
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
1376
|
+
* @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1377
1377
|
*/
|
|
1378
1378
|
await this.loadMarkets();
|
|
1379
1379
|
const request = {};
|
|
@@ -1400,7 +1400,7 @@ class probit extends probit$1 {
|
|
|
1400
1400
|
* @param {string} address the address to withdraw to
|
|
1401
1401
|
* @param {string} tag
|
|
1402
1402
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1403
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1403
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1404
1404
|
*/
|
|
1405
1405
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1406
1406
|
// In order to use this method
|
|
@@ -1445,7 +1445,7 @@ class probit extends probit$1 {
|
|
|
1445
1445
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1446
1446
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1447
1447
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1448
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1448
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1449
1449
|
*/
|
|
1450
1450
|
const request = {
|
|
1451
1451
|
'type': 'deposit',
|
|
@@ -1462,7 +1462,7 @@ class probit extends probit$1 {
|
|
|
1462
1462
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1463
1463
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1464
1464
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1465
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1465
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1466
1466
|
*/
|
|
1467
1467
|
const request = {
|
|
1468
1468
|
'type': 'withdrawal',
|
|
@@ -1481,7 +1481,7 @@ class probit extends probit$1 {
|
|
|
1481
1481
|
* @param {int} [since] the earliest time in ms to fetch transactions for
|
|
1482
1482
|
* @param {int} [limit] the maximum number of transaction structures to retrieve
|
|
1483
1483
|
* @param {object} [params] extra parameters specific to the probit api endpoint
|
|
1484
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1484
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1485
1485
|
*/
|
|
1486
1486
|
await this.loadMarkets();
|
|
1487
1487
|
let currency = undefined;
|
|
@@ -1585,7 +1585,7 @@ class probit extends probit$1 {
|
|
|
1585
1585
|
* @description fetch deposit and withdraw fees
|
|
1586
1586
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1587
1587
|
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
1588
|
-
* @returns {object[]} a list of [fees structures]{@link https://
|
|
1588
|
+
* @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
1589
1589
|
*/
|
|
1590
1590
|
await this.loadMarkets();
|
|
1591
1591
|
const response = await this.publicGetCurrencyWithPlatform(params);
|
package/dist/cjs/src/tidex.js
CHANGED
|
@@ -406,7 +406,7 @@ class tidex extends tidex$1 {
|
|
|
406
406
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
407
407
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
408
408
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
409
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
409
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
410
410
|
*/
|
|
411
411
|
await this.loadMarkets();
|
|
412
412
|
const market = this.market(symbol);
|
|
@@ -432,7 +432,7 @@ class tidex extends tidex$1 {
|
|
|
432
432
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
433
433
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
434
434
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
435
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
435
|
+
* @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
|
|
436
436
|
*/
|
|
437
437
|
await this.loadMarkets();
|
|
438
438
|
let ids = undefined;
|
|
@@ -511,7 +511,7 @@ class tidex extends tidex$1 {
|
|
|
511
511
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
512
512
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
513
513
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
514
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
514
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
515
515
|
*/
|
|
516
516
|
await this.loadMarkets();
|
|
517
517
|
symbols = this.marketSymbols(symbols);
|
|
@@ -550,7 +550,7 @@ class tidex extends tidex$1 {
|
|
|
550
550
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
551
551
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
552
552
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
553
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
553
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
554
554
|
*/
|
|
555
555
|
const tickers = await this.fetchTickers([symbol], params);
|
|
556
556
|
return tickers[symbol];
|
|
@@ -648,9 +648,9 @@ class tidex extends tidex$1 {
|
|
|
648
648
|
* @param {string} type 'market' or 'limit'
|
|
649
649
|
* @param {string} side 'buy' or 'sell'
|
|
650
650
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
651
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
651
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
652
652
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
653
|
-
* @returns {object} an [order structure]{@link https://
|
|
653
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
654
654
|
*/
|
|
655
655
|
if (type === 'market') {
|
|
656
656
|
throw new errors.ExchangeError(this.id + ' createOrder() allows limit orders only');
|
|
@@ -711,7 +711,7 @@ class tidex extends tidex$1 {
|
|
|
711
711
|
* @param {string} id order id
|
|
712
712
|
* @param {string} symbol not used by tidex cancelOrder ()
|
|
713
713
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
714
|
-
* @returns {object} An [order structure]{@link https://
|
|
714
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
715
715
|
*/
|
|
716
716
|
await this.loadMarkets();
|
|
717
717
|
const request = {
|
|
@@ -777,7 +777,7 @@ class tidex extends tidex$1 {
|
|
|
777
777
|
* @description fetches information on an order made by the user
|
|
778
778
|
* @param {string} symbol not used by tidex fetchOrder
|
|
779
779
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
780
|
-
* @returns {object} An [order structure]{@link https://
|
|
780
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
781
781
|
*/
|
|
782
782
|
await this.loadMarkets();
|
|
783
783
|
const request = {
|
|
@@ -798,7 +798,7 @@ class tidex extends tidex$1 {
|
|
|
798
798
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
799
799
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
800
800
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
801
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
801
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
802
802
|
*/
|
|
803
803
|
await this.loadMarkets();
|
|
804
804
|
const request = {};
|
|
@@ -842,7 +842,7 @@ class tidex extends tidex$1 {
|
|
|
842
842
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
843
843
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
844
844
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
845
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
845
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
846
846
|
*/
|
|
847
847
|
await this.loadMarkets();
|
|
848
848
|
let market = undefined;
|
|
@@ -881,7 +881,7 @@ class tidex extends tidex$1 {
|
|
|
881
881
|
* @param {string} address the address to withdraw to
|
|
882
882
|
* @param {string} tag
|
|
883
883
|
* @param {object} [params] extra parameters specific to the tidex api endpoint
|
|
884
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
884
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
885
885
|
*/
|
|
886
886
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
887
887
|
this.checkAddress(address);
|