ccxt 4.0.74 → 4.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +19 -18
- package/dist/cjs/src/pro/phemex.js +6 -6
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- package/js/src/pro/phemex.js +6 -6
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
|
@@ -56,7 +56,7 @@ class bitopro extends bitopro$1 {
|
|
|
56
56
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
57
57
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
58
58
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
59
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
59
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
60
60
|
*/
|
|
61
61
|
if (limit !== undefined) {
|
|
62
62
|
if ((limit !== 5) && (limit !== 10) && (limit !== 20) && (limit !== 50) && (limit !== 100) && (limit !== 500) && (limit !== 1000)) {
|
|
@@ -122,7 +122,7 @@ class bitopro extends bitopro$1 {
|
|
|
122
122
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
123
123
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
124
124
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
125
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
125
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
126
126
|
*/
|
|
127
127
|
await this.loadMarkets();
|
|
128
128
|
const market = this.market(symbol);
|
|
@@ -179,7 +179,7 @@ class bitopro extends bitopro$1 {
|
|
|
179
179
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
180
180
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
181
181
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
182
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
182
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
183
183
|
*/
|
|
184
184
|
await this.loadMarkets();
|
|
185
185
|
const market = this.market(symbol);
|
|
@@ -257,7 +257,7 @@ class bitopro extends bitopro$1 {
|
|
|
257
257
|
* @name bitopro#watchBalance
|
|
258
258
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
259
259
|
* @param {object} [params] extra parameters specific to the bitopro api endpoint
|
|
260
|
-
* @returns {object} a [balance structure]{@link https://
|
|
260
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
261
261
|
*/
|
|
262
262
|
this.checkRequiredCredentials();
|
|
263
263
|
await this.loadMarkets();
|
|
@@ -80,7 +80,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
80
80
|
* @see https://developers.bitpanda.com/exchange/#account-history-channel
|
|
81
81
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
82
82
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
83
|
-
* @returns {object} a [balance structure]{@link https://
|
|
83
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
84
84
|
*/
|
|
85
85
|
await this.authenticate(params);
|
|
86
86
|
const url = this.urls['api']['ws'];
|
|
@@ -140,7 +140,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
140
140
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
141
141
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
142
142
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
143
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
143
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
144
144
|
*/
|
|
145
145
|
await this.loadMarkets();
|
|
146
146
|
const market = this.market(symbol);
|
|
@@ -166,7 +166,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
166
166
|
* @description watches price tickers, a statistical calculation with the information for all markets or those specified.
|
|
167
167
|
* @param {string} symbols unified symbols of the markets to fetch the ticker for
|
|
168
168
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
169
|
-
* @returns {object} an array of [ticker structure]{@link https://
|
|
169
|
+
* @returns {object} an array of [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
170
170
|
*/
|
|
171
171
|
await this.loadMarkets();
|
|
172
172
|
symbols = this.marketSymbols(symbols);
|
|
@@ -264,7 +264,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
264
264
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
265
265
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
266
266
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
267
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
267
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
let messageHash = 'myTrades';
|
|
@@ -307,7 +307,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
307
307
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
308
308
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
309
309
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
310
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
310
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
311
311
|
*/
|
|
312
312
|
await this.loadMarkets();
|
|
313
313
|
const market = this.market(symbol);
|
|
@@ -426,7 +426,7 @@ class bitpanda extends bitpanda$1 {
|
|
|
426
426
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
427
427
|
* @param {object} [params] extra parameters specific to the bitpanda api endpoint
|
|
428
428
|
* @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING
|
|
429
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
429
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
430
430
|
*/
|
|
431
431
|
await this.loadMarkets();
|
|
432
432
|
let messageHash = 'orders';
|
|
@@ -59,7 +59,7 @@ class bitrue extends bitrue$1 {
|
|
|
59
59
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
60
60
|
* @see https://github.com/Bitrue-exchange/Spot-official-api-docs#balance-update
|
|
61
61
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
62
|
-
* @returns {object} a [balance structure]{@link https://
|
|
62
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
63
63
|
*/
|
|
64
64
|
const url = await this.authenticate();
|
|
65
65
|
const messageHash = 'balance';
|
|
@@ -174,7 +174,7 @@ class bitrue extends bitrue$1 {
|
|
|
174
174
|
* @param {int} [since] timestamp in ms of the earliest order
|
|
175
175
|
* @param {int} [limit] the maximum amount of orders to return
|
|
176
176
|
* @param {object} [params] extra parameters specific to the bitrue api endpoint
|
|
177
|
-
* @returns {object} A dictionary of [order structure]{@link https://
|
|
177
|
+
* @returns {object} A dictionary of [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure} indexed by market symbols
|
|
178
178
|
*/
|
|
179
179
|
await this.loadMarkets();
|
|
180
180
|
if (symbol !== undefined) {
|
|
@@ -49,7 +49,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
49
49
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
50
50
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
51
51
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
52
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
52
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
53
53
|
*/
|
|
54
54
|
await this.loadMarkets();
|
|
55
55
|
const market = this.market(symbol);
|
|
@@ -161,7 +161,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
161
161
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
162
162
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
163
163
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
164
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
164
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
165
165
|
*/
|
|
166
166
|
await this.loadMarkets();
|
|
167
167
|
const market = this.market(symbol);
|
|
@@ -268,7 +268,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
268
268
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
269
269
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
270
270
|
* @param {object} [params] extra parameters specific to the bitstamp api endpoint
|
|
271
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
271
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
272
272
|
*/
|
|
273
273
|
if (symbol === undefined) {
|
|
274
274
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -208,7 +208,7 @@ class bittrex extends bittrex$1 {
|
|
|
208
208
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
209
209
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
210
210
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
211
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
211
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
212
212
|
*/
|
|
213
213
|
await this.loadMarkets();
|
|
214
214
|
if (symbol !== undefined) {
|
|
@@ -264,7 +264,7 @@ class bittrex extends bittrex$1 {
|
|
|
264
264
|
* @name bittrex#watchBalance
|
|
265
265
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
266
266
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
267
|
-
* @returns {object} a [balance structure]{@link https://
|
|
267
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
268
268
|
*/
|
|
269
269
|
await this.loadMarkets();
|
|
270
270
|
const authentication = await this.authenticate();
|
|
@@ -333,7 +333,7 @@ class bittrex extends bittrex$1 {
|
|
|
333
333
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
334
334
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
335
335
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
336
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
336
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
337
337
|
*/
|
|
338
338
|
await this.loadMarkets();
|
|
339
339
|
const negotiation = await this.negotiate();
|
|
@@ -454,7 +454,7 @@ class bittrex extends bittrex$1 {
|
|
|
454
454
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
455
455
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
456
456
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
457
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
457
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
458
458
|
*/
|
|
459
459
|
await this.loadMarkets();
|
|
460
460
|
symbol = this.symbol(symbol);
|
|
@@ -520,7 +520,7 @@ class bittrex extends bittrex$1 {
|
|
|
520
520
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
521
521
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
522
522
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
523
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
523
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
524
524
|
*/
|
|
525
525
|
await this.loadMarkets();
|
|
526
526
|
symbol = this.symbol(symbol);
|
|
@@ -576,7 +576,7 @@ class bittrex extends bittrex$1 {
|
|
|
576
576
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
577
577
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
578
578
|
* @param {object} [params] extra parameters specific to the bittrex api endpoint
|
|
579
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
579
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
580
580
|
*/
|
|
581
581
|
limit = (limit === undefined) ? 25 : limit; // 25 by default
|
|
582
582
|
if ((limit !== 1) && (limit !== 25) && (limit !== 500)) {
|
|
@@ -57,7 +57,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
57
57
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
58
58
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
59
59
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
60
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
60
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
61
61
|
*/
|
|
62
62
|
return await this.watchPublic('ticker24h', symbol, params);
|
|
63
63
|
}
|
|
@@ -106,7 +106,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
106
106
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
107
107
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
108
108
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
109
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
109
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
110
110
|
*/
|
|
111
111
|
await this.loadMarkets();
|
|
112
112
|
symbol = this.symbol(symbol);
|
|
@@ -229,7 +229,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
229
229
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
230
230
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
231
231
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
232
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
232
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
233
233
|
*/
|
|
234
234
|
await this.loadMarkets();
|
|
235
235
|
const market = this.market(symbol);
|
|
@@ -420,7 +420,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
420
420
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
421
421
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
422
422
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
423
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
423
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
424
424
|
*/
|
|
425
425
|
if (symbol === undefined) {
|
|
426
426
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -457,7 +457,7 @@ class bitvavo extends bitvavo$1 {
|
|
|
457
457
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
458
458
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
459
459
|
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
460
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
460
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ortradeder-structure
|
|
461
461
|
*/
|
|
462
462
|
if (symbol === undefined) {
|
|
463
463
|
throw new errors.ArgumentsRequired(this.id + ' watchMyTrades requires a symbol argument');
|
|
@@ -55,7 +55,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
55
55
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
56
56
|
* @see https://exchange.blockchain.com/api/#balances
|
|
57
57
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
58
|
-
* @returns {object} a [balance structure]{@link https://
|
|
58
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
59
59
|
*/
|
|
60
60
|
await this.authenticate(params);
|
|
61
61
|
const messageHash = 'balance';
|
|
@@ -205,7 +205,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
205
205
|
* @see https://exchange.blockchain.com/api/#ticker
|
|
206
206
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
207
207
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
208
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
208
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
209
209
|
*/
|
|
210
210
|
await this.loadMarkets();
|
|
211
211
|
const market = this.market(symbol);
|
|
@@ -314,7 +314,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
314
314
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
315
315
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
316
316
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
317
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
317
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
318
318
|
*/
|
|
319
319
|
await this.loadMarkets();
|
|
320
320
|
const market = this.market(symbol);
|
|
@@ -413,7 +413,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
413
413
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
414
414
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
415
415
|
* @param {object} [params] extra parameters specific to the blockchaincom api endpoint
|
|
416
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
416
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
417
417
|
*/
|
|
418
418
|
await this.loadMarkets();
|
|
419
419
|
await this.authenticate();
|
|
@@ -627,7 +627,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
627
627
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
628
628
|
* @param {objectConstructor} [params] extra parameters specific to the blockchaincom api endpoint
|
|
629
629
|
* @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
|
|
630
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
630
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
631
631
|
*/
|
|
632
632
|
await this.loadMarkets();
|
|
633
633
|
const market = this.market(symbol);
|
|
@@ -162,7 +162,7 @@ class bybit extends bybit$1 {
|
|
|
162
162
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
163
163
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
164
164
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
165
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
165
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
166
166
|
*/
|
|
167
167
|
await this.loadMarkets();
|
|
168
168
|
const market = this.market(symbol);
|
|
@@ -423,7 +423,7 @@ class bybit extends bybit$1 {
|
|
|
423
423
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
424
424
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
425
425
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
426
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
426
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
427
427
|
*/
|
|
428
428
|
await this.loadMarkets();
|
|
429
429
|
const market = this.market(symbol);
|
|
@@ -533,7 +533,7 @@ class bybit extends bybit$1 {
|
|
|
533
533
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
534
534
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
535
535
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
536
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
536
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
539
539
|
const market = this.market(symbol);
|
|
@@ -683,7 +683,7 @@ class bybit extends bybit$1 {
|
|
|
683
683
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
684
684
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
685
685
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
686
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
686
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
687
687
|
*/
|
|
688
688
|
const method = 'watchMyTrades';
|
|
689
689
|
let messageHash = 'myTrades';
|
|
@@ -808,7 +808,7 @@ class bybit extends bybit$1 {
|
|
|
808
808
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
809
809
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
810
810
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
811
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
811
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
|
|
812
812
|
*/
|
|
813
813
|
await this.loadMarkets();
|
|
814
814
|
const method = 'watchOrders';
|
|
@@ -1090,7 +1090,7 @@ class bybit extends bybit$1 {
|
|
|
1090
1090
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1091
1091
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
|
|
1092
1092
|
* @param {object} [params] extra parameters specific to the bybit api endpoint
|
|
1093
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1093
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1094
1094
|
*/
|
|
1095
1095
|
await this.loadMarkets();
|
|
1096
1096
|
const method = 'watchBalance';
|
package/dist/cjs/src/pro/cex.js
CHANGED
|
@@ -47,7 +47,7 @@ class cex extends cex$1 {
|
|
|
47
47
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
48
48
|
* @see https://cex.io/websocket-api#get-balance
|
|
49
49
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
50
|
-
* @returns {object} a [balance structure]{@link https://
|
|
50
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
51
51
|
*/
|
|
52
52
|
await this.authenticate(params);
|
|
53
53
|
const messageHash = 'balance';
|
|
@@ -109,7 +109,7 @@ class cex extends cex$1 {
|
|
|
109
109
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
110
110
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
111
111
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
112
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
112
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
113
113
|
*/
|
|
114
114
|
await this.loadMarkets();
|
|
115
115
|
const market = this.market(symbol);
|
|
@@ -225,7 +225,7 @@ class cex extends cex$1 {
|
|
|
225
225
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
226
226
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
227
227
|
* @param {string} [params.method] public or private
|
|
228
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
228
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
229
229
|
*/
|
|
230
230
|
await this.loadMarkets();
|
|
231
231
|
const market = this.market(symbol);
|
|
@@ -262,7 +262,7 @@ class cex extends cex$1 {
|
|
|
262
262
|
* @description watches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
263
263
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
264
264
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
265
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
265
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
266
266
|
*/
|
|
267
267
|
await this.loadMarkets();
|
|
268
268
|
symbols = this.marketSymbols(symbols);
|
|
@@ -381,7 +381,7 @@ class cex extends cex$1 {
|
|
|
381
381
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
382
382
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
383
383
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
384
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
384
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
385
385
|
*/
|
|
386
386
|
if (symbol === undefined) {
|
|
387
387
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -419,7 +419,7 @@ class cex extends cex$1 {
|
|
|
419
419
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
420
420
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
421
421
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
422
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
422
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
423
423
|
*/
|
|
424
424
|
if (symbol === undefined) {
|
|
425
425
|
throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
|
|
@@ -852,7 +852,7 @@ class cex extends cex$1 {
|
|
|
852
852
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
853
853
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
854
854
|
* @param {object} [params] extra parameters specific to the cex api endpoint
|
|
855
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
855
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
856
856
|
*/
|
|
857
857
|
await this.loadMarkets();
|
|
858
858
|
await this.authenticate();
|
|
@@ -85,7 +85,7 @@ class coinbase extends coinbase$1 {
|
|
|
85
85
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-channel
|
|
86
86
|
* @param {string} [symbol] unified symbol of the market to fetch the ticker for
|
|
87
87
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
88
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
88
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
89
89
|
*/
|
|
90
90
|
const name = 'ticker';
|
|
91
91
|
return await this.subscribe(name, symbol, params);
|
|
@@ -98,7 +98,7 @@ class coinbase extends coinbase$1 {
|
|
|
98
98
|
* @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-batch-channel
|
|
99
99
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
100
100
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
101
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
101
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
102
102
|
*/
|
|
103
103
|
if (symbols === undefined) {
|
|
104
104
|
throw new errors.ArgumentsRequired(this.id + ' watchTickers requires a symbols argument');
|
|
@@ -239,7 +239,7 @@ class coinbase extends coinbase$1 {
|
|
|
239
239
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
240
240
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
241
241
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
242
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
242
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
243
243
|
*/
|
|
244
244
|
await this.loadMarkets();
|
|
245
245
|
symbol = this.symbol(symbol);
|
|
@@ -260,7 +260,7 @@ class coinbase extends coinbase$1 {
|
|
|
260
260
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
261
261
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
262
262
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
263
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
263
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
264
264
|
*/
|
|
265
265
|
await this.loadMarkets();
|
|
266
266
|
const name = 'user';
|
|
@@ -279,7 +279,7 @@ class coinbase extends coinbase$1 {
|
|
|
279
279
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
280
280
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
281
281
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
282
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
282
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
283
283
|
*/
|
|
284
284
|
await this.loadMarkets();
|
|
285
285
|
const name = 'level2';
|
|
@@ -108,7 +108,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
108
108
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
109
109
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
110
110
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
111
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
111
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
112
112
|
*/
|
|
113
113
|
const name = 'ticker';
|
|
114
114
|
return await this.subscribe(name, symbol, name, params);
|
|
@@ -122,7 +122,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
122
122
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
123
123
|
* @param {object} [params] extra parameters specific to the okx api endpoint
|
|
124
124
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
125
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
125
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
126
126
|
*/
|
|
127
127
|
await this.loadMarkets();
|
|
128
128
|
const symbolsLength = symbols.length;
|
|
@@ -146,7 +146,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
146
146
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
147
147
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
148
148
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
149
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
149
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
150
150
|
*/
|
|
151
151
|
await this.loadMarkets();
|
|
152
152
|
symbol = this.symbol(symbol);
|
|
@@ -166,7 +166,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
166
166
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
167
167
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
168
168
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
169
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
169
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
|
|
170
170
|
*/
|
|
171
171
|
this.checkRequiredSymbol('watchMyTrades', symbol);
|
|
172
172
|
await this.loadMarkets();
|
|
@@ -189,7 +189,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
189
189
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
190
190
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
191
191
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
192
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
192
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
193
193
|
*/
|
|
194
194
|
if (symbol === undefined) {
|
|
195
195
|
throw new errors.BadSymbol(this.id + ' watchMyTrades requires a symbol');
|
|
@@ -213,7 +213,7 @@ class coinbasepro extends coinbasepro$1 {
|
|
|
213
213
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
214
214
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
215
215
|
* @param {object} [params] extra parameters specific to the coinbasepro api endpoint
|
|
216
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
216
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
217
217
|
*/
|
|
218
218
|
const name = 'level2';
|
|
219
219
|
await this.loadMarkets();
|
|
@@ -224,7 +224,7 @@ class coinex extends coinex$1 {
|
|
|
224
224
|
* @name coinex#watchBalance
|
|
225
225
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
226
226
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
227
|
-
* @returns {object} a [balance structure]{@link https://
|
|
227
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
228
228
|
*/
|
|
229
229
|
await this.loadMarkets();
|
|
230
230
|
await this.authenticate(params);
|
|
@@ -406,7 +406,7 @@ class coinex extends coinex$1 {
|
|
|
406
406
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
407
407
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
408
408
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
409
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
409
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
410
410
|
*/
|
|
411
411
|
return await this.watchTickers([symbol], params);
|
|
412
412
|
}
|
|
@@ -418,7 +418,7 @@ class coinex extends coinex$1 {
|
|
|
418
418
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
419
419
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
420
420
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
421
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
421
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
422
422
|
*/
|
|
423
423
|
await this.loadMarkets();
|
|
424
424
|
symbols = this.marketSymbols(symbols);
|
|
@@ -452,7 +452,7 @@ class coinex extends coinex$1 {
|
|
|
452
452
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
453
453
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
454
454
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
455
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
455
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
456
456
|
*/
|
|
457
457
|
await this.loadMarkets();
|
|
458
458
|
const market = this.market(symbol);
|
|
@@ -483,7 +483,7 @@ class coinex extends coinex$1 {
|
|
|
483
483
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
484
484
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
485
485
|
* @param {object} [params] extra parameters specific to the coinex api endpoint
|
|
486
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
486
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
487
487
|
*/
|
|
488
488
|
await this.loadMarkets();
|
|
489
489
|
const market = this.market(symbol);
|