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
|
@@ -46,7 +46,7 @@ class probit extends probit$1["default"] {
|
|
|
46
46
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
47
47
|
* @see https://docs-en.probit.com/reference/balance-1
|
|
48
48
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
49
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
49
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
50
50
|
*/
|
|
51
51
|
async watchBalance(params = {}) {
|
|
52
52
|
await this.authenticate(params);
|
|
@@ -108,7 +108,7 @@ class probit extends probit$1["default"] {
|
|
|
108
108
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
109
109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
110
110
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
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
|
async watchTicker(symbol, params = {}) {
|
|
114
114
|
const channel = 'ticker';
|
|
@@ -152,7 +152,7 @@ class probit extends probit$1["default"] {
|
|
|
152
152
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
153
153
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
154
154
|
* @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
|
|
155
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
155
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
156
156
|
*/
|
|
157
157
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
158
158
|
const channel = 'recent_trades';
|
|
@@ -215,7 +215,7 @@ class probit extends probit$1["default"] {
|
|
|
215
215
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
216
216
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
217
217
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
218
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
218
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
219
219
|
*/
|
|
220
220
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
221
221
|
await this.loadMarkets();
|
|
@@ -299,7 +299,7 @@ class probit extends probit$1["default"] {
|
|
|
299
299
|
* @param {int} [limit] the maximum amount of orders to watch
|
|
300
300
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
301
301
|
* @param {string} [params.channel] choose what channel to use. Can open_order or order_history.
|
|
302
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
302
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
303
303
|
*/
|
|
304
304
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
305
305
|
await this.authenticate(params);
|
|
@@ -375,7 +375,7 @@ class probit extends probit$1["default"] {
|
|
|
375
375
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
376
376
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
377
377
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
378
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
378
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
379
379
|
*/
|
|
380
380
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
381
381
|
let channel = undefined;
|
|
@@ -165,7 +165,7 @@ class toobit extends toobit$1["default"] {
|
|
|
165
165
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
166
166
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
167
167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
168
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
168
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
169
169
|
*/
|
|
170
170
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
171
171
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
@@ -180,7 +180,7 @@ class toobit extends toobit$1["default"] {
|
|
|
180
180
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
181
181
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
182
182
|
* @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
|
|
183
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
183
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
184
184
|
*/
|
|
185
185
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
186
186
|
await this.loadMarkets();
|
|
@@ -388,7 +388,7 @@ class toobit extends toobit$1["default"] {
|
|
|
388
388
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
389
389
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
390
390
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
391
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
391
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
392
392
|
*/
|
|
393
393
|
async watchTicker(symbol, params = {}) {
|
|
394
394
|
await this.loadMarkets();
|
|
@@ -403,7 +403,7 @@ class toobit extends toobit$1["default"] {
|
|
|
403
403
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
404
404
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
405
405
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
406
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
406
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
407
407
|
*/
|
|
408
408
|
async watchTickers(symbols = undefined, params = {}) {
|
|
409
409
|
await this.loadMarkets();
|
|
@@ -490,7 +490,7 @@ class toobit extends toobit$1["default"] {
|
|
|
490
490
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
491
491
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
492
492
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
493
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
493
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
494
494
|
*/
|
|
495
495
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
496
496
|
return await this.watchOrderBookForSymbols([symbol], limit, params);
|
|
@@ -503,7 +503,7 @@ class toobit extends toobit$1["default"] {
|
|
|
503
503
|
* @param {string[]} symbols unified array of symbols
|
|
504
504
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
505
505
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
506
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
506
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
507
507
|
*/
|
|
508
508
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
509
509
|
await this.loadMarkets();
|
|
@@ -633,7 +633,7 @@ class toobit extends toobit$1["default"] {
|
|
|
633
633
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
634
634
|
* @see https://toobit-docs.github.io/apidocs/spot/v1/en/#payload-account-update
|
|
635
635
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
636
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
636
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
637
637
|
*/
|
|
638
638
|
async watchBalance(params = {}) {
|
|
639
639
|
await this.loadMarkets();
|
|
@@ -727,10 +727,12 @@ class toobit extends toobit$1["default"] {
|
|
|
727
727
|
const type = (marketType === 'spot') ? 'spot' : 'contract';
|
|
728
728
|
this.balance[type] = this.extend(response, this.safeDict(this.balance, type, {}));
|
|
729
729
|
// don't remove the future from the .futures cache
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
730
|
+
if (messageHash in client.futures) {
|
|
731
|
+
const future = client.futures[messageHash];
|
|
732
|
+
future.resolve();
|
|
733
|
+
client.resolve(this.balance[type], type + ':fetchBalanceSnapshot');
|
|
734
|
+
client.resolve(this.balance[type], type + ':balance'); // we should also resolve right away after snapshot, so user doesn't double-fetch balance
|
|
735
|
+
}
|
|
734
736
|
}
|
|
735
737
|
/**
|
|
736
738
|
* @method
|
|
@@ -741,7 +743,7 @@ class toobit extends toobit$1["default"] {
|
|
|
741
743
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
742
744
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
743
745
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
744
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
746
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
745
747
|
*/
|
|
746
748
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
747
749
|
await this.loadMarkets();
|
|
@@ -859,7 +861,7 @@ class toobit extends toobit$1["default"] {
|
|
|
859
861
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
860
862
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
861
863
|
* @param {boolean} [params.unifiedMargin] use unified margin account
|
|
862
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
864
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
863
865
|
*/
|
|
864
866
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
865
867
|
await this.loadMarkets();
|
|
@@ -990,9 +992,11 @@ class toobit extends toobit$1["default"] {
|
|
|
990
992
|
cache.append(position);
|
|
991
993
|
}
|
|
992
994
|
// don't remove the future from the .futures cache
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
995
|
+
if (messageHash in client.futures) {
|
|
996
|
+
const future = client.futures[messageHash];
|
|
997
|
+
future.resolve(cache);
|
|
998
|
+
client.resolve(cache, type + ':positions');
|
|
999
|
+
}
|
|
996
1000
|
}
|
|
997
1001
|
handlePositions(client, message) {
|
|
998
1002
|
//
|
|
@@ -83,7 +83,7 @@ class upbit extends upbit$1["default"] {
|
|
|
83
83
|
* @see https://global-docs.upbit.com/reference/websocket-ticker
|
|
84
84
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
85
85
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
86
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
87
87
|
*/
|
|
88
88
|
async watchTicker(symbol, params = {}) {
|
|
89
89
|
return await this.watchPublicMultiple([symbol], 'ticker');
|
|
@@ -95,7 +95,7 @@ class upbit extends upbit$1["default"] {
|
|
|
95
95
|
* @see https://global-docs.upbit.com/reference/websocket-ticker
|
|
96
96
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
97
97
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
98
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
98
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
99
99
|
*/
|
|
100
100
|
async watchTickers(symbols = undefined, params = {}) {
|
|
101
101
|
const newTickers = await this.watchPublicMultiple(symbols, 'ticker');
|
|
@@ -115,7 +115,7 @@ class upbit extends upbit$1["default"] {
|
|
|
115
115
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
116
116
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
117
117
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
118
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
118
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
119
119
|
*/
|
|
120
120
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
121
121
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
@@ -129,7 +129,7 @@ class upbit extends upbit$1["default"] {
|
|
|
129
129
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
130
130
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
131
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
132
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
133
133
|
*/
|
|
134
134
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
135
135
|
const trades = await this.watchPublicMultiple(symbols, 'trade');
|
|
@@ -148,7 +148,7 @@ class upbit extends upbit$1["default"] {
|
|
|
148
148
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
149
149
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
150
150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
151
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
151
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
152
152
|
*/
|
|
153
153
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
154
154
|
const orderbook = await this.watchPublicMultiple([symbol], 'orderbook');
|
|
@@ -165,7 +165,7 @@ class upbit extends upbit$1["default"] {
|
|
|
165
165
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
166
166
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
167
167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
168
|
-
* @returns {OHLCV[]} a list of [OHLCV structures]{@link https://docs.ccxt.com
|
|
168
|
+
* @returns {OHLCV[]} a list of [OHLCV structures]{@link https://docs.ccxt.com/?id=ohlcv-structure}
|
|
169
169
|
*/
|
|
170
170
|
async watchOHLCV(symbol, timeframe = '1s', since = undefined, limit = undefined, params = {}) {
|
|
171
171
|
if (timeframe !== '1s') {
|
|
@@ -400,7 +400,7 @@ class upbit extends upbit$1["default"] {
|
|
|
400
400
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
401
401
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
402
402
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
403
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
403
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
404
404
|
*/
|
|
405
405
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
406
406
|
await this.loadMarkets();
|
|
@@ -421,7 +421,7 @@ class upbit extends upbit$1["default"] {
|
|
|
421
421
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
422
422
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
423
423
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
424
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
424
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
425
425
|
*/
|
|
426
426
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
427
427
|
await this.loadMarkets();
|
|
@@ -607,7 +607,7 @@ class upbit extends upbit$1["default"] {
|
|
|
607
607
|
* @see https://global-docs.upbit.com/reference/websocket-myasset
|
|
608
608
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
609
609
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
610
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
610
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
611
611
|
*/
|
|
612
612
|
async watchBalance(params = {}) {
|
|
613
613
|
await this.loadMarkets();
|
|
@@ -143,7 +143,7 @@ class whitebit extends whitebit$1["default"] {
|
|
|
143
143
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
144
144
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
145
145
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
146
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
146
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
147
147
|
*/
|
|
148
148
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
149
149
|
await this.loadMarkets();
|
|
@@ -248,7 +248,7 @@ class whitebit extends whitebit$1["default"] {
|
|
|
248
248
|
* @see https://docs.whitebit.com/public/websocket/#market-statistics
|
|
249
249
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
250
250
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
251
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
251
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
252
252
|
*/
|
|
253
253
|
async watchTicker(symbol, params = {}) {
|
|
254
254
|
await this.loadMarkets();
|
|
@@ -266,7 +266,7 @@ class whitebit extends whitebit$1["default"] {
|
|
|
266
266
|
* @see https://docs.whitebit.com/public/websocket/#market-statistics
|
|
267
267
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
268
268
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
269
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
269
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
270
270
|
*/
|
|
271
271
|
async watchTickers(symbols = undefined, params = {}) {
|
|
272
272
|
await this.loadMarkets();
|
|
@@ -347,7 +347,7 @@ class whitebit extends whitebit$1["default"] {
|
|
|
347
347
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
348
348
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
349
349
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
350
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
350
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
351
351
|
*/
|
|
352
352
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
353
353
|
await this.loadMarkets();
|
|
@@ -414,7 +414,7 @@ class whitebit extends whitebit$1["default"] {
|
|
|
414
414
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
415
415
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
416
416
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
417
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
417
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
418
418
|
*/
|
|
419
419
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
420
420
|
if (symbol === undefined) {
|
|
@@ -514,7 +514,7 @@ class whitebit extends whitebit$1["default"] {
|
|
|
514
514
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
515
515
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
516
516
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
517
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
517
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
518
518
|
*/
|
|
519
519
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
520
520
|
if (symbol === undefined) {
|
|
@@ -689,7 +689,7 @@ class whitebit extends whitebit$1["default"] {
|
|
|
689
689
|
* @see https://docs.whitebit.com/private/websocket/#balance-margin
|
|
690
690
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
691
691
|
* @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
|
|
692
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
692
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
693
693
|
*/
|
|
694
694
|
async watchBalance(params = {}) {
|
|
695
695
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/woo.js
CHANGED
|
@@ -125,7 +125,7 @@ class woo extends woo$1["default"] {
|
|
|
125
125
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
126
126
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
127
127
|
* @param {string} [params.method] either (default) 'orderbook' or 'orderbookupdate', default is 'orderbook'
|
|
128
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
128
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
129
129
|
*/
|
|
130
130
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
131
131
|
await this.loadMarkets();
|
|
@@ -162,7 +162,7 @@ class woo extends woo$1["default"] {
|
|
|
162
162
|
* @see https://docs.woox.io/#orderbook
|
|
163
163
|
* @param {string} symbol unified symbol of the market
|
|
164
164
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
165
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
165
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
166
166
|
*/
|
|
167
167
|
async unWatchOrderBook(symbol, params = {}) {
|
|
168
168
|
await this.loadMarkets();
|
|
@@ -308,7 +308,7 @@ class woo extends woo$1["default"] {
|
|
|
308
308
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
309
309
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
310
310
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
311
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
312
312
|
*/
|
|
313
313
|
async watchTicker(symbol, params = {}) {
|
|
314
314
|
await this.loadMarkets();
|
|
@@ -329,7 +329,7 @@ class woo extends woo$1["default"] {
|
|
|
329
329
|
* @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
330
330
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
331
331
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
332
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
332
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
333
333
|
*/
|
|
334
334
|
async unWatchTicker(symbol, params = {}) {
|
|
335
335
|
await this.loadMarkets();
|
|
@@ -412,7 +412,7 @@ class woo extends woo$1["default"] {
|
|
|
412
412
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
413
413
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
414
414
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
415
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
415
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
416
416
|
*/
|
|
417
417
|
async watchTickers(symbols = undefined, params = {}) {
|
|
418
418
|
await this.loadMarkets();
|
|
@@ -434,7 +434,7 @@ class woo extends woo$1["default"] {
|
|
|
434
434
|
* @description stops watching a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
435
435
|
* @param {string[]} symbols unified symbol of the market to stop fetching the ticker for
|
|
436
436
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
437
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
437
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
438
438
|
*/
|
|
439
439
|
async unWatchTickers(symbols = undefined, params = {}) {
|
|
440
440
|
await this.loadMarkets();
|
|
@@ -495,7 +495,7 @@ class woo extends woo$1["default"] {
|
|
|
495
495
|
* @description watches best bid & ask for symbols
|
|
496
496
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
497
497
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
498
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
499
499
|
*/
|
|
500
500
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
501
501
|
await this.loadMarkets();
|
|
@@ -520,7 +520,7 @@ class woo extends woo$1["default"] {
|
|
|
520
520
|
* @description unWatches best bid & ask for symbols
|
|
521
521
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for (not used by woo)
|
|
522
522
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
523
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
523
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
524
524
|
*/
|
|
525
525
|
async unWatchBidsAsks(symbols = undefined, params = {}) {
|
|
526
526
|
await this.loadMarkets();
|
|
@@ -683,7 +683,7 @@ class woo extends woo$1["default"] {
|
|
|
683
683
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
684
684
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
685
685
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
686
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
686
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
687
687
|
*/
|
|
688
688
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
689
689
|
await this.loadMarkets();
|
|
@@ -708,7 +708,7 @@ class woo extends woo$1["default"] {
|
|
|
708
708
|
* @see https://docs.woox.io/#trade
|
|
709
709
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
710
710
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
711
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
711
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
712
712
|
*/
|
|
713
713
|
async unWatchTrades(symbol, params = {}) {
|
|
714
714
|
await this.loadMarkets();
|
|
@@ -892,7 +892,7 @@ class woo extends woo$1["default"] {
|
|
|
892
892
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
893
893
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
894
894
|
* @param {bool} [params.trigger] true if trigger order
|
|
895
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
895
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
896
896
|
*/
|
|
897
897
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
898
898
|
await this.loadMarkets();
|
|
@@ -927,7 +927,7 @@ class woo extends woo$1["default"] {
|
|
|
927
927
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
928
928
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
929
929
|
* @param {bool} [params.trigger] true if trigger order
|
|
930
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
930
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
931
931
|
*/
|
|
932
932
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
933
933
|
await this.loadMarkets();
|
|
@@ -1268,9 +1268,11 @@ class woo extends woo$1["default"] {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
1270
|
// don't remove the future from the .futures cache
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1271
|
+
if (messageHash in client.futures) {
|
|
1272
|
+
const future = client.futures[messageHash];
|
|
1273
|
+
future.resolve(cache);
|
|
1274
|
+
client.resolve(cache, 'positions');
|
|
1275
|
+
}
|
|
1274
1276
|
}
|
|
1275
1277
|
handlePositions(client, message) {
|
|
1276
1278
|
//
|
|
@@ -1324,7 +1326,7 @@ class woo extends woo$1["default"] {
|
|
|
1324
1326
|
* @name woo#watchBalance
|
|
1325
1327
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1326
1328
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1327
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1329
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1328
1330
|
*/
|
|
1329
1331
|
async watchBalance(params = {}) {
|
|
1330
1332
|
await this.loadMarkets();
|
|
@@ -93,12 +93,12 @@ class woofipro extends woofipro$1["default"] {
|
|
|
93
93
|
/**
|
|
94
94
|
* @method
|
|
95
95
|
* @name woofipro#watchOrderBook
|
|
96
|
-
* @see https://orderly.network/docs/build-on-
|
|
96
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/orderbook
|
|
97
97
|
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
98
98
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
99
99
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
100
100
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
101
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
101
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
102
102
|
*/
|
|
103
103
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
104
104
|
await this.loadMarkets();
|
|
@@ -152,11 +152,11 @@ class woofipro extends woofipro$1["default"] {
|
|
|
152
152
|
/**
|
|
153
153
|
* @method
|
|
154
154
|
* @name woofipro#watchTicker
|
|
155
|
-
* @see https://orderly.network/docs/build-on-
|
|
155
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/24-hour-ticker
|
|
156
156
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
157
157
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
158
158
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
159
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
159
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
160
160
|
*/
|
|
161
161
|
async watchTicker(symbol, params = {}) {
|
|
162
162
|
await this.loadMarkets();
|
|
@@ -239,11 +239,11 @@ class woofipro extends woofipro$1["default"] {
|
|
|
239
239
|
/**
|
|
240
240
|
* @method
|
|
241
241
|
* @name woofipro#watchTickers
|
|
242
|
-
* @see https://orderly.network/docs/build-on-
|
|
242
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/24-hour-tickers
|
|
243
243
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
244
244
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
245
245
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
246
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
246
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
247
247
|
*/
|
|
248
248
|
async watchTickers(symbols = undefined, params = {}) {
|
|
249
249
|
await this.loadMarkets();
|
|
@@ -294,11 +294,11 @@ class woofipro extends woofipro$1["default"] {
|
|
|
294
294
|
/**
|
|
295
295
|
* @method
|
|
296
296
|
* @name woofipro#watchBidsAsks
|
|
297
|
-
* @see https://orderly.network/docs/build-on-
|
|
297
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/bbos
|
|
298
298
|
* @description watches best bid & ask for symbols
|
|
299
299
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
300
300
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
301
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
301
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
302
302
|
*/
|
|
303
303
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
304
304
|
await this.loadMarkets();
|
|
@@ -360,7 +360,7 @@ class woofipro extends woofipro$1["default"] {
|
|
|
360
360
|
* @method
|
|
361
361
|
* @name woofipro#watchOHLCV
|
|
362
362
|
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
363
|
-
* @see https://orderly.network/docs/build-on-
|
|
363
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/k-line
|
|
364
364
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
365
365
|
* @param {string} timeframe the length of time each candle represents
|
|
366
366
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -437,12 +437,12 @@ class woofipro extends woofipro$1["default"] {
|
|
|
437
437
|
* @method
|
|
438
438
|
* @name woofipro#watchTrades
|
|
439
439
|
* @description watches information on multiple trades made in a market
|
|
440
|
-
* @see https://orderly.network/docs/build-on-
|
|
440
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/trade
|
|
441
441
|
* @param {string} symbol unified market symbol of the market trades were made in
|
|
442
442
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
443
443
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
444
444
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
445
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
445
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
446
446
|
*/
|
|
447
447
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
448
448
|
await this.loadMarkets();
|
|
@@ -642,14 +642,14 @@ class woofipro extends woofipro$1["default"] {
|
|
|
642
642
|
* @method
|
|
643
643
|
* @name woofipro#watchOrders
|
|
644
644
|
* @description watches information on multiple orders made by the user
|
|
645
|
-
* @see https://orderly.network/docs/build-on-
|
|
646
|
-
* @see https://orderly.network/docs/build-on-
|
|
645
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/execution-report
|
|
646
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/algo-execution-report
|
|
647
647
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
648
648
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
649
649
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
650
650
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
651
651
|
* @param {bool} [params.trigger] true if trigger order
|
|
652
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
652
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
653
653
|
*/
|
|
654
654
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
655
655
|
await this.loadMarkets();
|
|
@@ -677,14 +677,14 @@ class woofipro extends woofipro$1["default"] {
|
|
|
677
677
|
* @method
|
|
678
678
|
* @name woofipro#watchMyTrades
|
|
679
679
|
* @description watches information on multiple trades made by the user
|
|
680
|
-
* @see https://orderly.network/docs/build-on-
|
|
681
|
-
* @see https://orderly.network/docs/build-on-
|
|
680
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/execution-report
|
|
681
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/algo-execution-report
|
|
682
682
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
683
683
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
684
684
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
685
685
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
686
686
|
* @param {bool} [params.trigger] true if trigger order
|
|
687
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
687
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
688
688
|
*/
|
|
689
689
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
690
690
|
await this.loadMarkets();
|
|
@@ -958,7 +958,7 @@ class woofipro extends woofipro$1["default"] {
|
|
|
958
958
|
/**
|
|
959
959
|
* @method
|
|
960
960
|
* @name woofipro#watchPositions
|
|
961
|
-
* @see https://orderly.network/docs/build-on-
|
|
961
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/position-push
|
|
962
962
|
* @description watch all open positions
|
|
963
963
|
* @param {string[]} [symbols] list of unified market symbols
|
|
964
964
|
* @param since timestamp in ms of the earliest position to fetch
|
|
@@ -1023,9 +1023,11 @@ class woofipro extends woofipro$1["default"] {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
// don't remove the future from the .futures cache
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1026
|
+
if (messageHash in client.futures) {
|
|
1027
|
+
const future = client.futures[messageHash];
|
|
1028
|
+
future.resolve(cache);
|
|
1029
|
+
client.resolve(cache, 'positions');
|
|
1030
|
+
}
|
|
1029
1031
|
}
|
|
1030
1032
|
handlePositions(client, message) {
|
|
1031
1033
|
//
|
|
@@ -1156,9 +1158,9 @@ class woofipro extends woofipro$1["default"] {
|
|
|
1156
1158
|
* @method
|
|
1157
1159
|
* @name woofipro#watchBalance
|
|
1158
1160
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1159
|
-
* @see https://orderly.network/docs/build-on-
|
|
1161
|
+
* @see https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/balance
|
|
1160
1162
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1161
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1163
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1162
1164
|
*/
|
|
1163
1165
|
async watchBalance(params = {}) {
|
|
1164
1166
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/xt.js
CHANGED
|
@@ -530,7 +530,7 @@ class xt extends xt$1["default"] {
|
|
|
530
530
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
531
531
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
532
532
|
* @param {object} params extra parameters specific to the kucoin api endpoint
|
|
533
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
533
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
534
534
|
*/
|
|
535
535
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
536
536
|
await this.loadMarkets();
|
|
@@ -552,7 +552,7 @@ class xt extends xt$1["default"] {
|
|
|
552
552
|
* @see https://doc.xt.com/#websocket_privatebalanceChange
|
|
553
553
|
* @see https://doc.xt.com/#futures_user_websocket_v2balance
|
|
554
554
|
* @param {object} params extra parameters specific to the xt api endpoint
|
|
555
|
-
* @returns {object[]} a list of [balance structures]{@link https://docs.ccxt.com
|
|
555
|
+
* @returns {object[]} a list of [balance structures]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
556
556
|
*/
|
|
557
557
|
async watchBalance(params = {}) {
|
|
558
558
|
await this.loadMarkets();
|
|
@@ -614,9 +614,11 @@ class xt extends xt$1["default"] {
|
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
// don't remove the future from the .futures cache
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
617
|
+
if (messageHash in client.futures) {
|
|
618
|
+
const future = client.futures[messageHash];
|
|
619
|
+
future.resolve(cache);
|
|
620
|
+
client.resolve(cache, 'position::contract');
|
|
621
|
+
}
|
|
620
622
|
}
|
|
621
623
|
handlePosition(client, message) {
|
|
622
624
|
//
|