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
|
@@ -9,6 +9,7 @@ export type { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balan
|
|
|
9
9
|
* @class Exchange
|
|
10
10
|
*/
|
|
11
11
|
export default class Exchange {
|
|
12
|
+
static ccxtVersion: string;
|
|
12
13
|
options: Dict;
|
|
13
14
|
isSandboxModeEnabled: boolean;
|
|
14
15
|
api: Dictionary<any>;
|
|
@@ -302,7 +303,6 @@ export default class Exchange {
|
|
|
302
303
|
loadExchangeSpecificFiles(): Promise<void>;
|
|
303
304
|
uuid5(namespace: string, name: string): string;
|
|
304
305
|
encodeURIComponent(...args: any[]): string;
|
|
305
|
-
checkRequiredVersion(requiredVersion: any, error?: boolean): boolean;
|
|
306
306
|
throttle(cost?: Num): any;
|
|
307
307
|
initThrottler(): void;
|
|
308
308
|
defineRestApiEndpoint(methodName: any, uppercaseMethod: any, lowercaseMethod: any, camelcaseMethod: any, path: any, paths: any, config?: {}): void;
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -27,7 +27,6 @@ import { OrderBook as WsOrderBook, IndexedOrderBook, CountedOrderBook } from './
|
|
|
27
27
|
import { totp } from './functions/totp.js';
|
|
28
28
|
import ethers from '../static_dependencies/ethers/index.js';
|
|
29
29
|
import { TypedDataEncoder } from '../static_dependencies/ethers/hash/index.js';
|
|
30
|
-
import { SecureRandom } from '../static_dependencies/jsencrypt/lib/jsbn/rng.js';
|
|
31
30
|
import init, * as zklink from '../static_dependencies/zklink/zklink-sdk-web.js';
|
|
32
31
|
import * as Starknet from '../static_dependencies/starknet/index.js';
|
|
33
32
|
import { exportMnemonicAndPrivateKey, deriveHDKeyFromMnemonic } from '../static_dependencies/dydx-v4-client/onboarding.js';
|
|
@@ -49,6 +48,8 @@ let SignMode = undefined;
|
|
|
49
48
|
* @class Exchange
|
|
50
49
|
*/
|
|
51
50
|
export default class Exchange {
|
|
51
|
+
// this is updated by vss.js when building
|
|
52
|
+
static { this.ccxtVersion = '4.5.60'; }
|
|
52
53
|
constructor(userConfig = {}) {
|
|
53
54
|
this.isSandboxModeEnabled = false;
|
|
54
55
|
this.api = undefined;
|
|
@@ -270,7 +271,7 @@ export default class Exchange {
|
|
|
270
271
|
// if (isNode) {
|
|
271
272
|
// this.nodeVersion = process.version.match (/\d+\.\d+\.\d+/)[0]
|
|
272
273
|
// this.userAgent = {
|
|
273
|
-
// 'User-Agent': 'ccxt/' +
|
|
274
|
+
// 'User-Agent': 'ccxt/' + Exchange.ccxtVersion +
|
|
274
275
|
// ' (+https://github.com/ccxt/ccxt)' +
|
|
275
276
|
// ' Node.js/' + this.nodeVersion + ' (JavaScript)'
|
|
276
277
|
// }
|
|
@@ -417,37 +418,6 @@ export default class Exchange {
|
|
|
417
418
|
// @ts-expect-error
|
|
418
419
|
return encodeURIComponent(...args);
|
|
419
420
|
}
|
|
420
|
-
checkRequiredVersion(requiredVersion, error = true) {
|
|
421
|
-
let result = true;
|
|
422
|
-
const [major1, minor1, patch1] = requiredVersion.split('.');
|
|
423
|
-
const [major2, minor2, patch2] = Exchange.ccxtVersion.split('.');
|
|
424
|
-
const intMajor1 = this.parseToInt(major1);
|
|
425
|
-
const intMinor1 = this.parseToInt(minor1);
|
|
426
|
-
const intPatch1 = this.parseToInt(patch1);
|
|
427
|
-
const intMajor2 = this.parseToInt(major2);
|
|
428
|
-
const intMinor2 = this.parseToInt(minor2);
|
|
429
|
-
const intPatch2 = this.parseToInt(patch2);
|
|
430
|
-
if (intMajor1 > intMajor2) {
|
|
431
|
-
result = false;
|
|
432
|
-
}
|
|
433
|
-
if (intMajor1 === intMajor2) {
|
|
434
|
-
if (intMinor1 > intMinor2) {
|
|
435
|
-
result = false;
|
|
436
|
-
}
|
|
437
|
-
else if (intMinor1 === intMinor2 && intPatch1 > intPatch2) {
|
|
438
|
-
result = false;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
if (!result) {
|
|
442
|
-
if (error) {
|
|
443
|
-
throw new NotSupported('Your current version of CCXT is ' + Exchange.ccxtVersion + ', a newer version ' + requiredVersion + ' is required, please, upgrade your version of CCXT');
|
|
444
|
-
}
|
|
445
|
-
else {
|
|
446
|
-
return error;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return result;
|
|
450
|
-
}
|
|
451
421
|
throttle(cost = undefined) {
|
|
452
422
|
return this.throttler.throttle(cost);
|
|
453
423
|
}
|
|
@@ -1593,11 +1563,9 @@ export default class Exchange {
|
|
|
1593
1563
|
return dict;
|
|
1594
1564
|
}
|
|
1595
1565
|
randomBytes(length) {
|
|
1596
|
-
const
|
|
1597
|
-
|
|
1598
|
-
x
|
|
1599
|
-
rng.nextBytes(x);
|
|
1600
|
-
return Buffer.from(x).toString('hex');
|
|
1566
|
+
const x = new Uint8Array(length);
|
|
1567
|
+
crypto.getRandomValues(x);
|
|
1568
|
+
return this.binaryToBase16(x);
|
|
1601
1569
|
}
|
|
1602
1570
|
randNumber(size) {
|
|
1603
1571
|
let number = '';
|
|
@@ -4,6 +4,7 @@ import type { EdDSA as CurveFnEDDSA } from '@noble/curves/abstract/edwards.js';
|
|
|
4
4
|
type Input = string | Uint8Array;
|
|
5
5
|
type Hex = string | Uint8Array;
|
|
6
6
|
type Digest = 'binary' | 'hex' | 'base64';
|
|
7
|
+
declare function pemToDer(pem: string): Uint8Array;
|
|
7
8
|
declare const hash: (request: Input, hash: CHash, digest?: Digest) => any;
|
|
8
9
|
declare const hmac: (request: Input, secret: Input, hash: CHash, digest?: Digest) => any;
|
|
9
10
|
declare function ecdsa(request: Hex, secret: Hex, curve: CurveFn, prehash?: CHash, fixedLength?: boolean): {
|
|
@@ -13,4 +14,4 @@ declare function ecdsa(request: Hex, secret: Hex, curve: CurveFn, prehash?: CHas
|
|
|
13
14
|
};
|
|
14
15
|
declare function eddsa(request: Hex, secret: Input, curve: CurveFnEDDSA): string;
|
|
15
16
|
declare function crc32(str: any, signed?: boolean): number;
|
|
16
|
-
export { hash, hmac, crc32, ecdsa, eddsa, };
|
|
17
|
+
export { hash, hmac, crc32, ecdsa, eddsa, pemToDer, };
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
import { hmac as _hmac } from '@noble/hashes/hmac.js';
|
|
9
9
|
import { hex as base16, base64 } from '@scure/base';
|
|
10
10
|
import { utf8ToBytes } from '@noble/hashes/utils.js';
|
|
11
|
-
import { Base64 } from '../../static_dependencies/jsencrypt/lib/asn1js/base64.js';
|
|
12
|
-
import { ASN1 } from "../../static_dependencies/jsencrypt/lib/asn1js/asn1.js";
|
|
13
11
|
import { secp256k1 } from '@noble/curves/secp256k1.js';
|
|
14
12
|
import { p256 as P256 } from '@noble/curves/nist.js';
|
|
15
13
|
import { numberToBytesLE, hexToBytes } from '@noble/curves/utils.js';
|
|
@@ -26,6 +24,62 @@ const supportedCurve = {
|
|
|
26
24
|
'1.3.132.0.10': secp256k1,
|
|
27
25
|
'1.2.840.10045.3.1.7': P256,
|
|
28
26
|
};
|
|
27
|
+
/* ----- minimal PEM / DER helpers (replace the vendored jsencrypt asn1js) ----- */
|
|
28
|
+
// strip the PEM armor (-----BEGIN/END ...-----) and base64-decode the body to DER bytes
|
|
29
|
+
function pemToDer(pem) {
|
|
30
|
+
const body = pem
|
|
31
|
+
.replace(/-----BEGIN [^-]+-----/g, '')
|
|
32
|
+
.replace(/-----END [^-]+-----/g, '')
|
|
33
|
+
.replace(/\s+/g, '');
|
|
34
|
+
return base64.decode(body);
|
|
35
|
+
}
|
|
36
|
+
// read a definite-form DER length, returns [ length, nextOffset ]
|
|
37
|
+
function readDerLength(bytes, offset) {
|
|
38
|
+
let length = bytes[offset];
|
|
39
|
+
offset += 1;
|
|
40
|
+
if (length & 0x80) {
|
|
41
|
+
const numBytes = length & 0x7f;
|
|
42
|
+
length = 0;
|
|
43
|
+
for (let i = 0; i < numBytes; i++) {
|
|
44
|
+
length = (length * 256) + bytes[offset];
|
|
45
|
+
offset += 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return [length, offset];
|
|
49
|
+
}
|
|
50
|
+
// parse a DER buffer into a flat list of its top-level TLV elements
|
|
51
|
+
function parseDerElements(bytes) {
|
|
52
|
+
const elements = [];
|
|
53
|
+
let offset = 0;
|
|
54
|
+
while (offset < bytes.length) {
|
|
55
|
+
const tag = bytes[offset];
|
|
56
|
+
offset += 1;
|
|
57
|
+
const result = readDerLength(bytes, offset);
|
|
58
|
+
const length = result[0];
|
|
59
|
+
offset = result[1];
|
|
60
|
+
const content = bytes.slice(offset, offset + length);
|
|
61
|
+
elements.push({ 'tag': tag, 'content': content });
|
|
62
|
+
offset += length;
|
|
63
|
+
}
|
|
64
|
+
return elements;
|
|
65
|
+
}
|
|
66
|
+
// decode an OID's content bytes into a dotted-decimal string
|
|
67
|
+
function decodeOid(bytes) {
|
|
68
|
+
const values = [];
|
|
69
|
+
const first = bytes[0];
|
|
70
|
+
values.push(Math.floor(first / 40));
|
|
71
|
+
values.push(first % 40);
|
|
72
|
+
let value = 0;
|
|
73
|
+
for (let i = 1; i < bytes.length; i++) {
|
|
74
|
+
const b = bytes[i];
|
|
75
|
+
value = (value * 128) + (b & 0x7f);
|
|
76
|
+
if ((b & 0x80) === 0) {
|
|
77
|
+
values.push(value);
|
|
78
|
+
value = 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return values.join('.');
|
|
82
|
+
}
|
|
29
83
|
/* ............................................. */
|
|
30
84
|
const hash = (request, hash, digest = 'hex') => {
|
|
31
85
|
const binary = hash(utf8Bytes(request));
|
|
@@ -44,22 +98,24 @@ function ecdsa(request, secret, curve, prehash = null, fixedLength = false) {
|
|
|
44
98
|
if (typeof secret === 'string' && secret.length > 64) {
|
|
45
99
|
// decode pem key
|
|
46
100
|
if (secret.startsWith('-----BEGIN EC PRIVATE KEY-----')) {
|
|
47
|
-
const der =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
101
|
+
const der = pemToDer(secret);
|
|
102
|
+
const top = parseDerElements(der);
|
|
103
|
+
// ECPrivateKey ::= SEQUENCE {
|
|
104
|
+
// version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1),
|
|
105
|
+
// privateKey OCTET STRING,
|
|
106
|
+
// parameters [0] ECParameters {{ NamedCurve }} OPTIONAL,
|
|
107
|
+
// publicKey [1] BIT STRING OPTIONAL
|
|
108
|
+
// }
|
|
109
|
+
const fields = parseDerElements(top[0].content);
|
|
110
|
+
if (fields.length === 4) {
|
|
111
|
+
const params = fields[2];
|
|
112
|
+
if (params !== undefined && params.tag === 0xA0 && params.content.length > 0) {
|
|
113
|
+
const oid = decodeOid(parseDerElements(params.content)[0].content);
|
|
58
114
|
if (supportedCurve[oid] === undefined)
|
|
59
115
|
throw new Error('Unsupported curve');
|
|
60
116
|
curve = supportedCurve[oid];
|
|
61
117
|
}
|
|
62
|
-
secret =
|
|
118
|
+
secret = base16.encode(fields[1].content);
|
|
63
119
|
}
|
|
64
120
|
else {
|
|
65
121
|
// maybe return false
|
|
@@ -107,7 +163,7 @@ function eddsa(request, secret, curve) {
|
|
|
107
163
|
else if (typeof secret === 'string') {
|
|
108
164
|
// secret is the base64 pem encoded key
|
|
109
165
|
// we get the last 32 bytes
|
|
110
|
-
privateKey = new Uint8Array(
|
|
166
|
+
privateKey = new Uint8Array(pemToDer(secret).slice(16));
|
|
111
167
|
}
|
|
112
168
|
const signature = curve.sign(hexBytes(request), privateKey);
|
|
113
169
|
return base64.encode(signature);
|
|
@@ -134,5 +190,5 @@ function crc32(str, signed = false) {
|
|
|
134
190
|
}
|
|
135
191
|
}
|
|
136
192
|
/* ------------------------------------------------------------------------ */
|
|
137
|
-
export { hash, hmac, crc32, ecdsa, eddsa, };
|
|
193
|
+
export { hash, hmac, crc32, ecdsa, eddsa, pemToDer, };
|
|
138
194
|
/* ------------------------------------------------------------------------ */
|
|
@@ -4,21 +4,32 @@
|
|
|
4
4
|
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
5
|
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { hex as base16, utf8 } from '@scure/base';
|
|
7
|
+
import crypto from 'crypto';
|
|
8
|
+
import { utf8 } from '@scure/base';
|
|
10
9
|
import { urlencodeBase64, base16ToBinary, base64ToBinary, base64ToBase64Url } from './encode.js';
|
|
11
10
|
import { eddsa, hmac } from './crypto.js';
|
|
12
11
|
import { p256 as P256 } from '@noble/curves/nist.js';
|
|
13
12
|
import { ecdsa } from '../../base/functions/crypto.js';
|
|
14
13
|
import { ed25519 } from "@noble/curves/ed25519.js";
|
|
14
|
+
// RSASSA-PKCS1-v1_5 signing via Node's built-in `crypto` module. This is synchronous
|
|
15
|
+
// and works in Node.js / Bun / Deno (anything exposing node:crypto). It is NOT available
|
|
16
|
+
// in the browser bundle (rspack stubs the `crypto` module), so rsa throws there: RSA
|
|
17
|
+
// signing is currently unsupported in the browser.
|
|
15
18
|
function rsa(request, secret, hash) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
if (crypto === undefined || crypto.createSign === undefined) {
|
|
20
|
+
throw new Error('rsa is currently not supported in the browser');
|
|
21
|
+
}
|
|
19
22
|
// @noble/hashes v2 renamed the digest classes from SHA256 to _SHA256, etc
|
|
20
23
|
const name = (hash.create()).constructor.name.toLowerCase().replace('_', '');
|
|
21
|
-
|
|
24
|
+
const algorithms = {
|
|
25
|
+
'sha256': 'RSA-SHA256',
|
|
26
|
+
'sha384': 'RSA-SHA384',
|
|
27
|
+
'sha512': 'RSA-SHA512',
|
|
28
|
+
};
|
|
29
|
+
const algorithm = algorithms[name];
|
|
30
|
+
const signer = crypto.createSign(algorithm);
|
|
31
|
+
signer.update(request);
|
|
32
|
+
return signer.sign(secret, 'base64');
|
|
22
33
|
}
|
|
23
34
|
function jwt(request, secret, hash, isRSA = false, opts = {}) {
|
|
24
35
|
let alg = (isRSA ? 'RS' : 'HS') + (hash.outputLen * 8);
|
package/js/src/bequant.js
CHANGED
|
@@ -23,7 +23,7 @@ export default class bequant extends hitbtc {
|
|
|
23
23
|
'option': undefined,
|
|
24
24
|
},
|
|
25
25
|
'urls': {
|
|
26
|
-
'logo': 'https://github.com/user-attachments/assets/
|
|
26
|
+
'logo': 'https://github.com/user-attachments/assets/01e199a6-5c65-4b03-83ab-7f9827c140f9',
|
|
27
27
|
'api': {
|
|
28
28
|
// v3
|
|
29
29
|
'public': 'https://api.bequant.io/api/3',
|
package/js/src/bigone.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export default class bigone extends Exchange {
|
|
|
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
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
68
68
|
parseContractBidsAsks(bidsAsks: any): any[];
|
package/js/src/bigone.js
CHANGED
|
@@ -1028,7 +1028,7 @@ export default class bigone extends Exchange {
|
|
|
1028
1028
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1029
1029
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1030
1030
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1031
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1031
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1032
1032
|
*/
|
|
1033
1033
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1034
1034
|
await this.loadMarkets();
|
package/js/src/binance.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export default class binance extends Exchange {
|
|
|
97
97
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
98
98
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
99
99
|
* @param {boolean} [params.rpi] *future only* set to true to use the RPI endpoint
|
|
100
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
100
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
101
101
|
*/
|
|
102
102
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
103
103
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/binance.js
CHANGED
|
@@ -4128,7 +4128,7 @@ export default class binance extends Exchange {
|
|
|
4128
4128
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
4129
4129
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4130
4130
|
* @param {boolean} [params.rpi] *future only* set to true to use the RPI endpoint
|
|
4131
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
4131
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
4132
4132
|
*/
|
|
4133
4133
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
4134
4134
|
await this.loadMarkets();
|
package/js/src/bingx.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export default class bingx extends Exchange {
|
|
|
83
83
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
84
84
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
85
85
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
86
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
87
87
|
*/
|
|
88
88
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
89
89
|
/**
|
package/js/src/bingx.js
CHANGED
|
@@ -1538,7 +1538,7 @@ export default class bingx extends Exchange {
|
|
|
1538
1538
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1539
1539
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1540
1540
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1541
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1541
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1542
1542
|
*/
|
|
1543
1543
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1544
1544
|
await this.loadMarkets();
|
package/js/src/bit2c.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export default class bit2c extends Exchange {
|
|
|
24
24
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
25
25
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
26
26
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
27
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
27
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
28
28
|
*/
|
|
29
29
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
30
30
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/bit2c.js
CHANGED
|
@@ -367,7 +367,7 @@ export default class bit2c extends Exchange {
|
|
|
367
367
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
368
368
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
369
369
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
370
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
370
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
371
371
|
*/
|
|
372
372
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
373
373
|
await this.loadMarkets();
|
package/js/src/bitbank.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default class bitbank extends Exchange {
|
|
|
35
35
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
36
36
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
37
37
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
38
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
38
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
39
39
|
*/
|
|
40
40
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
41
41
|
parseTrade(trade: Dict, market?: Market): Trade;
|
package/js/src/bitbank.js
CHANGED
|
@@ -419,7 +419,7 @@ export default class bitbank extends Exchange {
|
|
|
419
419
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
420
420
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
421
421
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
422
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
422
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
423
423
|
*/
|
|
424
424
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
425
425
|
await this.loadMarkets();
|
package/js/src/bitbns.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default class bitbns extends Exchange {
|
|
|
35
35
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
36
36
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
37
37
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
38
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
38
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
39
39
|
*/
|
|
40
40
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
41
41
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/bitbns.js
CHANGED
|
@@ -360,7 +360,7 @@ export default class bitbns extends Exchange {
|
|
|
360
360
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
361
361
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
362
362
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
363
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
363
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
364
364
|
*/
|
|
365
365
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
366
366
|
await this.loadMarkets();
|
package/js/src/bitfinex.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export default class bitfinex extends Exchange {
|
|
|
78
78
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
79
79
|
* @param {int} [limit] the maximum amount of order book entries to return, bitfinex only allows 1, 25, or 100
|
|
80
80
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
81
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
81
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
82
82
|
*/
|
|
83
83
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
84
84
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/bitfinex.js
CHANGED
|
@@ -607,13 +607,13 @@ export default class bitfinex extends Exchange {
|
|
|
607
607
|
async fetchMarkets(params = {}) {
|
|
608
608
|
const labels = [
|
|
609
609
|
'pub:info:pair',
|
|
610
|
-
//
|
|
610
|
+
// sample: 'AAVE:USD' with fields null,null,null,"0.02","5000.0",null,null,null,null,null,null,null
|
|
611
611
|
'pub:info:pair:futures',
|
|
612
|
-
//
|
|
612
|
+
// sample: 'AAVEF0:USTF0' with fields null,null,null,"0.02","5000.0",null,null,null,0.01,0.005
|
|
613
613
|
'pub:list:pair:securities',
|
|
614
|
-
// ALT2612:USD","ALT2612:UST","BMN2:BTC","BMN2:USD","TITAN1:GBP","TITAN1:USD","TITAN2:GBP","TITAN2:USD","USTBL:USD","USTBL:UST"
|
|
614
|
+
// sample: "ALT2612:USD","ALT2612:UST","BMN2:BTC","BMN2:USD","TITAN1:GBP","TITAN1:USD","TITAN2:GBP","TITAN2:USD","USTBL:USD","USTBL:UST"
|
|
615
615
|
'pub:list:pair:margin',
|
|
616
|
-
//
|
|
616
|
+
// sample: 'ADABTC', 'AVAX:BTC', ... // delimiter inconsistency
|
|
617
617
|
];
|
|
618
618
|
const config = labels.join(',');
|
|
619
619
|
const request = {
|
|
@@ -1134,7 +1134,7 @@ export default class bitfinex extends Exchange {
|
|
|
1134
1134
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1135
1135
|
* @param {int} [limit] the maximum amount of order book entries to return, bitfinex only allows 1, 25, or 100
|
|
1136
1136
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1137
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1137
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1138
1138
|
*/
|
|
1139
1139
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1140
1140
|
await this.loadMarkets();
|
package/js/src/bitflyer.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default class bitflyer extends Exchange {
|
|
|
35
35
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
36
36
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
37
37
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
38
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
38
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
39
39
|
*/
|
|
40
40
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
41
41
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/bitflyer.js
CHANGED
|
@@ -462,7 +462,7 @@ export default class bitflyer extends Exchange {
|
|
|
462
462
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
463
463
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
464
464
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
465
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
465
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
466
466
|
*/
|
|
467
467
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
468
468
|
await this.loadMarkets();
|
package/js/src/bitget.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export default class bitget extends Exchange {
|
|
|
141
141
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
142
142
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
143
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
144
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
144
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
145
145
|
*/
|
|
146
146
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
147
147
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/bitget.js
CHANGED
|
@@ -163,7 +163,7 @@ export default class bitget extends Exchange {
|
|
|
163
163
|
},
|
|
164
164
|
'hostname': 'bitget.com',
|
|
165
165
|
'urls': {
|
|
166
|
-
'logo': 'https://github.com/user-attachments/assets/
|
|
166
|
+
'logo': 'https://github.com/user-attachments/assets/b54bb4c2-416d-4231-8968-85a77748ba45',
|
|
167
167
|
'api': {
|
|
168
168
|
'spot': 'https://api.{hostname}',
|
|
169
169
|
'mix': 'https://api.{hostname}',
|
|
@@ -3167,7 +3167,7 @@ export default class bitget extends Exchange {
|
|
|
3167
3167
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
3168
3168
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3169
3169
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
3170
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
3170
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
3171
3171
|
*/
|
|
3172
3172
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
3173
3173
|
await this.loadMarkets();
|
package/js/src/bithumb.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default class bithumb extends Exchange {
|
|
|
35
35
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
36
36
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
37
37
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
38
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
38
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
39
39
|
*/
|
|
40
40
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
41
41
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/bithumb.js
CHANGED
|
@@ -454,7 +454,7 @@ export default class bithumb extends Exchange {
|
|
|
454
454
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
455
455
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
456
456
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
457
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
457
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
458
458
|
*/
|
|
459
459
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
460
460
|
await this.loadMarkets();
|
package/js/src/bitmart.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export default class bitmart extends Exchange {
|
|
|
122
122
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
123
123
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
124
124
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
125
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
125
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
126
126
|
*/
|
|
127
127
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
128
128
|
parseTrade(trade: Dict, market?: Market): Trade;
|
package/js/src/bitmart.js
CHANGED
|
@@ -116,7 +116,7 @@ export default class bitmart extends Exchange {
|
|
|
116
116
|
},
|
|
117
117
|
'hostname': 'bitmart.com', // bitmart.info, bitmart.news for Hong Kong users
|
|
118
118
|
'urls': {
|
|
119
|
-
'logo': 'https://github.com/user-attachments/assets/
|
|
119
|
+
'logo': 'https://github.com/user-attachments/assets/3741e8c0-83a8-4504-ae68-32b00e3c27ee',
|
|
120
120
|
'api': {
|
|
121
121
|
'spot': 'https://api-cloud.{hostname}',
|
|
122
122
|
'swap': 'https://api-cloud-v2.{hostname}', // bitmart.info for Hong Kong users
|
|
@@ -1811,7 +1811,7 @@ export default class bitmart extends Exchange {
|
|
|
1811
1811
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1812
1812
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1813
1813
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1814
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1814
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1815
1815
|
*/
|
|
1816
1816
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1817
1817
|
await this.loadMarkets();
|
package/js/src/bitmex.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export default class bitmex extends Exchange {
|
|
|
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 exchange API endpoint
|
|
52
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
52
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
53
53
|
*/
|
|
54
54
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
55
55
|
/**
|
package/js/src/bitmex.js
CHANGED
|
@@ -139,7 +139,7 @@ export default class bitmex extends Exchange {
|
|
|
139
139
|
'public': 'https://testnet.bitmex.com',
|
|
140
140
|
'private': 'https://testnet.bitmex.com',
|
|
141
141
|
},
|
|
142
|
-
'logo': 'https://github.com/user-attachments/assets/
|
|
142
|
+
'logo': 'https://github.com/user-attachments/assets/3360333d-35a6-4503-bbba-92a6bc0c174f',
|
|
143
143
|
'api': {
|
|
144
144
|
'public': 'https://www.bitmex.com',
|
|
145
145
|
'private': 'https://www.bitmex.com',
|
|
@@ -1057,7 +1057,7 @@ export default class bitmex extends Exchange {
|
|
|
1057
1057
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1058
1058
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1059
1059
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1060
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1060
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1061
1061
|
*/
|
|
1062
1062
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1063
1063
|
await this.loadMarkets();
|
package/js/src/bitopro.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export default class bitopro extends Exchange {
|
|
|
55
55
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
56
56
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
57
57
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
58
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
59
59
|
*/
|
|
60
60
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
61
61
|
parseTrade(trade: Dict, market?: Market): Trade;
|
package/js/src/bitopro.js
CHANGED
|
@@ -602,7 +602,7 @@ export default class bitopro extends Exchange {
|
|
|
602
602
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
603
603
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
604
604
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
605
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
605
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
606
606
|
*/
|
|
607
607
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
608
608
|
await this.loadMarkets();
|
package/js/src/bitrue.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export default class bitrue extends Exchange {
|
|
|
76
76
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
77
77
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
78
78
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
79
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
79
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
80
80
|
*/
|
|
81
81
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
82
82
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
package/js/src/bitrue.js
CHANGED
|
@@ -1224,7 +1224,7 @@ export default class bitrue extends Exchange {
|
|
|
1224
1224
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1225
1225
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1226
1226
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1227
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1227
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
1228
1228
|
*/
|
|
1229
1229
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1230
1230
|
await this.loadMarkets();
|