ccxt 4.0.74 → 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 +4 -4
- package/dist/ccxt.browser.js +2047 -1932
- 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 +21 -21
- 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 +5 -5
- 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 +21 -21
- 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.js +5 -5
- 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
|
@@ -138,7 +138,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
|
|
|
138
138
|
* @see https://docs.kucoin.com/futures/#get-real-time-symbol-ticker-v2
|
|
139
139
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
140
140
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
141
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
141
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
142
142
|
*/
|
|
143
143
|
await this.loadMarkets();
|
|
144
144
|
const market = this.market(symbol);
|
|
@@ -252,7 +252,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
|
|
|
252
252
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
253
253
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
254
254
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
255
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
255
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
256
256
|
*/
|
|
257
257
|
if (limit !== undefined) {
|
|
258
258
|
if ((limit !== 20) && (limit !== 100)) {
|
|
@@ -406,7 +406,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
|
|
|
406
406
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
407
407
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
408
408
|
* @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
|
|
409
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
409
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
410
410
|
*/
|
|
411
411
|
await this.loadMarkets();
|
|
412
412
|
const url = await this.negotiate(true);
|
package/js/src/pro/luno.js
CHANGED
|
@@ -140,7 +140,7 @@ export default class luno extends lunoRest {
|
|
|
140
140
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
141
141
|
* @param {objectConstructor} [params] extra parameters specific to the luno api endpoint
|
|
142
142
|
* @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
|
|
143
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
143
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
144
144
|
*/
|
|
145
145
|
await this.checkRequiredCredentials();
|
|
146
146
|
await this.loadMarkets();
|
package/js/src/pro/ndax.js
CHANGED
|
@@ -45,7 +45,7 @@ export default class ndax extends ndaxRest {
|
|
|
45
45
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
46
46
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
47
47
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
48
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
48
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
49
49
|
*/
|
|
50
50
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
51
51
|
await this.loadMarkets();
|
|
@@ -324,7 +324,7 @@ export default class ndax extends ndaxRest {
|
|
|
324
324
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
325
325
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
326
326
|
* @param {object} [params] extra parameters specific to the ndax api endpoint
|
|
327
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
327
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
328
328
|
*/
|
|
329
329
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
330
330
|
await this.loadMarkets();
|
package/js/src/pro/okcoin.js
CHANGED
|
@@ -93,7 +93,7 @@ export default class okcoin extends okcoinRest {
|
|
|
93
93
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
94
94
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
95
95
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
96
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
96
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
97
97
|
*/
|
|
98
98
|
await this.loadMarkets();
|
|
99
99
|
await this.authenticate();
|
|
@@ -177,7 +177,7 @@ export default class okcoin extends okcoinRest {
|
|
|
177
177
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
178
178
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
179
179
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
180
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
180
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
181
181
|
*/
|
|
182
182
|
return await this.subscribe('ticker', symbol, params);
|
|
183
183
|
}
|
|
@@ -325,7 +325,7 @@ export default class okcoin extends okcoinRest {
|
|
|
325
325
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
326
326
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
327
327
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
328
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
328
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
329
329
|
*/
|
|
330
330
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
331
331
|
const depth = this.safeString(options, 'depth', 'depth_l2_tbt');
|
package/js/src/pro/okx.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export default class okx extends okxRest {
|
|
|
18
18
|
handleDeltas(bookside: any, deltas: any): void;
|
|
19
19
|
handleOrderBookMessage(client: Client, message: any, orderbook: any, messageHash: any): any;
|
|
20
20
|
handleOrderBook(client: Client, message: any): any;
|
|
21
|
-
authenticate(params?: {}): any
|
|
21
|
+
authenticate(params?: {}): Promise<any>;
|
|
22
22
|
watchBalance(params?: {}): Promise<any>;
|
|
23
23
|
handleBalance(client: Client, message: any): void;
|
|
24
24
|
orderToTrade(order: any, market?: any): import("../base/types.js").Trade;
|
package/js/src/pro/okx.js
CHANGED
|
@@ -214,7 +214,7 @@ export default class okx extends okxRest {
|
|
|
214
214
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
215
215
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
216
216
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
217
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
217
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
218
218
|
*/
|
|
219
219
|
let channel = undefined;
|
|
220
220
|
[channel, params] = this.handleOptionAndParams(params, 'watchTicker', 'channel', 'tickers');
|
|
@@ -231,7 +231,7 @@ export default class okx extends okxRest {
|
|
|
231
231
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
232
232
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
233
233
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
234
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
234
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
235
235
|
*/
|
|
236
236
|
let channel = undefined;
|
|
237
237
|
[channel, params] = this.handleOptionAndParams(params, 'watchTickers', 'channel', 'tickers');
|
|
@@ -362,7 +362,7 @@ export default class okx extends okxRest {
|
|
|
362
362
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
363
363
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
364
364
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
365
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
365
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
366
366
|
*/
|
|
367
367
|
const options = this.safeValue(this.options, 'watchOrderBook', {});
|
|
368
368
|
//
|
|
@@ -602,15 +602,16 @@ export default class okx extends okxRest {
|
|
|
602
602
|
}
|
|
603
603
|
return message;
|
|
604
604
|
}
|
|
605
|
-
authenticate(params = {}) {
|
|
605
|
+
async authenticate(params = {}) {
|
|
606
606
|
this.checkRequiredCredentials();
|
|
607
607
|
const access = this.safeString(params, 'access', 'private');
|
|
608
608
|
params = this.omit(params, ['access']);
|
|
609
609
|
const url = this.getUrl('users', access);
|
|
610
610
|
const messageHash = 'authenticated';
|
|
611
611
|
const client = this.client(url);
|
|
612
|
-
|
|
613
|
-
|
|
612
|
+
const future = client.future(messageHash);
|
|
613
|
+
const authenticated = this.safeValue(client.subscriptions, messageHash);
|
|
614
|
+
if (authenticated === undefined) {
|
|
614
615
|
const timestamp = this.seconds().toString();
|
|
615
616
|
const method = 'GET';
|
|
616
617
|
const path = '/users/self/verify';
|
|
@@ -629,8 +630,7 @@ export default class okx extends okxRest {
|
|
|
629
630
|
],
|
|
630
631
|
};
|
|
631
632
|
const message = this.extend(request, params);
|
|
632
|
-
|
|
633
|
-
client.subscriptions[messageHash] = future;
|
|
633
|
+
this.watch(url, messageHash, message, messageHash);
|
|
634
634
|
}
|
|
635
635
|
return future;
|
|
636
636
|
}
|
|
@@ -734,7 +734,7 @@ export default class okx extends okxRest {
|
|
|
734
734
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
735
735
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
736
736
|
* @param {bool} [params.stop] true if fetching trigger or conditional trades
|
|
737
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
737
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
738
738
|
*/
|
|
739
739
|
await this.loadMarkets();
|
|
740
740
|
await this.authenticate();
|
|
@@ -776,7 +776,7 @@ export default class okx extends okxRest {
|
|
|
776
776
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
777
777
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
778
778
|
* @param {bool} [params.stop] true if fetching trigger or conditional orders
|
|
779
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
779
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
780
780
|
*/
|
|
781
781
|
await this.loadMarkets();
|
|
782
782
|
await this.authenticate();
|
|
@@ -1213,7 +1213,8 @@ export default class okx extends okxRest {
|
|
|
1213
1213
|
//
|
|
1214
1214
|
// { event: 'login', success: true }
|
|
1215
1215
|
//
|
|
1216
|
-
client.
|
|
1216
|
+
const future = this.safeValue(client.futures, 'authenticated');
|
|
1217
|
+
future.resolve(true);
|
|
1217
1218
|
}
|
|
1218
1219
|
ping(client) {
|
|
1219
1220
|
// okex does not support built-in ws protocol-level ping-pong
|
package/js/src/pro/phemex.js
CHANGED
|
@@ -498,7 +498,7 @@ export default class phemex extends phemexRest {
|
|
|
498
498
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
499
499
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
500
500
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
501
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
501
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
502
502
|
*/
|
|
503
503
|
await this.loadMarkets();
|
|
504
504
|
const market = this.market(symbol);
|
|
@@ -570,7 +570,7 @@ export default class phemex extends phemexRest {
|
|
|
570
570
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
571
571
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
572
572
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
573
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
573
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
574
574
|
*/
|
|
575
575
|
await this.loadMarkets();
|
|
576
576
|
const market = this.market(symbol);
|
|
@@ -728,7 +728,7 @@ export default class phemex extends phemexRest {
|
|
|
728
728
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
729
729
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
730
730
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
731
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
731
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
732
732
|
*/
|
|
733
733
|
await this.loadMarkets();
|
|
734
734
|
let market = undefined;
|
|
@@ -891,7 +891,7 @@ export default class phemex extends phemexRest {
|
|
|
891
891
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
892
892
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
893
893
|
* @param {object} [params] extra parameters specific to the phemex api endpoint
|
|
894
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
894
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
895
895
|
*/
|
|
896
896
|
await this.loadMarkets();
|
|
897
897
|
let messageHash = 'orders:';
|
package/js/src/pro/poloniex.js
CHANGED
|
@@ -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';
|
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
|
}
|
|
@@ -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
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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');
|
package/js/src/probit.js
CHANGED
|
@@ -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;
|
|
@@ -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
|
@@ -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];
|
|
@@ -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);
|