ccxt 4.5.28 → 4.5.30
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 +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +47 -47
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +86 -45
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +156 -48
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +13 -11
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +393 -34
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +25 -23
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +18 -16
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +13 -11
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +20 -16
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +33 -30
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +47 -47
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +25 -25
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +60 -59
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +86 -45
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +58 -44
- package/js/src/kucoin.js +156 -48
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +13 -11
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +393 -34
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +25 -23
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +26 -62
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +11 -9
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +18 -16
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +13 -11
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +20 -16
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +33 -30
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/pro/bitfinex.js
CHANGED
|
@@ -264,7 +264,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
264
264
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
265
265
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
266
266
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
267
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
268
268
|
*/
|
|
269
269
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
270
270
|
const trades = await this.subscribe('trades', symbol, params);
|
|
@@ -279,7 +279,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
279
279
|
* @description unWatches the list of most recent trades for a particular symbol
|
|
280
280
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
281
281
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
282
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
282
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
283
283
|
*/
|
|
284
284
|
async unWatchTrades(symbol, params = {}) {
|
|
285
285
|
return await this.unSubscribe('trades', 'trades', symbol, params);
|
|
@@ -292,7 +292,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
292
292
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
293
293
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
294
294
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
295
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
296
296
|
*/
|
|
297
297
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
298
298
|
await this.loadMarkets();
|
|
@@ -313,7 +313,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
313
313
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
314
314
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
315
315
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
316
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
316
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
317
317
|
*/
|
|
318
318
|
async watchTicker(symbol, params = {}) {
|
|
319
319
|
return await this.subscribe('ticker', symbol, params);
|
|
@@ -324,7 +324,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
324
324
|
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
325
325
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
326
326
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
327
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
327
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
328
328
|
*/
|
|
329
329
|
async unWatchTicker(symbol, params = {}) {
|
|
330
330
|
return await this.unSubscribe('ticker', 'ticker', symbol, params);
|
|
@@ -616,7 +616,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
616
616
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
617
617
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
618
618
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
619
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
619
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
620
620
|
*/
|
|
621
621
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
622
622
|
if (limit !== undefined) {
|
|
@@ -790,7 +790,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
790
790
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
791
791
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
792
792
|
* @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
|
|
793
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
793
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
794
794
|
*/
|
|
795
795
|
async watchBalance(params = {}) {
|
|
796
796
|
await this.loadMarkets();
|
|
@@ -1039,7 +1039,7 @@ export default class bitfinex extends bitfinexRest {
|
|
|
1039
1039
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1040
1040
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1041
1041
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1042
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1042
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1043
1043
|
*/
|
|
1044
1044
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1045
1045
|
await this.loadMarkets();
|
package/js/src/pro/bitget.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export default class bitget extends bitgetRest {
|
|
|
19
19
|
* @param {string} symbol unified symbol of the market to watch the ticker for
|
|
20
20
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
21
21
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
22
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
22
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
23
23
|
*/
|
|
24
24
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
25
25
|
/**
|
|
@@ -43,7 +43,7 @@ export default class bitget extends bitgetRest {
|
|
|
43
43
|
* @param {string[]} symbols unified symbol of the market to watch the tickers for
|
|
44
44
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
45
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
46
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
46
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
47
47
|
*/
|
|
48
48
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
49
49
|
handleTicker(client: Client, message: any): void;
|
|
@@ -58,7 +58,7 @@ export default class bitget extends bitgetRest {
|
|
|
58
58
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
59
59
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
60
60
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
61
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
61
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
62
62
|
*/
|
|
63
63
|
watchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
64
64
|
handleBidAsk(client: Client, message: any): void;
|
|
@@ -90,7 +90,7 @@ export default class bitget extends bitgetRest {
|
|
|
90
90
|
* @param {string} [timeframe] the period for the ratio, default is 1 minute
|
|
91
91
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
92
92
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
93
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
93
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
94
94
|
*/
|
|
95
95
|
unWatchOHLCV(symbol: string, timeframe?: string, params?: {}): Promise<any>;
|
|
96
96
|
handleOHLCV(client: Client, message: any): void;
|
|
@@ -106,7 +106,7 @@ export default class bitget extends bitgetRest {
|
|
|
106
106
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
107
107
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
108
108
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
109
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
109
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
110
110
|
*/
|
|
111
111
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
112
112
|
/**
|
|
@@ -120,7 +120,7 @@ export default class bitget extends bitgetRest {
|
|
|
120
120
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
121
121
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
122
122
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
123
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
123
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
124
124
|
*/
|
|
125
125
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
126
126
|
unWatchChannel(symbol: string, channel: string, messageHashTopic: string, params?: {}): Promise<any>;
|
|
@@ -135,7 +135,7 @@ export default class bitget extends bitgetRest {
|
|
|
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
137
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
138
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
138
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
139
139
|
*/
|
|
140
140
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
141
141
|
handleOrderBook(client: Client, message: any): void;
|
|
@@ -154,7 +154,7 @@ export default class bitget extends bitgetRest {
|
|
|
154
154
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
155
155
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
156
156
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
157
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
157
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
158
158
|
*/
|
|
159
159
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
160
160
|
/**
|
|
@@ -169,7 +169,7 @@ export default class bitget extends bitgetRest {
|
|
|
169
169
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
170
170
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
171
171
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
172
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
172
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
173
173
|
*/
|
|
174
174
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
175
175
|
/**
|
|
@@ -224,7 +224,7 @@ export default class bitget extends bitgetRest {
|
|
|
224
224
|
* @param {string} [params.type] 'spot', 'swap'
|
|
225
225
|
* @param {string} [params.subType] 'linear', 'inverse'
|
|
226
226
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
227
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
227
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
228
228
|
*/
|
|
229
229
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
230
230
|
handleOrder(client: Client, message: any): void;
|
|
@@ -241,7 +241,7 @@ export default class bitget extends bitgetRest {
|
|
|
241
241
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
242
242
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
243
243
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
244
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
244
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
245
245
|
*/
|
|
246
246
|
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
247
247
|
handleMyTrades(client: Client, message: any): void;
|
|
@@ -259,7 +259,7 @@ export default class bitget extends bitgetRest {
|
|
|
259
259
|
* @param {string} [params.instType] one of 'SPOT', 'MARGIN', 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
260
260
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for watching spot margin balances
|
|
261
261
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
262
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
262
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
263
263
|
*/
|
|
264
264
|
watchBalance(params?: {}): Promise<Balances>;
|
|
265
265
|
handleBalance(client: Client, message: any): void;
|
package/js/src/pro/bitget.js
CHANGED
|
@@ -139,7 +139,7 @@ export default class bitget extends bitgetRest {
|
|
|
139
139
|
* @param {string} symbol unified symbol of the market to watch the ticker for
|
|
140
140
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
141
141
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
142
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
142
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
143
143
|
*/
|
|
144
144
|
async watchTicker(symbol, params = {}) {
|
|
145
145
|
await this.loadMarkets();
|
|
@@ -183,7 +183,7 @@ export default class bitget extends bitgetRest {
|
|
|
183
183
|
* @param {string[]} symbols unified symbol of the market to watch the tickers for
|
|
184
184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
185
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
186
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
186
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
187
187
|
*/
|
|
188
188
|
async watchTickers(symbols = undefined, params = {}) {
|
|
189
189
|
await this.loadMarkets();
|
|
@@ -419,7 +419,7 @@ export default class bitget extends bitgetRest {
|
|
|
419
419
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
420
420
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
421
421
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
422
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
422
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
423
423
|
*/
|
|
424
424
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
425
425
|
await this.loadMarkets();
|
|
@@ -539,7 +539,7 @@ export default class bitget extends bitgetRest {
|
|
|
539
539
|
* @param {string} [timeframe] the period for the ratio, default is 1 minute
|
|
540
540
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
541
541
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
542
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
542
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
543
543
|
*/
|
|
544
544
|
async unWatchOHLCV(symbol, timeframe = '1m', params = {}) {
|
|
545
545
|
await this.loadMarkets();
|
|
@@ -718,7 +718,7 @@ export default class bitget extends bitgetRest {
|
|
|
718
718
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
719
719
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
720
720
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
721
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
721
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
722
722
|
*/
|
|
723
723
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
724
724
|
return await this.watchOrderBookForSymbols([symbol], limit, params);
|
|
@@ -734,7 +734,7 @@ export default class bitget extends bitgetRest {
|
|
|
734
734
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
735
735
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
736
736
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
737
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
737
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
738
738
|
*/
|
|
739
739
|
async unWatchOrderBook(symbol, params = {}) {
|
|
740
740
|
await this.loadMarkets();
|
|
@@ -781,7 +781,7 @@ export default class bitget extends bitgetRest {
|
|
|
781
781
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
782
782
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
783
783
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
784
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
784
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
785
785
|
*/
|
|
786
786
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
787
787
|
await this.loadMarkets();
|
|
@@ -964,7 +964,7 @@ export default class bitget extends bitgetRest {
|
|
|
964
964
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
965
965
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
966
966
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
967
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
967
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
968
968
|
*/
|
|
969
969
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
970
970
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
@@ -981,7 +981,7 @@ export default class bitget extends bitgetRest {
|
|
|
981
981
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
982
982
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
983
983
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
984
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
984
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
985
985
|
*/
|
|
986
986
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
987
987
|
const symbolsLength = symbols.length;
|
|
@@ -1514,7 +1514,7 @@ export default class bitget extends bitgetRest {
|
|
|
1514
1514
|
* @param {string} [params.type] 'spot', 'swap'
|
|
1515
1515
|
* @param {string} [params.subType] 'linear', 'inverse'
|
|
1516
1516
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
1517
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1517
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1518
1518
|
*/
|
|
1519
1519
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1520
1520
|
await this.loadMarkets();
|
|
@@ -2028,7 +2028,7 @@ export default class bitget extends bitgetRest {
|
|
|
2028
2028
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2029
2029
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2030
2030
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
2031
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2031
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2032
2032
|
*/
|
|
2033
2033
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2034
2034
|
await this.loadMarkets();
|
|
@@ -2213,7 +2213,7 @@ export default class bitget extends bitgetRest {
|
|
|
2213
2213
|
* @param {string} [params.instType] one of 'SPOT', 'MARGIN', 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
2214
2214
|
* @param {string} [params.marginMode] 'isolated' or 'cross' for watching spot margin balances
|
|
2215
2215
|
* @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
|
|
2216
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
2216
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
2217
2217
|
*/
|
|
2218
2218
|
async watchBalance(params = {}) {
|
|
2219
2219
|
let uta = undefined;
|
package/js/src/pro/bithumb.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export default class bithumb extends bithumbRest {
|
|
|
22
22
|
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
|
|
23
23
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
24
24
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
25
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
25
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
26
26
|
*/
|
|
27
27
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
28
28
|
handleTicker(client: Client, message: any): void;
|
|
@@ -62,7 +62,7 @@ export default class bithumb extends bithumbRest {
|
|
|
62
62
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
63
63
|
* @see https://apidocs.bithumb.com/v2.1.5/reference/%EB%82%B4-%EC%9E%90%EC%82%B0-myasset
|
|
64
64
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
65
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
65
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
66
66
|
*/
|
|
67
67
|
watchBalance(params?: {}): Promise<Balances>;
|
|
68
68
|
handleBalance(client: Client, message: any): void;
|
|
@@ -77,7 +77,7 @@ export default class bithumb extends bithumbRest {
|
|
|
77
77
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
78
78
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
79
79
|
* @param {string[]} [params.codes] market codes to filter orders
|
|
80
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
80
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
81
81
|
*/
|
|
82
82
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
83
83
|
handleOrders(client: Client, message: any): void;
|
package/js/src/pro/bithumb.js
CHANGED
|
@@ -67,7 +67,7 @@ export default class bithumb extends bithumbRest {
|
|
|
67
67
|
* @see https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
|
|
68
68
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
69
69
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
70
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
70
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
71
71
|
*/
|
|
72
72
|
async watchTickers(symbols = undefined, params = {}) {
|
|
73
73
|
await this.loadMarkets();
|
|
@@ -388,7 +388,7 @@ export default class bithumb extends bithumbRest {
|
|
|
388
388
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
389
389
|
* @see https://apidocs.bithumb.com/v2.1.5/reference/%EB%82%B4-%EC%9E%90%EC%82%B0-myasset
|
|
390
390
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
391
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
391
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
392
392
|
*/
|
|
393
393
|
async watchBalance(params = {}) {
|
|
394
394
|
await this.loadMarkets();
|
|
@@ -472,7 +472,7 @@ export default class bithumb extends bithumbRest {
|
|
|
472
472
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
473
473
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
474
474
|
* @param {string[]} [params.codes] market codes to filter orders
|
|
475
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
475
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
476
476
|
*/
|
|
477
477
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
478
478
|
await this.loadMarkets();
|
package/js/src/pro/bitmart.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export default class bitmart extends bitmartRest {
|
|
|
12
12
|
* @see https://developer-pro.bitmart.com/en/futuresv2/#private-assets-channel
|
|
13
13
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
14
14
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
15
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
15
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
16
16
|
*/
|
|
17
17
|
watchBalance(params?: {}): Promise<Balances>;
|
|
18
18
|
setBalanceCache(client: Client, type: any, subscribeHash: any): void;
|
|
@@ -28,21 +28,44 @@ export default class bitmart extends bitmartRest {
|
|
|
28
28
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
29
29
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
30
30
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
31
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
31
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
32
32
|
*/
|
|
33
33
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
34
34
|
/**
|
|
35
35
|
* @method
|
|
36
36
|
* @name bitmart#watchTradesForSymbols
|
|
37
37
|
* @see https://developer-pro.bitmart.com/en/spot/#public-trade-channel
|
|
38
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-trade-channel
|
|
38
39
|
* @description get the list of most recent trades for a list of symbols
|
|
39
40
|
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
40
41
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
41
42
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
42
43
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
43
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
44
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
44
45
|
*/
|
|
45
46
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
47
|
+
/**
|
|
48
|
+
* @method
|
|
49
|
+
* @name bitmart#unWatchTrades
|
|
50
|
+
* @description unWatches from the stream channel
|
|
51
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-trade-channel
|
|
52
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-trade-channel
|
|
53
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
54
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
55
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
56
|
+
*/
|
|
57
|
+
unWatchTrades(symbol: string, params?: {}): Promise<any>;
|
|
58
|
+
/**
|
|
59
|
+
* @method
|
|
60
|
+
* @name bitmart#unWatchTradesForSymbols
|
|
61
|
+
* @description unsubscribes from the trades channel
|
|
62
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-trade-channel
|
|
63
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-trade-channel
|
|
64
|
+
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
65
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
66
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
67
|
+
*/
|
|
68
|
+
unWatchTradesForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
46
69
|
getParamsForMultipleSub(methodName: string, symbols: string[], limit?: Int, params?: {}): any[];
|
|
47
70
|
/**
|
|
48
71
|
* @method
|
|
@@ -52,7 +75,7 @@ export default class bitmart extends bitmartRest {
|
|
|
52
75
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
53
76
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
54
77
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
55
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
78
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
56
79
|
*/
|
|
57
80
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
58
81
|
/**
|
|
@@ -63,9 +86,31 @@ export default class bitmart extends bitmartRest {
|
|
|
63
86
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
64
87
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
65
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
66
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
89
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
67
90
|
*/
|
|
68
91
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
92
|
+
/**
|
|
93
|
+
* @method
|
|
94
|
+
* @name bitmart#unWatchTicker
|
|
95
|
+
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
96
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-ticker-channel
|
|
97
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
|
98
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
99
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
100
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
101
|
+
*/
|
|
102
|
+
unWatchTicker(symbol: string, params?: {}): Promise<any>;
|
|
103
|
+
/**
|
|
104
|
+
* @method
|
|
105
|
+
* @name bitmart#unWatchTickers
|
|
106
|
+
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
107
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-ticker-channel
|
|
108
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-ticker-channel
|
|
109
|
+
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
110
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
112
|
+
*/
|
|
113
|
+
unWatchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
69
114
|
/**
|
|
70
115
|
* @method
|
|
71
116
|
* @name bitmart#watchBidsAsks
|
|
@@ -74,7 +119,7 @@ export default class bitmart extends bitmartRest {
|
|
|
74
119
|
* @description watches best bid & ask for symbols
|
|
75
120
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
76
121
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
77
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
122
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
78
123
|
*/
|
|
79
124
|
watchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
80
125
|
handleBidAsk(client: Client, message: any): void;
|
|
@@ -89,9 +134,20 @@ export default class bitmart extends bitmartRest {
|
|
|
89
134
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
90
135
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
91
136
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
92
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
137
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
93
138
|
*/
|
|
94
139
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
140
|
+
/**
|
|
141
|
+
* @method
|
|
142
|
+
* @name bitmart#unWatchOrders
|
|
143
|
+
* @description unWatches information on multiple orders made by the user
|
|
144
|
+
* @see https://developer-pro.bitmart.com/en/spot/#private-order-progress
|
|
145
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#private-order-channel
|
|
146
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
147
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
148
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
149
|
+
*/
|
|
150
|
+
unWatchOrders(symbol?: Str, params?: {}): Promise<any>;
|
|
95
151
|
handleOrders(client: Client, message: any): void;
|
|
96
152
|
parseWsOrder(order: Dict, market?: Market): Order;
|
|
97
153
|
parseWsOrderStatus(statusId: any): string;
|
|
@@ -108,6 +164,16 @@ export default class bitmart extends bitmartRest {
|
|
|
108
164
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
109
165
|
*/
|
|
110
166
|
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
167
|
+
/**
|
|
168
|
+
* @method
|
|
169
|
+
* @name bitmart#unWatchPositions
|
|
170
|
+
* @description unWatches all open positions
|
|
171
|
+
* @see https://developer-pro.bitmart.com/en/futures/#private-position-channel
|
|
172
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
173
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
174
|
+
* @returns {object} status of the unwatch request
|
|
175
|
+
*/
|
|
176
|
+
unWatchPositions(symbols?: Strings, params?: {}): Promise<any>;
|
|
111
177
|
handlePositions(client: Client, message: any): void;
|
|
112
178
|
parseWsPosition(position: any, market?: Market): Position;
|
|
113
179
|
handleTrade(client: Client, message: any): void;
|
|
@@ -129,6 +195,18 @@ export default class bitmart extends bitmartRest {
|
|
|
129
195
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
130
196
|
*/
|
|
131
197
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
198
|
+
/**
|
|
199
|
+
* @method
|
|
200
|
+
* @name bitmart#unWatchOHLCV
|
|
201
|
+
* @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
202
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-kline-channel
|
|
203
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-klinebin-channel
|
|
204
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
205
|
+
* @param {string} timeframe the length of time each candle represents
|
|
206
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
207
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
208
|
+
*/
|
|
209
|
+
unWatchOHLCV(symbol: string, timeframe?: string, params?: {}): Promise<any>;
|
|
132
210
|
handleOHLCV(client: Client, message: any): void;
|
|
133
211
|
/**
|
|
134
212
|
* @method
|
|
@@ -141,9 +219,21 @@ export default class bitmart extends bitmartRest {
|
|
|
141
219
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
142
220
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
221
|
* @param {string} [params.speed] *futures only* '100ms' or '200ms'
|
|
144
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
222
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
145
223
|
*/
|
|
146
224
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
225
|
+
/**
|
|
226
|
+
* @method
|
|
227
|
+
* @name bitmart#unWatchOrderBook
|
|
228
|
+
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
229
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-depth-all-channel
|
|
230
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-depth-increase-channel
|
|
231
|
+
* @see https://developer-pro.bitmart.com/en/futuresv2/#public-depth-channel
|
|
232
|
+
* @param {string} symbol unified array of symbols
|
|
233
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
234
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
235
|
+
*/
|
|
236
|
+
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
147
237
|
handleDelta(bookside: any, delta: any): void;
|
|
148
238
|
handleDeltas(bookside: any, deltas: any): void;
|
|
149
239
|
handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
|
|
@@ -157,12 +247,33 @@ export default class bitmart extends bitmartRest {
|
|
|
157
247
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
158
248
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
159
249
|
* @param {string} [params.depth] the type of order book to subscribe to, default is 'depth/increase100', also accepts 'depth5' or 'depth20' or depth50
|
|
160
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
250
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
161
251
|
*/
|
|
162
252
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
253
|
+
/**
|
|
254
|
+
* @method
|
|
255
|
+
* @name bitmart#unWatchOrderBookForSymbols
|
|
256
|
+
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
257
|
+
* @see https://developer-pro.bitmart.com/en/spot/#public-depth-increase-channel
|
|
258
|
+
* @param {string[]} symbols unified array of symbols
|
|
259
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
260
|
+
* @param {string} [params.depth] the type of order book to subscribe to, default is 'depth/increase100', also accepts 'depth5' or 'depth20' or depth50
|
|
261
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
262
|
+
*/
|
|
263
|
+
unWatchOrderBookForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
163
264
|
authenticate(type: any, params?: {}): Promise<any>;
|
|
164
265
|
handleSubscriptionStatus(client: Client, message: any): any;
|
|
165
266
|
handleAuthenticate(client: Client, message: any): void;
|
|
166
267
|
handleErrorMessage(client: Client, message: any): Bool;
|
|
268
|
+
handleUnSubscription(client: Client, message: any): void;
|
|
269
|
+
getUnSubParams(messageTopic: any): {
|
|
270
|
+
topic: string;
|
|
271
|
+
symbols: any[];
|
|
272
|
+
subHash: string;
|
|
273
|
+
symbolsAndTimeframes: any[];
|
|
274
|
+
subHashIsPrefix: boolean;
|
|
275
|
+
};
|
|
276
|
+
parseTopic(topic: any): string;
|
|
277
|
+
parseMarketType(marketType: string): string;
|
|
167
278
|
handleMessage(client: Client, message: any): void;
|
|
168
279
|
}
|