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/bybit.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default class bybit extends bybitRest {
|
|
|
35
35
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
36
36
|
* @param {string} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
37
37
|
* @param {string} [params.trailingTriggerPrice] the price to trigger a trailing order, default uses the price argument
|
|
38
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
38
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
39
39
|
*/
|
|
40
40
|
createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
41
41
|
/**
|
|
@@ -61,7 +61,7 @@ export default class bybit extends bybitRest {
|
|
|
61
61
|
* @param {string} [params.triggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for triggerPrice
|
|
62
62
|
* @param {string} [params.slTriggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for stopLoss
|
|
63
63
|
* @param {string} [params.tpTriggerby] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for takeProfit
|
|
64
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
64
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
65
65
|
*/
|
|
66
66
|
editOrderWs(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
67
67
|
/**
|
|
@@ -75,7 +75,7 @@ export default class bybit extends bybitRest {
|
|
|
75
75
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
76
76
|
* @param {boolean} [params.trigger] *spot only* whether the order is a trigger order
|
|
77
77
|
* @param {string} [params.orderFilter] *spot only* 'Order' or 'StopOrder' or 'tpslOrder'
|
|
78
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
78
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
79
79
|
*/
|
|
80
80
|
cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
81
81
|
/**
|
|
@@ -86,7 +86,7 @@ export default class bybit extends bybitRest {
|
|
|
86
86
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
87
87
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
89
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
90
90
|
*/
|
|
91
91
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
92
92
|
/**
|
|
@@ -97,7 +97,7 @@ export default class bybit extends bybitRest {
|
|
|
97
97
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
98
98
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
99
99
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
100
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
100
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
101
101
|
*/
|
|
102
102
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
103
103
|
/**
|
|
@@ -108,7 +108,7 @@ export default class bybit extends bybitRest {
|
|
|
108
108
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
109
109
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
110
110
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
111
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
112
112
|
*/
|
|
113
113
|
unWatchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
114
114
|
/**
|
|
@@ -119,7 +119,7 @@ export default class bybit extends bybitRest {
|
|
|
119
119
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
120
120
|
* @param {string[]} symbol unified symbol of the market to fetch the ticker for
|
|
121
121
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
122
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
123
123
|
*/
|
|
124
124
|
unWatchTicker(symbol: string, params?: {}): Promise<any>;
|
|
125
125
|
handleTicker(client: Client, message: any): void;
|
|
@@ -130,7 +130,7 @@ export default class bybit extends bybitRest {
|
|
|
130
130
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
|
|
131
131
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
132
132
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
133
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
133
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
134
134
|
*/
|
|
135
135
|
watchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
136
136
|
parseWsBidAsk(orderbook: any, market?: any): Ticker;
|
|
@@ -194,7 +194,7 @@ export default class bybit extends bybitRest {
|
|
|
194
194
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
195
195
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
196
196
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
197
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
197
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
198
198
|
*/
|
|
199
199
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
200
200
|
/**
|
|
@@ -205,7 +205,7 @@ export default class bybit extends bybitRest {
|
|
|
205
205
|
* @param {string[]} symbols unified array of symbols
|
|
206
206
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
207
207
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
208
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
208
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
209
209
|
*/
|
|
210
210
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
211
211
|
/**
|
|
@@ -216,7 +216,7 @@ export default class bybit extends bybitRest {
|
|
|
216
216
|
* @param {string[]} symbols unified symbol of the market to unwatch the trades for
|
|
217
217
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
218
218
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
219
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
219
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
220
220
|
*/
|
|
221
221
|
unWatchOrderBookForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
222
222
|
/**
|
|
@@ -227,7 +227,7 @@ export default class bybit extends bybitRest {
|
|
|
227
227
|
* @param {string} symbol symbol of the market to unwatch the trades for
|
|
228
228
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
229
229
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
230
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
230
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
231
231
|
*/
|
|
232
232
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
233
233
|
handleOrderBook(client: Client, message: any): void;
|
|
@@ -242,7 +242,7 @@ export default class bybit extends bybitRest {
|
|
|
242
242
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
243
243
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
244
244
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
245
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
245
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
246
246
|
*/
|
|
247
247
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
248
248
|
/**
|
|
@@ -254,7 +254,7 @@ export default class bybit extends bybitRest {
|
|
|
254
254
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
255
255
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
256
256
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
257
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
257
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
258
258
|
*/
|
|
259
259
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
260
260
|
/**
|
|
@@ -292,7 +292,7 @@ export default class bybit extends bybitRest {
|
|
|
292
292
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
293
293
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
294
294
|
* @param {boolean} [params.executionFast] use fast execution
|
|
295
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
295
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
296
296
|
*/
|
|
297
297
|
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
298
298
|
/**
|
|
@@ -305,7 +305,7 @@ export default class bybit extends bybitRest {
|
|
|
305
305
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
306
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
307
307
|
* @param {boolean} [params.executionFast] use fast execution
|
|
308
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
308
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
309
309
|
*/
|
|
310
310
|
unWatchMyTrades(symbol?: Str, params?: {}): Promise<any>;
|
|
311
311
|
handleMyTrades(client: Client, message: any): void;
|
|
@@ -358,7 +358,7 @@ export default class bybit extends bybitRest {
|
|
|
358
358
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
359
359
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
360
360
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
361
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
361
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
362
362
|
*/
|
|
363
363
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
364
364
|
/**
|
|
@@ -369,7 +369,7 @@ export default class bybit extends bybitRest {
|
|
|
369
369
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
370
370
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
371
371
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
372
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
372
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
373
373
|
*/
|
|
374
374
|
unWatchOrders(symbol?: Str, params?: {}): Promise<any>;
|
|
375
375
|
handleOrderWs(client: Client, message: any): void;
|
|
@@ -380,7 +380,7 @@ export default class bybit extends bybitRest {
|
|
|
380
380
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
381
381
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
|
|
382
382
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
383
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
383
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
384
384
|
*/
|
|
385
385
|
watchBalance(params?: {}): Promise<Balances>;
|
|
386
386
|
handleBalance(client: Client, message: any): void;
|
package/js/src/pro/bybit.js
CHANGED
|
@@ -254,7 +254,7 @@ export default class bybit extends bybitRest {
|
|
|
254
254
|
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
255
255
|
* @param {string} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
256
256
|
* @param {string} [params.trailingTriggerPrice] the price to trigger a trailing order, default uses the price argument
|
|
257
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
257
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
258
258
|
*/
|
|
259
259
|
async createOrderWs(symbol, type, side, amount, price = undefined, params = {}) {
|
|
260
260
|
await this.loadMarkets();
|
|
@@ -298,7 +298,7 @@ export default class bybit extends bybitRest {
|
|
|
298
298
|
* @param {string} [params.triggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for triggerPrice
|
|
299
299
|
* @param {string} [params.slTriggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for stopLoss
|
|
300
300
|
* @param {string} [params.tpTriggerby] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for takeProfit
|
|
301
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
301
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
302
302
|
*/
|
|
303
303
|
async editOrderWs(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
304
304
|
await this.loadMarkets();
|
|
@@ -330,7 +330,7 @@ export default class bybit extends bybitRest {
|
|
|
330
330
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
331
331
|
* @param {boolean} [params.trigger] *spot only* whether the order is a trigger order
|
|
332
332
|
* @param {string} [params.orderFilter] *spot only* 'Order' or 'StopOrder' or 'tpslOrder'
|
|
333
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
333
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
334
334
|
*/
|
|
335
335
|
async cancelOrderWs(id, symbol = undefined, params = {}) {
|
|
336
336
|
await this.loadMarkets();
|
|
@@ -365,7 +365,7 @@ export default class bybit extends bybitRest {
|
|
|
365
365
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
366
366
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
367
367
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
368
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
368
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
369
369
|
*/
|
|
370
370
|
async watchTicker(symbol, params = {}) {
|
|
371
371
|
await this.loadMarkets();
|
|
@@ -391,7 +391,7 @@ export default class bybit extends bybitRest {
|
|
|
391
391
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
392
392
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
393
393
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
394
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
394
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
395
395
|
*/
|
|
396
396
|
async watchTickers(symbols = undefined, params = {}) {
|
|
397
397
|
await this.loadMarkets();
|
|
@@ -424,7 +424,7 @@ export default class bybit extends bybitRest {
|
|
|
424
424
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
425
425
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
426
426
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
427
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
427
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
428
428
|
*/
|
|
429
429
|
async unWatchTickers(symbols = undefined, params = {}) {
|
|
430
430
|
await this.loadMarkets();
|
|
@@ -453,7 +453,7 @@ export default class bybit extends bybitRest {
|
|
|
453
453
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
|
|
454
454
|
* @param {string[]} symbol unified symbol of the market to fetch the ticker for
|
|
455
455
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
456
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
456
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
457
457
|
*/
|
|
458
458
|
async unWatchTicker(symbol, params = {}) {
|
|
459
459
|
await this.loadMarkets();
|
|
@@ -611,7 +611,7 @@ export default class bybit extends bybitRest {
|
|
|
611
611
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook
|
|
612
612
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
613
613
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
614
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
614
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
615
615
|
*/
|
|
616
616
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
617
617
|
await this.loadMarkets();
|
|
@@ -840,7 +840,7 @@ export default class bybit extends bybitRest {
|
|
|
840
840
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
841
841
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
842
842
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
843
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
843
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
844
844
|
*/
|
|
845
845
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
846
846
|
return await this.watchOrderBookForSymbols([symbol], limit, params);
|
|
@@ -853,7 +853,7 @@ export default class bybit extends bybitRest {
|
|
|
853
853
|
* @param {string[]} symbols unified array of symbols
|
|
854
854
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
855
855
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
856
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
856
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
857
857
|
*/
|
|
858
858
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
859
859
|
await this.loadMarkets();
|
|
@@ -903,7 +903,7 @@ export default class bybit extends bybitRest {
|
|
|
903
903
|
* @param {string[]} symbols unified symbol of the market to unwatch the trades for
|
|
904
904
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
905
905
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
906
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
906
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
907
907
|
*/
|
|
908
908
|
async unWatchOrderBookForSymbols(symbols, params = {}) {
|
|
909
909
|
await this.loadMarkets();
|
|
@@ -941,7 +941,7 @@ export default class bybit extends bybitRest {
|
|
|
941
941
|
* @param {string} symbol symbol of the market to unwatch the trades for
|
|
942
942
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
943
943
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
944
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
944
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
945
945
|
*/
|
|
946
946
|
async unWatchOrderBook(symbol, params = {}) {
|
|
947
947
|
await this.loadMarkets();
|
|
@@ -1038,7 +1038,7 @@ export default class bybit extends bybitRest {
|
|
|
1038
1038
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1039
1039
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
1040
1040
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1041
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1041
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1042
1042
|
*/
|
|
1043
1043
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1044
1044
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
@@ -1052,7 +1052,7 @@ export default class bybit extends bybitRest {
|
|
|
1052
1052
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1053
1053
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1054
1054
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1055
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1055
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1056
1056
|
*/
|
|
1057
1057
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
1058
1058
|
await this.loadMarkets();
|
|
@@ -1257,7 +1257,7 @@ export default class bybit extends bybitRest {
|
|
|
1257
1257
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1258
1258
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
1259
1259
|
* @param {boolean} [params.executionFast] use fast execution
|
|
1260
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1260
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1261
1261
|
*/
|
|
1262
1262
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1263
1263
|
const method = 'watchMyTrades';
|
|
@@ -1296,7 +1296,7 @@ export default class bybit extends bybitRest {
|
|
|
1296
1296
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1297
1297
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
1298
1298
|
* @param {boolean} [params.executionFast] use fast execution
|
|
1299
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1299
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1300
1300
|
*/
|
|
1301
1301
|
async unWatchMyTrades(symbol = undefined, params = {}) {
|
|
1302
1302
|
const method = 'watchMyTrades';
|
|
@@ -1522,9 +1522,11 @@ export default class bybit extends bybitRest {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
1524
|
// don't remove the future from the .futures cache
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1525
|
+
if (messageHash in client.futures) {
|
|
1526
|
+
const future = client.futures[messageHash];
|
|
1527
|
+
future.resolve(cache);
|
|
1528
|
+
client.resolve(cache, 'position');
|
|
1529
|
+
}
|
|
1528
1530
|
}
|
|
1529
1531
|
handlePositions(client, message) {
|
|
1530
1532
|
//
|
|
@@ -1765,7 +1767,7 @@ export default class bybit extends bybitRest {
|
|
|
1765
1767
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1766
1768
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1767
1769
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1768
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1770
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1769
1771
|
*/
|
|
1770
1772
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1771
1773
|
await this.loadMarkets();
|
|
@@ -1797,7 +1799,7 @@ export default class bybit extends bybitRest {
|
|
|
1797
1799
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1798
1800
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1799
1801
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
1800
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1802
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1801
1803
|
*/
|
|
1802
1804
|
async unWatchOrders(symbol = undefined, params = {}) {
|
|
1803
1805
|
await this.loadMarkets();
|
|
@@ -1965,7 +1967,7 @@ export default class bybit extends bybitRest {
|
|
|
1965
1967
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1966
1968
|
* @see https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
|
|
1967
1969
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1968
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1970
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1969
1971
|
*/
|
|
1970
1972
|
async watchBalance(params = {}) {
|
|
1971
1973
|
await this.loadMarkets();
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import bydfiRest from '../bydfi.js';
|
|
2
|
+
import type { Balances, Dict, Int, Market, OHLCV, Order, OrderBook, Position, Str, Strings, Ticker, Tickers } from '../base/types.js';
|
|
3
|
+
import Client from '../base/ws/Client.js';
|
|
4
|
+
export default class bydfi extends bydfiRest {
|
|
5
|
+
describe(): any;
|
|
6
|
+
ping(client: Client): {
|
|
7
|
+
id: any;
|
|
8
|
+
method: string;
|
|
9
|
+
};
|
|
10
|
+
requestId(): any;
|
|
11
|
+
watchPublic(messageHashes: any, channels: any, params?: {}, subscription?: {}): Promise<any>;
|
|
12
|
+
watchPrivate(messageHashes: any, params?: {}): Promise<any>;
|
|
13
|
+
/**
|
|
14
|
+
* @method
|
|
15
|
+
* @name bydfi#watchTicker
|
|
16
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
17
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#ticker-by-symbol
|
|
18
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
19
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
20
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
21
|
+
*/
|
|
22
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
23
|
+
/**
|
|
24
|
+
* @method
|
|
25
|
+
* @name bydfi#unWatchTicker
|
|
26
|
+
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
27
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#ticker-by-symbol
|
|
28
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
29
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
30
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
31
|
+
*/
|
|
32
|
+
unWatchTicker(symbol: string, params?: {}): Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* @method
|
|
35
|
+
* @name bydfi#watchTickers
|
|
36
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
37
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#ticker-by-symbol
|
|
38
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#market-wide-ticker
|
|
39
|
+
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
40
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
41
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
42
|
+
*/
|
|
43
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
44
|
+
/**
|
|
45
|
+
* @method
|
|
46
|
+
* @name bydfi#unWatchTickers
|
|
47
|
+
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
48
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#ticker-by-symbol
|
|
49
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#market-wide-ticker
|
|
50
|
+
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
51
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
52
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
53
|
+
*/
|
|
54
|
+
unWatchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
55
|
+
getMessageHashesForTickersUnsubscription(): any[];
|
|
56
|
+
handleTicker(client: Client, message: any): void;
|
|
57
|
+
/**
|
|
58
|
+
* @method
|
|
59
|
+
* @name bydfi#watchOHLCV
|
|
60
|
+
* @description watches historical candlestick data containing the open, high, low, close price, and the volume of a market
|
|
61
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#candlestick-data
|
|
62
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
63
|
+
* @param {string} timeframe the length of time each candle represents
|
|
64
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
65
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
66
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
67
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
68
|
+
*/
|
|
69
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
70
|
+
/**
|
|
71
|
+
* @method
|
|
72
|
+
* @name bydfi#unWatchOHLCV
|
|
73
|
+
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
74
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#candlestick-data
|
|
75
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
76
|
+
* @param {string} timeframe the length of time each candle represents
|
|
77
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
78
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
79
|
+
*/
|
|
80
|
+
unWatchOHLCV(symbol: string, timeframe?: string, params?: {}): Promise<any>;
|
|
81
|
+
/**
|
|
82
|
+
* @method
|
|
83
|
+
* @name bydfi#watchOHLCVForSymbols
|
|
84
|
+
* @description watches historical candlestick data containing the open, high, low, close price, and the volume of a market
|
|
85
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#candlestick-data
|
|
86
|
+
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
87
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
88
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
89
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
90
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
91
|
+
*/
|
|
92
|
+
watchOHLCVForSymbols(symbolsAndTimeframes: string[][], since?: Int, limit?: Int, params?: {}): Promise<import("../base/types.js").Dictionary<import("../base/types.js").Dictionary<OHLCV[]>>>;
|
|
93
|
+
/**
|
|
94
|
+
* @method
|
|
95
|
+
* @name bydfi#unWatchOHLCVForSymbols
|
|
96
|
+
* @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
97
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#candlestick-data
|
|
98
|
+
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
99
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
100
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
101
|
+
*/
|
|
102
|
+
unWatchOHLCVForSymbols(symbolsAndTimeframes: string[][], params?: {}): Promise<any>;
|
|
103
|
+
handleOHLCV(client: Client, message: any): void;
|
|
104
|
+
/**
|
|
105
|
+
* @method
|
|
106
|
+
* @name bydfi#watchOrderBook
|
|
107
|
+
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
108
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#limited-depth-information
|
|
109
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
110
|
+
* @param {int} [limit] the maximum amount of order book entries to return (default and maxi is 100)
|
|
111
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
112
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
113
|
+
*/
|
|
114
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
115
|
+
/**
|
|
116
|
+
* @method
|
|
117
|
+
* @name bydfi#unWatchOrderBook
|
|
118
|
+
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
119
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#limited-depth-information
|
|
120
|
+
* @param {string} symbol unified array of symbols
|
|
121
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
123
|
+
*/
|
|
124
|
+
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* @method
|
|
127
|
+
* @name bydfi#watchOrderBookForSymbols
|
|
128
|
+
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
129
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#limited-depth-information
|
|
130
|
+
* @param {string[]} symbols unified array of symbols
|
|
131
|
+
* @param {int} [limit] the maximum amount of order book entries to return (default and max is 100)
|
|
132
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
133
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
134
|
+
*/
|
|
135
|
+
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
136
|
+
/**
|
|
137
|
+
* @method
|
|
138
|
+
* @name bydfi#unWatchOrderBookForSymbols
|
|
139
|
+
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
140
|
+
* @see https://developers.bydfi.com/en/swap/websocket-market#limited-depth-information
|
|
141
|
+
* @param {string[]} symbols unified array of symbols
|
|
142
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
|
+
* @param {string} [params.method] either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
|
|
144
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
145
|
+
*/
|
|
146
|
+
unWatchOrderBookForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
147
|
+
handleOrderBook(client: Client, message: any): void;
|
|
148
|
+
/**
|
|
149
|
+
* @method
|
|
150
|
+
* @name bydfi#watchOrders
|
|
151
|
+
* @description watches information on multiple orders made by the user
|
|
152
|
+
* @see https://developers.bydfi.com/en/swap/websocket-account#order-trade-update-push
|
|
153
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
154
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
155
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
156
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
157
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
158
|
+
*/
|
|
159
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
160
|
+
/**
|
|
161
|
+
* @method
|
|
162
|
+
* @name bydfi#watchOrdersForSymbols
|
|
163
|
+
* @description watches information on multiple orders made by the user
|
|
164
|
+
* @see https://developers.bydfi.com/en/swap/websocket-account#order-trade-update-push
|
|
165
|
+
* @param {string[]} symbols unified symbol of the market to fetch orders for
|
|
166
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
167
|
+
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
168
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
169
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
170
|
+
*/
|
|
171
|
+
watchOrdersForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
172
|
+
handleOrder(client: Client, message: any): void;
|
|
173
|
+
parseWsOrder(order: Dict, market?: Market): Order;
|
|
174
|
+
/**
|
|
175
|
+
* @method
|
|
176
|
+
* @name bydfi#watchPositions
|
|
177
|
+
* @description watch all open positions
|
|
178
|
+
* @see https://developers.bydfi.com/en/swap/websocket-account#balance-and-position-update-push
|
|
179
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
180
|
+
* @param {int} [since] the earliest time in ms to fetch positions for
|
|
181
|
+
* @param {int} [limit] the maximum number of positions to retrieve
|
|
182
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
183
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
184
|
+
*/
|
|
185
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
186
|
+
handlePositions(client: any, message: any): void;
|
|
187
|
+
parseWsPosition(position: any, market?: any): Position;
|
|
188
|
+
parseWsPositionSide(rawPositionSide: Str): Str;
|
|
189
|
+
/**
|
|
190
|
+
* @method
|
|
191
|
+
* @name bydfi#watchBalance
|
|
192
|
+
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
193
|
+
* @see https://developers.bydfi.com/en/swap/websocket-account#balance-and-position-update-push
|
|
194
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
195
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
196
|
+
*/
|
|
197
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
198
|
+
fetchBalanceSnapshot(client: Client): void;
|
|
199
|
+
loadBalanceSnapshot(client: any, messageHash: any): Promise<void>;
|
|
200
|
+
handleBalance(client: Client, message: any): void;
|
|
201
|
+
handleSubscriptionStatus(client: Client, message: any): any;
|
|
202
|
+
handleUnSubscription(client: Client, subscription: Dict): void;
|
|
203
|
+
handlePong(client: Client, message: any): any;
|
|
204
|
+
handleErrorMessage(client: Client, message: any): void;
|
|
205
|
+
handleMessage(client: Client, message: any): void;
|
|
206
|
+
}
|