ccxt 4.5.60 → 4.5.61
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 +46 -45
- package/dist/ccxt.browser.min.js +4 -4
- package/dist/cjs/ccxt.js +6 -2
- package/dist/cjs/src/aftermath.js +1 -1
- package/dist/cjs/src/apex.js +2 -2
- package/dist/cjs/src/ascendex.js +1 -1
- package/dist/cjs/src/aster.js +3 -4
- package/dist/cjs/src/backpack.js +1 -1
- package/dist/cjs/src/base/Exchange.js +6 -38
- package/dist/cjs/src/base/functions/crypto.js +72 -15
- package/dist/cjs/src/base/functions/rsa.js +25 -10
- package/dist/cjs/src/base/functions.js +1 -0
- package/dist/cjs/src/bequant.js +1 -1
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +1 -1
- package/dist/cjs/src/bingx.js +1 -1
- package/dist/cjs/src/bit2c.js +1 -1
- package/dist/cjs/src/bitbank.js +1 -1
- package/dist/cjs/src/bitbns.js +1 -1
- package/dist/cjs/src/bitfinex.js +5 -5
- package/dist/cjs/src/bitflyer.js +1 -1
- package/dist/cjs/src/bitget.js +2 -2
- package/dist/cjs/src/bithumb.js +1 -1
- package/dist/cjs/src/bitmart.js +2 -2
- package/dist/cjs/src/bitmex.js +2 -2
- package/dist/cjs/src/bitopro.js +1 -1
- package/dist/cjs/src/bitrue.js +1 -1
- package/dist/cjs/src/bitso.js +2 -2
- package/dist/cjs/src/bitstamp.js +1 -1
- package/dist/cjs/src/bittrade.js +2 -2
- package/dist/cjs/src/bitvavo.js +1 -1
- package/dist/cjs/src/blockchaincom.js +1 -1
- package/dist/cjs/src/blofin.js +3 -4
- package/dist/cjs/src/btcbox.js +1 -1
- package/dist/cjs/src/btcmarkets.js +1 -1
- package/dist/cjs/src/btcturk.js +1 -1
- package/dist/cjs/src/bullish.js +1 -1
- package/dist/cjs/src/bybit.js +1 -1
- package/dist/cjs/src/bydfi.js +1 -1
- package/dist/cjs/src/cex.js +2 -2
- package/dist/cjs/src/coinbase.js +1 -1
- package/dist/cjs/src/coinbaseexchange.js +2 -2
- package/dist/cjs/src/coincheck.js +2 -2
- package/dist/cjs/src/coinex.js +1 -1
- package/dist/cjs/src/coinmate.js +1 -1
- package/dist/cjs/src/coinmetro.js +1 -1
- package/dist/cjs/src/coinone.js +1 -1
- package/dist/cjs/src/coinsph.js +1 -1
- package/dist/cjs/src/coinspot.js +1 -1
- package/dist/cjs/src/cryptocom.js +1 -1
- package/dist/cjs/src/cryptomus.js +2 -2
- package/dist/cjs/src/deepcoin.js +1 -1
- package/dist/cjs/src/delta.js +1 -1
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/derive.js +2 -3
- package/dist/cjs/src/digifinex.js +1 -1
- package/dist/cjs/src/dydx.js +2 -2
- package/dist/cjs/src/exmo.js +1 -1
- package/dist/cjs/src/extended.js +3 -3
- package/dist/cjs/src/foxbit.js +1 -1
- package/dist/cjs/src/gate.js +2 -2
- package/dist/cjs/src/gateeu.js +60 -0
- package/dist/cjs/src/gemini.js +1 -1
- package/dist/cjs/src/grvt.js +1 -1
- package/dist/cjs/src/hashkey.js +2 -2
- package/dist/cjs/src/hibachi.js +1 -1
- package/dist/cjs/src/hitbtc.js +1 -1
- package/dist/cjs/src/hollaex.js +1 -1
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/hyperliquid.js +1 -1
- package/dist/cjs/src/independentreserve.js +1 -1
- package/dist/cjs/src/indodax.js +1 -1
- package/dist/cjs/src/kraken.js +1 -1
- package/dist/cjs/src/kucoin.js +1 -1
- package/dist/cjs/src/latoken.js +1 -1
- package/dist/cjs/src/lbank.js +1 -1
- package/dist/cjs/src/lighter.js +1 -1
- package/dist/cjs/src/luno.js +2 -2
- package/dist/cjs/src/mercado.js +1 -1
- package/dist/cjs/src/mexc.js +1 -1
- package/dist/cjs/src/modetrade.js +3 -5
- package/dist/cjs/src/ndax.js +1 -1
- package/dist/cjs/src/novadax.js +1 -1
- package/dist/cjs/src/okx.js +1 -1
- package/dist/cjs/src/onetrading.js +2 -2
- package/dist/cjs/src/p2b.js +2 -3
- package/dist/cjs/src/pacifica.js +2 -2
- package/dist/cjs/src/paradex.js +1 -1
- package/dist/cjs/src/paymium.js +1 -1
- package/dist/cjs/src/phemex.js +1 -1
- package/dist/cjs/src/poloniex.js +1 -1
- package/dist/cjs/src/pro/aftermath.js +1 -1
- package/dist/cjs/src/pro/alpaca.js +1 -1
- package/dist/cjs/src/pro/apex.js +2 -2
- package/dist/cjs/src/pro/ascendex.js +1 -1
- package/dist/cjs/src/pro/aster.js +4 -4
- package/dist/cjs/src/pro/backpack.js +4 -4
- package/dist/cjs/src/pro/binance.js +5 -5
- package/dist/cjs/src/pro/bingx.js +2 -2
- package/dist/cjs/src/pro/bitfinex.js +1 -1
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +2 -2
- package/dist/cjs/src/pro/bitopro.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +1 -1
- package/dist/cjs/src/pro/bittrade.js +1 -1
- package/dist/cjs/src/pro/bitvavo.js +1 -1
- package/dist/cjs/src/pro/blockchaincom.js +1 -1
- package/dist/cjs/src/pro/blofin.js +2 -2
- package/dist/cjs/src/pro/bullish.js +1 -1
- package/dist/cjs/src/pro/bybit.js +4 -4
- package/dist/cjs/src/pro/bydfi.js +4 -4
- package/dist/cjs/src/pro/cex.js +1 -1
- package/dist/cjs/src/pro/coinbase.js +3 -3
- package/dist/cjs/src/pro/coinbaseexchange.js +2 -2
- package/dist/cjs/src/pro/coinbaseinternational.js +2 -2
- package/dist/cjs/src/pro/coincheck.js +1 -1
- package/dist/cjs/src/pro/coinex.js +2 -2
- package/dist/cjs/src/pro/coinone.js +1 -1
- package/dist/cjs/src/pro/cryptocom.js +4 -4
- package/dist/cjs/src/pro/deepcoin.js +2 -2
- package/dist/cjs/src/pro/deribit.js +2 -2
- package/dist/cjs/src/pro/derive.js +2 -2
- package/dist/cjs/src/pro/dydx.js +2 -2
- package/dist/cjs/src/pro/exmo.js +1 -1
- package/dist/cjs/src/pro/extended.js +1 -1
- package/dist/cjs/src/pro/gate.js +46 -15
- package/dist/cjs/src/pro/gateeu.js +32 -0
- package/dist/cjs/src/pro/gemini.js +2 -3
- package/dist/cjs/src/pro/grvt.js +2 -2
- package/dist/cjs/src/pro/hashkey.js +1 -1
- package/dist/cjs/src/pro/hitbtc.js +1 -1
- package/dist/cjs/src/pro/hollaex.js +1 -1
- package/dist/cjs/src/pro/htx.js +2 -2
- package/dist/cjs/src/pro/hyperliquid.js +2 -2
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +2 -2
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/lighter.js +2 -2
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/mexc.js +2 -2
- package/dist/cjs/src/pro/modetrade.js +1 -1
- package/dist/cjs/src/pro/ndax.js +1 -1
- package/dist/cjs/src/pro/okx.js +4 -4
- package/dist/cjs/src/pro/onetrading.js +1 -1
- package/dist/cjs/src/pro/p2b.js +1 -1
- package/dist/cjs/src/pro/pacifica.js +2 -2
- package/dist/cjs/src/pro/paradex.js +1 -1
- package/dist/cjs/src/pro/phemex.js +1 -1
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/toobit.js +2 -2
- package/dist/cjs/src/pro/upbit.js +1 -1
- package/dist/cjs/src/pro/weex.js +4 -4
- package/dist/cjs/src/pro/whitebit.js +1 -1
- package/dist/cjs/src/pro/woo.js +2 -2
- package/dist/cjs/src/pro/woofipro.js +1 -1
- package/dist/cjs/src/tokocrypto.js +1 -1
- package/dist/cjs/src/toobit.js +2 -2
- package/dist/cjs/src/upbit.js +1 -1
- package/dist/cjs/src/weex.js +2 -2
- package/dist/cjs/src/whitebit.js +1 -1
- package/dist/cjs/src/woo.js +1 -1
- package/dist/cjs/src/woofipro.js +2 -4
- package/dist/cjs/src/xt.js +1 -1
- package/dist/cjs/src/zaif.js +2 -2
- package/dist/cjs/src/zebpay.js +2 -2
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -3
- package/js/src/abstract/gateeu.d.ts +346 -0
- package/js/src/{static_dependencies/jsencrypt/index.js → abstract/gateeu.js} +5 -3
- package/js/src/aftermath.d.ts +1 -1
- package/js/src/aftermath.js +1 -1
- package/js/src/apex.d.ts +1 -1
- package/js/src/apex.js +2 -2
- package/js/src/ascendex.d.ts +1 -1
- package/js/src/ascendex.js +1 -1
- package/js/src/aster.d.ts +1 -1
- package/js/src/aster.js +3 -4
- package/js/src/backpack.js +1 -1
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Exchange.js +6 -38
- package/js/src/base/functions/crypto.d.ts +2 -1
- package/js/src/base/functions/crypto.js +72 -16
- package/js/src/base/functions/rsa.js +18 -7
- package/js/src/bequant.js +1 -1
- package/js/src/bigone.d.ts +1 -1
- package/js/src/bigone.js +1 -1
- package/js/src/binance.d.ts +1 -1
- package/js/src/binance.js +1 -1
- package/js/src/bingx.d.ts +1 -1
- package/js/src/bingx.js +1 -1
- package/js/src/bit2c.d.ts +1 -1
- package/js/src/bit2c.js +1 -1
- package/js/src/bitbank.d.ts +1 -1
- package/js/src/bitbank.js +1 -1
- package/js/src/bitbns.d.ts +1 -1
- package/js/src/bitbns.js +1 -1
- package/js/src/bitfinex.d.ts +1 -1
- package/js/src/bitfinex.js +5 -5
- package/js/src/bitflyer.d.ts +1 -1
- package/js/src/bitflyer.js +1 -1
- package/js/src/bitget.d.ts +1 -1
- package/js/src/bitget.js +2 -2
- package/js/src/bithumb.d.ts +1 -1
- package/js/src/bithumb.js +1 -1
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmart.js +2 -2
- package/js/src/bitmex.d.ts +1 -1
- package/js/src/bitmex.js +2 -2
- package/js/src/bitopro.d.ts +1 -1
- package/js/src/bitopro.js +1 -1
- package/js/src/bitrue.d.ts +1 -1
- package/js/src/bitrue.js +1 -1
- package/js/src/bitso.d.ts +1 -1
- package/js/src/bitso.js +2 -2
- package/js/src/bitstamp.d.ts +1 -1
- package/js/src/bitstamp.js +1 -1
- package/js/src/bittrade.d.ts +1 -1
- package/js/src/bittrade.js +2 -2
- package/js/src/bitvavo.d.ts +1 -1
- package/js/src/bitvavo.js +1 -1
- package/js/src/blockchaincom.d.ts +1 -1
- package/js/src/blockchaincom.js +1 -1
- package/js/src/blofin.d.ts +1 -1
- package/js/src/blofin.js +3 -4
- package/js/src/btcbox.d.ts +1 -1
- package/js/src/btcbox.js +1 -1
- package/js/src/btcmarkets.d.ts +1 -1
- package/js/src/btcmarkets.js +1 -1
- package/js/src/btcturk.d.ts +1 -1
- package/js/src/btcturk.js +1 -1
- package/js/src/bullish.d.ts +1 -1
- package/js/src/bullish.js +1 -1
- package/js/src/bybit.d.ts +1 -1
- package/js/src/bybit.js +1 -1
- package/js/src/bydfi.js +1 -1
- package/js/src/cex.d.ts +1 -1
- package/js/src/cex.js +2 -2
- package/js/src/coinbase.d.ts +1 -1
- package/js/src/coinbase.js +1 -1
- package/js/src/coinbaseexchange.d.ts +1 -1
- package/js/src/coinbaseexchange.js +2 -2
- package/js/src/coincheck.d.ts +1 -1
- package/js/src/coincheck.js +2 -2
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +1 -1
- package/js/src/coinmate.d.ts +1 -1
- package/js/src/coinmate.js +1 -1
- package/js/src/coinmetro.d.ts +1 -1
- package/js/src/coinmetro.js +1 -1
- package/js/src/coinone.d.ts +1 -1
- package/js/src/coinone.js +1 -1
- package/js/src/coinsph.d.ts +1 -1
- package/js/src/coinsph.js +1 -1
- package/js/src/coinspot.d.ts +1 -1
- package/js/src/coinspot.js +1 -1
- package/js/src/cryptocom.d.ts +1 -1
- package/js/src/cryptocom.js +1 -1
- package/js/src/cryptomus.d.ts +1 -1
- package/js/src/cryptomus.js +2 -2
- package/js/src/deepcoin.d.ts +1 -1
- package/js/src/deepcoin.js +1 -1
- package/js/src/delta.d.ts +1 -1
- package/js/src/delta.js +1 -1
- package/js/src/deribit.d.ts +1 -1
- package/js/src/deribit.js +1 -1
- package/js/src/derive.js +2 -3
- package/js/src/digifinex.d.ts +1 -1
- package/js/src/digifinex.js +1 -1
- package/js/src/dydx.d.ts +1 -1
- package/js/src/dydx.js +2 -2
- package/js/src/exmo.d.ts +1 -1
- package/js/src/exmo.js +1 -1
- package/js/src/extended.d.ts +1 -1
- package/js/src/extended.js +3 -3
- package/js/src/foxbit.d.ts +1 -1
- package/js/src/foxbit.js +1 -1
- package/js/src/gate.d.ts +1 -1
- package/js/src/gate.js +2 -2
- package/js/src/gateeu.d.ts +4 -0
- package/js/src/gateeu.js +59 -0
- package/js/src/gemini.d.ts +1 -1
- package/js/src/gemini.js +1 -1
- package/js/src/grvt.js +1 -1
- package/js/src/hashkey.d.ts +1 -1
- package/js/src/hashkey.js +2 -2
- package/js/src/hibachi.js +1 -1
- package/js/src/hitbtc.d.ts +1 -1
- package/js/src/hitbtc.js +1 -1
- package/js/src/hollaex.d.ts +1 -1
- package/js/src/hollaex.js +1 -1
- package/js/src/htx.d.ts +1 -1
- package/js/src/htx.js +1 -1
- package/js/src/hyperliquid.d.ts +1 -1
- package/js/src/hyperliquid.js +1 -1
- package/js/src/independentreserve.d.ts +1 -1
- package/js/src/independentreserve.js +1 -1
- package/js/src/indodax.d.ts +1 -1
- package/js/src/indodax.js +1 -1
- package/js/src/kraken.d.ts +1 -1
- package/js/src/kraken.js +1 -1
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoin.js +1 -1
- package/js/src/latoken.d.ts +1 -1
- package/js/src/latoken.js +1 -1
- package/js/src/lbank.d.ts +1 -1
- package/js/src/lbank.js +1 -1
- package/js/src/lighter.d.ts +1 -1
- package/js/src/lighter.js +1 -1
- package/js/src/luno.d.ts +1 -1
- package/js/src/luno.js +2 -2
- package/js/src/mercado.d.ts +1 -1
- package/js/src/mercado.js +1 -1
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +1 -1
- package/js/src/modetrade.d.ts +1 -1
- package/js/src/modetrade.js +3 -5
- package/js/src/ndax.d.ts +1 -1
- package/js/src/ndax.js +1 -1
- package/js/src/novadax.d.ts +1 -1
- package/js/src/novadax.js +1 -1
- package/js/src/okx.d.ts +1 -1
- package/js/src/okx.js +1 -1
- package/js/src/onetrading.d.ts +1 -1
- package/js/src/onetrading.js +2 -2
- package/js/src/p2b.d.ts +1 -1
- package/js/src/p2b.js +2 -3
- package/js/src/pacifica.d.ts +1 -1
- package/js/src/pacifica.js +2 -2
- package/js/src/paradex.d.ts +1 -1
- package/js/src/paradex.js +1 -1
- package/js/src/paymium.d.ts +1 -1
- package/js/src/paymium.js +1 -1
- package/js/src/phemex.d.ts +1 -1
- package/js/src/phemex.js +1 -1
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +1 -1
- package/js/src/pro/aftermath.d.ts +1 -1
- package/js/src/pro/aftermath.js +1 -1
- package/js/src/pro/alpaca.d.ts +1 -1
- package/js/src/pro/alpaca.js +1 -1
- package/js/src/pro/apex.d.ts +2 -2
- package/js/src/pro/apex.js +2 -2
- package/js/src/pro/ascendex.d.ts +1 -1
- package/js/src/pro/ascendex.js +1 -1
- package/js/src/pro/aster.d.ts +4 -4
- package/js/src/pro/aster.js +4 -4
- package/js/src/pro/backpack.d.ts +4 -4
- package/js/src/pro/backpack.js +4 -4
- package/js/src/pro/binance.d.ts +5 -5
- package/js/src/pro/binance.js +5 -5
- package/js/src/pro/bingx.d.ts +2 -2
- package/js/src/pro/bingx.js +2 -2
- package/js/src/pro/bitfinex.d.ts +1 -1
- package/js/src/pro/bitfinex.js +1 -1
- package/js/src/pro/bitget.d.ts +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.d.ts +4 -4
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.d.ts +2 -2
- package/js/src/pro/bitmex.js +2 -2
- package/js/src/pro/bitopro.d.ts +1 -1
- package/js/src/pro/bitopro.js +1 -1
- package/js/src/pro/bitstamp.d.ts +1 -1
- package/js/src/pro/bitstamp.js +1 -1
- package/js/src/pro/bittrade.d.ts +1 -1
- package/js/src/pro/bittrade.js +1 -1
- package/js/src/pro/bitvavo.d.ts +1 -1
- package/js/src/pro/bitvavo.js +1 -1
- package/js/src/pro/blockchaincom.d.ts +1 -1
- package/js/src/pro/blockchaincom.js +1 -1
- package/js/src/pro/blofin.d.ts +2 -2
- package/js/src/pro/blofin.js +2 -2
- package/js/src/pro/bullish.d.ts +1 -1
- package/js/src/pro/bullish.js +1 -1
- package/js/src/pro/bybit.d.ts +4 -4
- package/js/src/pro/bybit.js +4 -4
- package/js/src/pro/bydfi.d.ts +4 -4
- package/js/src/pro/bydfi.js +4 -4
- package/js/src/pro/cex.d.ts +1 -1
- package/js/src/pro/cex.js +1 -1
- package/js/src/pro/coinbase.d.ts +3 -3
- package/js/src/pro/coinbase.js +3 -3
- package/js/src/pro/coinbaseexchange.d.ts +2 -2
- package/js/src/pro/coinbaseexchange.js +2 -2
- package/js/src/pro/coinbaseinternational.d.ts +2 -2
- package/js/src/pro/coinbaseinternational.js +2 -2
- package/js/src/pro/coincheck.d.ts +1 -1
- package/js/src/pro/coincheck.js +1 -1
- package/js/src/pro/coinex.d.ts +2 -2
- package/js/src/pro/coinex.js +2 -2
- package/js/src/pro/coinone.d.ts +1 -1
- package/js/src/pro/coinone.js +1 -1
- package/js/src/pro/cryptocom.d.ts +4 -4
- package/js/src/pro/cryptocom.js +4 -4
- package/js/src/pro/deepcoin.d.ts +2 -2
- package/js/src/pro/deepcoin.js +2 -2
- package/js/src/pro/deribit.d.ts +2 -2
- package/js/src/pro/deribit.js +2 -2
- package/js/src/pro/derive.d.ts +2 -2
- package/js/src/pro/derive.js +2 -2
- package/js/src/pro/dydx.d.ts +2 -2
- package/js/src/pro/dydx.js +2 -2
- package/js/src/pro/exmo.d.ts +1 -1
- package/js/src/pro/exmo.js +1 -1
- package/js/src/pro/extended.d.ts +1 -1
- package/js/src/pro/extended.js +1 -1
- package/js/src/pro/gate.d.ts +3 -2
- package/js/src/pro/gate.js +46 -15
- package/js/src/pro/gateeu.d.ts +4 -0
- package/js/src/pro/gateeu.js +31 -0
- package/js/src/pro/gemini.d.ts +2 -2
- package/js/src/pro/gemini.js +2 -3
- package/js/src/pro/grvt.d.ts +2 -2
- package/js/src/pro/grvt.js +2 -2
- package/js/src/pro/hashkey.d.ts +1 -1
- package/js/src/pro/hashkey.js +1 -1
- package/js/src/pro/hitbtc.d.ts +1 -1
- package/js/src/pro/hitbtc.js +1 -1
- package/js/src/pro/hollaex.d.ts +1 -1
- package/js/src/pro/hollaex.js +1 -1
- package/js/src/pro/htx.d.ts +2 -2
- package/js/src/pro/htx.js +2 -2
- package/js/src/pro/hyperliquid.d.ts +2 -2
- package/js/src/pro/hyperliquid.js +2 -2
- package/js/src/pro/independentreserve.d.ts +1 -1
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.d.ts +2 -2
- package/js/src/pro/kraken.js +2 -2
- package/js/src/pro/krakenfutures.d.ts +2 -2
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.d.ts +4 -4
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/lighter.d.ts +2 -2
- package/js/src/pro/lighter.js +2 -2
- package/js/src/pro/luno.d.ts +1 -1
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/mexc.d.ts +2 -2
- package/js/src/pro/mexc.js +2 -2
- package/js/src/pro/modetrade.d.ts +1 -1
- package/js/src/pro/modetrade.js +1 -1
- package/js/src/pro/ndax.d.ts +1 -1
- package/js/src/pro/ndax.js +1 -1
- package/js/src/pro/okx.d.ts +4 -4
- package/js/src/pro/okx.js +4 -4
- package/js/src/pro/onetrading.d.ts +1 -1
- package/js/src/pro/onetrading.js +1 -1
- package/js/src/pro/p2b.d.ts +1 -1
- package/js/src/pro/p2b.js +1 -1
- package/js/src/pro/pacifica.d.ts +2 -2
- package/js/src/pro/pacifica.js +2 -2
- package/js/src/pro/paradex.d.ts +1 -1
- package/js/src/pro/paradex.js +1 -1
- package/js/src/pro/phemex.d.ts +1 -1
- package/js/src/pro/phemex.js +1 -1
- package/js/src/pro/poloniex.d.ts +1 -1
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/toobit.d.ts +2 -2
- package/js/src/pro/toobit.js +2 -2
- package/js/src/pro/upbit.d.ts +1 -1
- package/js/src/pro/upbit.js +1 -1
- package/js/src/pro/weex.d.ts +4 -4
- package/js/src/pro/weex.js +4 -4
- package/js/src/pro/whitebit.d.ts +1 -1
- package/js/src/pro/whitebit.js +1 -1
- package/js/src/pro/woo.d.ts +2 -2
- package/js/src/pro/woo.js +2 -2
- package/js/src/pro/woofipro.d.ts +1 -1
- package/js/src/pro/woofipro.js +1 -1
- package/js/src/tokocrypto.d.ts +1 -1
- package/js/src/tokocrypto.js +1 -1
- package/js/src/toobit.d.ts +1 -1
- package/js/src/toobit.js +2 -2
- package/js/src/upbit.d.ts +1 -1
- package/js/src/upbit.js +1 -1
- package/js/src/weex.d.ts +1 -1
- package/js/src/weex.js +2 -2
- package/js/src/whitebit.d.ts +1 -1
- package/js/src/whitebit.js +1 -1
- package/js/src/woo.d.ts +1 -1
- package/js/src/woo.js +1 -1
- package/js/src/woofipro.d.ts +1 -1
- package/js/src/woofipro.js +2 -4
- package/js/src/xt.js +1 -1
- package/js/src/zaif.d.ts +1 -1
- package/js/src/zaif.js +2 -2
- package/js/src/zebpay.d.ts +1 -1
- package/js/src/zebpay.js +2 -2
- package/package.json +17 -7
- package/js/src/static_dependencies/jsencrypt/JSEncrypt.d.ts +0 -116
- package/js/src/static_dependencies/jsencrypt/JSEncrypt.js +0 -194
- package/js/src/static_dependencies/jsencrypt/JSEncryptRSAKey.d.ts +0 -142
- package/js/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +0 -307
- package/js/src/static_dependencies/jsencrypt/index.d.ts +0 -3
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.d.ts +0 -51
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +0 -565
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/base64.d.ts +0 -5
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +0 -94
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/hex.d.ts +0 -3
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +0 -70
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/int10.d.ts +0 -9
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +0 -91
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/oids.d.ts +0 -9778
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/oids.js +0 -1968
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/base64.d.ts +0 -3
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +0 -25
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +0 -101
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +0 -1757
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/prng4.d.ts +0 -10
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +0 -50
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rng.d.ts +0 -3
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +0 -80
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rsa.d.ts +0 -23
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +0 -377
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/util.d.ts +0 -7
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/util.js +0 -64
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.d.ts +0 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +0 -1627
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.d.ts +0 -5
- package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +0 -75
package/js/src/pro/gate.js
CHANGED
|
@@ -13,7 +13,11 @@ import { Precise } from '../base/Precise.js';
|
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
export default class gate extends gateRest {
|
|
15
15
|
describe() {
|
|
16
|
-
|
|
16
|
+
const superDescribe = super.describe();
|
|
17
|
+
return this.deepExtend(superDescribe, this.describeData());
|
|
18
|
+
}
|
|
19
|
+
describeData() {
|
|
20
|
+
return {
|
|
17
21
|
'has': {
|
|
18
22
|
'ws': true,
|
|
19
23
|
'cancelAllOrdersWs': true,
|
|
@@ -133,7 +137,7 @@ export default class gate extends gateRest {
|
|
|
133
137
|
'broad': {},
|
|
134
138
|
},
|
|
135
139
|
},
|
|
136
|
-
}
|
|
140
|
+
};
|
|
137
141
|
}
|
|
138
142
|
/**
|
|
139
143
|
* @method
|
|
@@ -386,18 +390,19 @@ export default class gate extends gateRest {
|
|
|
386
390
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
387
391
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
388
392
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
389
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
393
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
390
394
|
*/
|
|
391
395
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
392
396
|
await this.loadMarkets();
|
|
393
397
|
const market = this.market(symbol);
|
|
394
398
|
symbol = market['symbol'];
|
|
395
399
|
const marketId = market['id'];
|
|
396
|
-
const
|
|
400
|
+
const url = this.getUrlByMarket(market);
|
|
401
|
+
const isEuUrl = url.indexOf('gateeu') >= 0;
|
|
402
|
+
const intervalDefault = (market['spot'] && !isEuUrl) ? '50' : '100ms';
|
|
397
403
|
const [interval, query] = this.handleOptionAndParams(params, 'watchOrderBook', 'interval', intervalDefault);
|
|
398
404
|
const messageType = this.getTypeByMarket(market);
|
|
399
405
|
const messageHash = 'orderbook' + ':' + symbol;
|
|
400
|
-
const url = this.getUrlByMarket(market);
|
|
401
406
|
if (limit === undefined) {
|
|
402
407
|
limit = (market['spot']) ? 50 : 100; // max 100 atm
|
|
403
408
|
if (messageType === 'options') {
|
|
@@ -406,7 +411,11 @@ export default class gate extends gateRest {
|
|
|
406
411
|
}
|
|
407
412
|
let payload = [];
|
|
408
413
|
let channel = '';
|
|
409
|
-
if (
|
|
414
|
+
if (isEuUrl) {
|
|
415
|
+
channel = 'spot.order_book_update';
|
|
416
|
+
payload = [marketId, interval];
|
|
417
|
+
}
|
|
418
|
+
else if (market['spot']) {
|
|
410
419
|
channel = 'spot.obu';
|
|
411
420
|
let finalInterval = interval;
|
|
412
421
|
if (limit === 400) {
|
|
@@ -433,26 +442,48 @@ export default class gate extends gateRest {
|
|
|
433
442
|
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
434
443
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
435
444
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
436
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
445
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
437
446
|
*/
|
|
438
447
|
async unWatchOrderBook(symbol, params = {}) {
|
|
439
448
|
await this.loadMarkets();
|
|
440
449
|
const market = this.market(symbol);
|
|
450
|
+
const url = this.getUrlByMarket(market);
|
|
441
451
|
symbol = market['symbol'];
|
|
442
452
|
const marketId = market['id'];
|
|
443
|
-
|
|
453
|
+
const isEuUrl = url.indexOf('gateeu') >= 0;
|
|
454
|
+
const intervalDefault = (market['spot'] && !isEuUrl) ? '50' : '100ms';
|
|
455
|
+
let interval = intervalDefault;
|
|
444
456
|
[interval, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'interval', interval);
|
|
445
457
|
const messageType = this.getTypeByMarket(market);
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
458
|
+
let limit = this.safeInteger(params, 'limit');
|
|
459
|
+
if (limit === undefined) {
|
|
460
|
+
limit = (market['spot']) ? 50 : 100; // max 100 atm
|
|
461
|
+
if (messageType === 'options') {
|
|
462
|
+
limit = 50; // max 50 for options
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
let payload = [];
|
|
466
|
+
let channel = '';
|
|
467
|
+
if (isEuUrl) {
|
|
468
|
+
channel = 'spot.order_book_update';
|
|
469
|
+
payload = [marketId, interval];
|
|
470
|
+
}
|
|
471
|
+
else if (market['spot']) {
|
|
472
|
+
channel = 'spot.obu';
|
|
473
|
+
let finalInterval = interval;
|
|
474
|
+
if (limit === 400) {
|
|
475
|
+
finalInterval = '400';
|
|
476
|
+
}
|
|
477
|
+
payload = ['ob.' + market['id'] + '.' + finalInterval];
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
channel = messageType + '.order_book_update';
|
|
481
|
+
payload = [marketId, interval];
|
|
453
482
|
const stringLimit = limit.toString();
|
|
454
483
|
payload.push(stringLimit);
|
|
455
484
|
}
|
|
485
|
+
const subMessageHash = 'orderbook' + ':' + symbol;
|
|
486
|
+
const messageHash = 'unsubscribe:orderbook' + ':' + symbol;
|
|
456
487
|
return await this.unSubscribePublicMultiple(url, 'orderbook', [symbol], [messageHash], [subMessageHash], payload, channel, params);
|
|
457
488
|
}
|
|
458
489
|
handleOrderBookSubscription(client, message, subscription) {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
+
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
+
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
+
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
import gate from './gate.js';
|
|
9
|
+
import gateeuRest from '../gateeu.js';
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
export default class gateeu extends gate {
|
|
12
|
+
describe() {
|
|
13
|
+
// eslint-disable-next-line new-cap
|
|
14
|
+
const restInstance = new gateeuRest();
|
|
15
|
+
const restDescribe = restInstance.describe();
|
|
16
|
+
const parentWsDescribe = super.describeData();
|
|
17
|
+
const extended = this.deepExtend(parentWsDescribe, restDescribe);
|
|
18
|
+
return this.deepExtend(extended, {
|
|
19
|
+
'id': 'gateeu',
|
|
20
|
+
'name': 'Gate EU',
|
|
21
|
+
'countries': ['EU'],
|
|
22
|
+
'certified': false,
|
|
23
|
+
'urls': {
|
|
24
|
+
'api': {
|
|
25
|
+
'ws': 'wss://ws.gateeu.com/v4',
|
|
26
|
+
'spot': 'wss://api.gateeu.com/ws/v4/',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
package/js/src/pro/gemini.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export default class gemini extends geminiRest {
|
|
|
53
53
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
54
54
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
55
55
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
56
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
56
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
57
57
|
*/
|
|
58
58
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
59
59
|
handleOrderBook(client: Client, message: any): void;
|
|
@@ -65,7 +65,7 @@ export default class gemini extends geminiRest {
|
|
|
65
65
|
* @param {string[]} symbols unified array of symbols
|
|
66
66
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
67
67
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
68
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
68
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
69
69
|
*/
|
|
70
70
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
71
71
|
/**
|
package/js/src/pro/gemini.js
CHANGED
|
@@ -28,7 +28,6 @@ export default class gemini extends geminiRest {
|
|
|
28
28
|
'watchOrderBookForSymbols': true,
|
|
29
29
|
'watchOHLCV': true,
|
|
30
30
|
},
|
|
31
|
-
'hostname': 'api.gemini.com',
|
|
32
31
|
'urls': {
|
|
33
32
|
'api': {
|
|
34
33
|
'ws': 'wss://api.gemini.com',
|
|
@@ -359,7 +358,7 @@ export default class gemini extends geminiRest {
|
|
|
359
358
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
360
359
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
361
360
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
362
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
361
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
363
362
|
*/
|
|
364
363
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
365
364
|
await this.loadMarkets();
|
|
@@ -414,7 +413,7 @@ export default class gemini extends geminiRest {
|
|
|
414
413
|
* @param {string[]} symbols unified array of symbols
|
|
415
414
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
416
415
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
417
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
416
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
418
417
|
*/
|
|
419
418
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
420
419
|
const orderbook = await this.helperForWatchMultipleConstruct('orderbook', symbols, params);
|
package/js/src/pro/grvt.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export default class grvt extends grvtRest {
|
|
|
91
91
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
92
92
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
93
93
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
94
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
94
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
95
95
|
*/
|
|
96
96
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
97
97
|
/**
|
|
@@ -103,7 +103,7 @@ export default class grvt extends grvtRest {
|
|
|
103
103
|
* @param {string[]} symbols unified array of symbols
|
|
104
104
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
105
105
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
106
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
107
107
|
*/
|
|
108
108
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
109
109
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/grvt.js
CHANGED
|
@@ -475,7 +475,7 @@ export default class grvt extends grvtRest {
|
|
|
475
475
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
476
476
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
477
477
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
478
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
478
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
479
479
|
*/
|
|
480
480
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
481
481
|
await this.loadMarkets();
|
|
@@ -491,7 +491,7 @@ export default class grvt extends grvtRest {
|
|
|
491
491
|
* @param {string[]} symbols unified array of symbols
|
|
492
492
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
493
493
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
494
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
494
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
495
495
|
*/
|
|
496
496
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
497
497
|
await this.loadMarkets();
|
package/js/src/pro/hashkey.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export default class hashkey extends hashkeyRest {
|
|
|
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 exchange API endpoint
|
|
59
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
59
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
60
60
|
*/
|
|
61
61
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
62
62
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/hashkey.js
CHANGED
|
@@ -296,7 +296,7 @@ export default class hashkey extends hashkeyRest {
|
|
|
296
296
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
297
297
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
298
298
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
299
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
299
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
300
300
|
*/
|
|
301
301
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
302
302
|
await this.loadMarkets();
|
package/js/src/pro/hitbtc.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export default class hitbtc extends hitbtcRest {
|
|
|
52
52
|
* @param {string} [params.method] 'orderbook/full', 'orderbook/{depth}/{speed}', 'orderbook/{depth}/{speed}/batch'
|
|
53
53
|
* @param {int} [params.depth] 5 , 10, or 20 (default)
|
|
54
54
|
* @param {int} [params.speed] 100 (default), 500, or 1000
|
|
55
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
55
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
56
56
|
*/
|
|
57
57
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
58
58
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/hitbtc.js
CHANGED
|
@@ -212,7 +212,7 @@ export default class hitbtc extends hitbtcRest {
|
|
|
212
212
|
* @param {string} [params.method] 'orderbook/full', 'orderbook/{depth}/{speed}', 'orderbook/{depth}/{speed}/batch'
|
|
213
213
|
* @param {int} [params.depth] 5 , 10, or 20 (default)
|
|
214
214
|
* @param {int} [params.speed] 100 (default), 500, or 1000
|
|
215
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
215
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
216
216
|
*/
|
|
217
217
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
218
218
|
const options = this.safeValue(this.options, 'watchOrderBook');
|
package/js/src/pro/hollaex.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export default class hollaex extends hollaexRest {
|
|
|
11
11
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
12
12
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
13
13
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
14
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
15
15
|
*/
|
|
16
16
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
17
17
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/hollaex.js
CHANGED
|
@@ -62,7 +62,7 @@ export default class hollaex extends hollaexRest {
|
|
|
62
62
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
63
63
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
64
64
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
65
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
65
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
66
66
|
*/
|
|
67
67
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
68
68
|
await this.loadMarkets();
|
package/js/src/pro/htx.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export default class htx extends htxRest {
|
|
|
94
94
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
95
95
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
96
96
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
97
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
97
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
98
98
|
*/
|
|
99
99
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
100
100
|
/**
|
|
@@ -107,7 +107,7 @@ export default class htx extends htxRest {
|
|
|
107
107
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
108
108
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
109
109
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
110
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
110
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
111
111
|
*/
|
|
112
112
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
113
113
|
handleOrderBookSnapshot(client: Client, message: any, subscription: any): void;
|
package/js/src/pro/htx.js
CHANGED
|
@@ -410,7 +410,7 @@ export default class htx extends htxRest {
|
|
|
410
410
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
411
411
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
412
412
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
413
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
413
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
414
414
|
*/
|
|
415
415
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
416
416
|
await this.loadMarkets();
|
|
@@ -455,7 +455,7 @@ export default class htx extends htxRest {
|
|
|
455
455
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
456
456
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
457
457
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
458
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
458
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
459
459
|
*/
|
|
460
460
|
async unWatchOrderBook(symbol, params = {}) {
|
|
461
461
|
await this.loadMarkets();
|
|
@@ -89,7 +89,7 @@ export default class hyperliquid extends hyperliquidRest {
|
|
|
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 exchange API endpoint
|
|
92
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
92
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
93
93
|
*/
|
|
94
94
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
95
95
|
/**
|
|
@@ -99,7 +99,7 @@ export default class hyperliquid extends hyperliquidRest {
|
|
|
99
99
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
100
100
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
101
101
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
102
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
102
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
103
103
|
*/
|
|
104
104
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
105
105
|
handleOrderBook(client: any, message: any): void;
|
|
@@ -213,7 +213,7 @@ export default class hyperliquid extends hyperliquidRest {
|
|
|
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 exchange API endpoint
|
|
216
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
216
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
217
217
|
*/
|
|
218
218
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
219
219
|
await this.loadMarkets();
|
|
@@ -239,7 +239,7 @@ export default class hyperliquid extends hyperliquidRest {
|
|
|
239
239
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
240
240
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
241
241
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
242
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
242
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
243
243
|
*/
|
|
244
244
|
async unWatchOrderBook(symbol, params = {}) {
|
|
245
245
|
await this.loadMarkets();
|
|
@@ -23,7 +23,7 @@ export default class independentreserve extends independentreserveRest {
|
|
|
23
23
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
24
24
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
25
25
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
26
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
26
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
27
27
|
*/
|
|
28
28
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
29
29
|
handleOrderBook(client: Client, message: any): void;
|
|
@@ -129,7 +129,7 @@ export default class independentreserve extends independentreserveRest {
|
|
|
129
129
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
130
130
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
131
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
132
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
133
133
|
*/
|
|
134
134
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
135
135
|
await this.loadMarkets();
|
package/js/src/pro/kraken.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export default class kraken extends krakenRest {
|
|
|
134
134
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
135
135
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
136
136
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
137
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
137
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
138
138
|
*/
|
|
139
139
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
140
140
|
/**
|
|
@@ -145,7 +145,7 @@ export default class kraken extends krakenRest {
|
|
|
145
145
|
* @param {string[]} symbols unified array of symbols
|
|
146
146
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
147
147
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
148
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
148
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
149
149
|
*/
|
|
150
150
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
151
151
|
/**
|
package/js/src/pro/kraken.js
CHANGED
|
@@ -752,7 +752,7 @@ export default class kraken extends krakenRest {
|
|
|
752
752
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
753
753
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
754
754
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
755
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
755
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
756
756
|
*/
|
|
757
757
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
758
758
|
return await this.watchOrderBookForSymbols([symbol], limit, params);
|
|
@@ -765,7 +765,7 @@ export default class kraken extends krakenRest {
|
|
|
765
765
|
* @param {string[]} symbols unified array of symbols
|
|
766
766
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
767
767
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
768
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
768
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
769
769
|
*/
|
|
770
770
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
771
771
|
const requiredParams = {};
|
|
@@ -19,7 +19,7 @@ export default class krakenfutures extends krakenfuturesRest {
|
|
|
19
19
|
* @param {string[]} symbols unified array of symbols
|
|
20
20
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
21
21
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
22
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
22
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
23
23
|
*/
|
|
24
24
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
25
25
|
/**
|
|
@@ -104,7 +104,7 @@ export default class krakenfutures extends krakenfuturesRest {
|
|
|
104
104
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
105
105
|
* @param {int} [limit] not used by krakenfutures watchOrderBook
|
|
106
106
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
107
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
107
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
108
108
|
*/
|
|
109
109
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
110
110
|
/**
|
|
@@ -98,7 +98,7 @@ export default class krakenfutures extends krakenfuturesRest {
|
|
|
98
98
|
* @param {string[]} symbols unified array of symbols
|
|
99
99
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
100
100
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
101
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
101
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
102
102
|
*/
|
|
103
103
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
104
104
|
const orderbook = await this.watchMultiHelper('orderbook', 'book', symbols, { 'limit': limit }, params);
|
|
@@ -256,7 +256,7 @@ export default class krakenfutures extends krakenfuturesRest {
|
|
|
256
256
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
257
257
|
* @param {int} [limit] not used by krakenfutures watchOrderBook
|
|
258
258
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
259
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
259
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
260
260
|
*/
|
|
261
261
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
262
262
|
return await this.watchOrderBookForSymbols([symbol], limit, params);
|
package/js/src/pro/kucoin.d.ts
CHANGED
|
@@ -178,7 +178,7 @@ export default class kucoin extends kucoinRest {
|
|
|
178
178
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
179
179
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), default is false
|
|
180
180
|
* @param {string} [params.method] either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
|
|
181
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
181
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
182
182
|
*/
|
|
183
183
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
184
184
|
/**
|
|
@@ -193,7 +193,7 @@ export default class kucoin extends kucoinRest {
|
|
|
193
193
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
194
194
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), default is false
|
|
195
195
|
* @param {string} [params.method] either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
|
|
196
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
196
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
197
197
|
*/
|
|
198
198
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
199
199
|
/**
|
|
@@ -210,7 +210,7 @@ export default class kucoin extends kucoinRest {
|
|
|
210
210
|
* @param {string[]} symbols unified array of symbols
|
|
211
211
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
212
212
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
213
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
213
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
214
214
|
*/
|
|
215
215
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
216
216
|
/**
|
|
@@ -226,7 +226,7 @@ export default class kucoin extends kucoinRest {
|
|
|
226
226
|
* @param {string[]} symbols unified array of symbols
|
|
227
227
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
228
228
|
* @param {string} [params.method] either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' or '/contractMarket/level2' or '/contractMarket/level2Depth5' or '/contractMarket/level2Depth50' default is '/market/level2' for spot and '/contractMarket/level2' for futures
|
|
229
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
229
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
230
230
|
*/
|
|
231
231
|
unWatchOrderBookForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
232
232
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/kucoin.js
CHANGED
|
@@ -1338,7 +1338,7 @@ export default class kucoin extends kucoinRest {
|
|
|
1338
1338
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1339
1339
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), default is false
|
|
1340
1340
|
* @param {string} [params.method] either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
|
|
1341
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1341
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1342
1342
|
*/
|
|
1343
1343
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1344
1344
|
//
|
|
@@ -1394,7 +1394,7 @@ export default class kucoin extends kucoinRest {
|
|
|
1394
1394
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1395
1395
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), default is false
|
|
1396
1396
|
* @param {string} [params.method] either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
|
|
1397
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1397
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1398
1398
|
*/
|
|
1399
1399
|
async unWatchOrderBook(symbol, params = {}) {
|
|
1400
1400
|
let uta = false;
|
|
@@ -1436,7 +1436,7 @@ export default class kucoin extends kucoinRest {
|
|
|
1436
1436
|
* @param {string[]} symbols unified array of symbols
|
|
1437
1437
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1438
1438
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1439
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1439
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1440
1440
|
*/
|
|
1441
1441
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
1442
1442
|
const symbolsLength = symbols.length;
|
|
@@ -1498,7 +1498,7 @@ export default class kucoin extends kucoinRest {
|
|
|
1498
1498
|
* @param {string[]} symbols unified array of symbols
|
|
1499
1499
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1500
1500
|
* @param {string} [params.method] either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' or '/contractMarket/level2' or '/contractMarket/level2Depth5' or '/contractMarket/level2Depth50' default is '/market/level2' for spot and '/contractMarket/level2' for futures
|
|
1501
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1501
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1502
1502
|
*/
|
|
1503
1503
|
async unWatchOrderBookForSymbols(symbols, params = {}) {
|
|
1504
1504
|
const limit = this.safeInteger(params, 'limit');
|
package/js/src/pro/lighter.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default class lighter extends lighterRest {
|
|
|
20
20
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
21
21
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
22
22
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
23
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
23
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
24
24
|
*/
|
|
25
25
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
26
26
|
/**
|
|
@@ -30,7 +30,7 @@ export default class lighter extends lighterRest {
|
|
|
30
30
|
* @see https://apidocs.lighter.xyz/docs/websocket-reference#order-book
|
|
31
31
|
* @param {string} symbol unified symbol of the market
|
|
32
32
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
33
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
33
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
34
34
|
*/
|
|
35
35
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
36
36
|
handleTicker(client: Client, message: any): void;
|
package/js/src/pro/lighter.js
CHANGED
|
@@ -183,7 +183,7 @@ export default class lighter extends lighterRest {
|
|
|
183
183
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
184
184
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
185
185
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
186
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
186
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
187
187
|
*/
|
|
188
188
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
189
189
|
await this.loadMarkets();
|
|
@@ -202,7 +202,7 @@ export default class lighter extends lighterRest {
|
|
|
202
202
|
* @see https://apidocs.lighter.xyz/docs/websocket-reference#order-book
|
|
203
203
|
* @param {string} symbol unified symbol of the market
|
|
204
204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
205
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
206
206
|
*/
|
|
207
207
|
async unWatchOrderBook(symbol, params = {}) {
|
|
208
208
|
await this.loadMarkets();
|
package/js/src/pro/luno.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export default class luno extends lunoRest {
|
|
|
25
25
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
26
26
|
* @param {objectConstructor} [params] extra parameters specific to the exchange API endpoint
|
|
27
27
|
* @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
|
|
28
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
28
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
29
29
|
*/
|
|
30
30
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
31
31
|
handleOrderBook(client: Client, message: any, subscription: any): void;
|
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 exchange 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://docs.ccxt.com/?id=order-book-structure}
|
|
143
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
144
144
|
*/
|
|
145
145
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
146
146
|
this.checkRequiredCredentials();
|