ccxt 4.5.28 → 4.5.29
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 +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- 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 +46 -46
- 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 +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- 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 +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- 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 +76 -42
- 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 +44 -44
- 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 +8 -8
- 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 +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- 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 +388 -31
- 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 +19 -19
- 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 +20 -20
- 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 +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- 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 +13 -13
- 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 +8 -8
- 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 +9 -9
- 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 +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- 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 +31 -29
- 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 +1 -1
- package/js/ccxt.js +1 -1
- 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 +46 -46
- 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 +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- 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 +22 -22
- 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 +57 -57
- 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 +76 -42
- 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 +44 -44
- package/js/src/kucoin.js +44 -44
- 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 +8 -8
- 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 +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- 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 +388 -31
- 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 +19 -19
- 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 +20 -20
- 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 +21 -59
- 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 +6 -6
- 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 +13 -13
- 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 +8 -8
- 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 +9 -9
- 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 +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- 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 +31 -29
- 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
|
@@ -79,7 +79,7 @@ class deribit extends deribit$1["default"] {
|
|
|
79
79
|
* @see https://docs.deribit.com/#user-portfolio-currency
|
|
80
80
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
81
81
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
82
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
83
83
|
*/
|
|
84
84
|
async watchBalance(params = {}) {
|
|
85
85
|
await this.authenticate(params);
|
|
@@ -164,7 +164,7 @@ class deribit extends deribit$1["default"] {
|
|
|
164
164
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
165
165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
166
166
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
167
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
167
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
168
168
|
*/
|
|
169
169
|
async watchTicker(symbol, params = {}) {
|
|
170
170
|
await this.loadMarkets();
|
|
@@ -196,7 +196,7 @@ class deribit extends deribit$1["default"] {
|
|
|
196
196
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
197
197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
198
198
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
199
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
199
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
200
200
|
*/
|
|
201
201
|
async watchTickers(symbols = undefined, params = {}) {
|
|
202
202
|
await this.loadMarkets();
|
|
@@ -276,7 +276,7 @@ class deribit extends deribit$1["default"] {
|
|
|
276
276
|
* @description watches best bid & ask for symbols
|
|
277
277
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
278
278
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
279
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
279
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
280
280
|
*/
|
|
281
281
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
282
282
|
await this.loadMarkets();
|
|
@@ -356,7 +356,7 @@ class deribit extends deribit$1["default"] {
|
|
|
356
356
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
357
357
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
358
358
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
359
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
359
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
360
360
|
*/
|
|
361
361
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
362
362
|
params['callerMethodName'] = 'watchTrades';
|
|
@@ -371,7 +371,7 @@ class deribit extends deribit$1["default"] {
|
|
|
371
371
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
372
372
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
373
373
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
374
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
374
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
375
375
|
*/
|
|
376
376
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
377
377
|
let interval = undefined;
|
|
@@ -441,7 +441,7 @@ class deribit extends deribit$1["default"] {
|
|
|
441
441
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
442
442
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
443
443
|
* @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
|
|
444
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
444
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
445
445
|
*/
|
|
446
446
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
447
447
|
await this.authenticate(params);
|
|
@@ -523,7 +523,7 @@ class deribit extends deribit$1["default"] {
|
|
|
523
523
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
524
524
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
525
525
|
* @param {string} [params.interval] Frequency of notifications. Events will be aggregated over this interval. Possible values: 100ms, raw
|
|
526
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
526
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
527
527
|
*/
|
|
528
528
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
529
529
|
params['callerMethodName'] = 'watchOrderBook';
|
|
@@ -537,7 +537,7 @@ class deribit extends deribit$1["default"] {
|
|
|
537
537
|
* @param {string[]} symbols unified array of symbols
|
|
538
538
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
539
539
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
540
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
540
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
541
541
|
*/
|
|
542
542
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
543
543
|
let interval = undefined;
|
|
@@ -682,7 +682,7 @@ class deribit extends deribit$1["default"] {
|
|
|
682
682
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
683
683
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
684
684
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
685
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
685
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
686
686
|
*/
|
|
687
687
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
688
688
|
await this.loadMarkets();
|
|
@@ -75,7 +75,7 @@ class derive extends derive$1["default"] {
|
|
|
75
75
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
76
76
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
77
77
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
78
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
78
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
79
79
|
*/
|
|
80
80
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
81
81
|
await this.loadMarkets();
|
|
@@ -142,7 +142,7 @@ class derive extends derive$1["default"] {
|
|
|
142
142
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
143
143
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
144
144
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
145
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
146
146
|
*/
|
|
147
147
|
async watchTicker(symbol, params = {}) {
|
|
148
148
|
await this.loadMarkets();
|
|
@@ -244,7 +244,7 @@ class derive extends derive$1["default"] {
|
|
|
244
244
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
245
245
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
246
246
|
* @param {int} [params.limit] orderbook limit, default is undefined
|
|
247
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
247
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
248
248
|
*/
|
|
249
249
|
async unWatchOrderBook(symbol, params = {}) {
|
|
250
250
|
await this.loadMarkets();
|
|
@@ -371,7 +371,7 @@ class derive extends derive$1["default"] {
|
|
|
371
371
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
372
372
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
373
373
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
374
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
374
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
375
375
|
*/
|
|
376
376
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
377
377
|
await this.loadMarkets();
|
|
@@ -472,7 +472,7 @@ class derive extends derive$1["default"] {
|
|
|
472
472
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
473
473
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
474
474
|
* @param {string} [params.subaccount_id] *required* the subaccount id
|
|
475
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
475
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
476
476
|
*/
|
|
477
477
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
478
478
|
await this.loadMarkets();
|
|
@@ -592,7 +592,7 @@ class derive extends derive$1["default"] {
|
|
|
592
592
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
593
593
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
594
594
|
* @param {string} [params.subaccount_id] *required* the subaccount id
|
|
595
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
595
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
596
596
|
*/
|
|
597
597
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
598
598
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/dydx.js
CHANGED
|
@@ -67,7 +67,7 @@ class dydx extends dydx$1["default"] {
|
|
|
67
67
|
* @see https://docs.dydx.xyz/indexer-client/websockets#trades
|
|
68
68
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
69
69
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
70
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
70
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
71
71
|
*/
|
|
72
72
|
async unWatchTrades(symbol, params = {}) {
|
|
73
73
|
await this.loadMarkets();
|
|
@@ -160,7 +160,7 @@ class dydx extends dydx$1["default"] {
|
|
|
160
160
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
161
161
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
162
162
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
163
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
163
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
164
164
|
*/
|
|
165
165
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
166
166
|
await this.loadMarkets();
|
|
@@ -182,7 +182,7 @@ class dydx extends dydx$1["default"] {
|
|
|
182
182
|
* @see https://docs.dydx.xyz/indexer-client/websockets#orders
|
|
183
183
|
* @param {string} symbol unified array of symbols
|
|
184
184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
185
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
186
186
|
*/
|
|
187
187
|
async unWatchOrderBook(symbol, params = {}) {
|
|
188
188
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/exmo.js
CHANGED
|
@@ -49,7 +49,7 @@ class exmo extends exmo$1["default"] {
|
|
|
49
49
|
* @name exmo#watchBalance
|
|
50
50
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
51
51
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
52
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
52
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
53
53
|
*/
|
|
54
54
|
async watchBalance(params = {}) {
|
|
55
55
|
await this.authenticate(params);
|
|
@@ -206,7 +206,7 @@ class exmo extends exmo$1["default"] {
|
|
|
206
206
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#fd8f47bc-8517-43c0-bb60-1d61a86d4471
|
|
207
207
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
208
208
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
209
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
209
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
210
210
|
*/
|
|
211
211
|
async watchTicker(symbol, params = {}) {
|
|
212
212
|
await this.loadMarkets();
|
|
@@ -231,7 +231,7 @@ class exmo extends exmo$1["default"] {
|
|
|
231
231
|
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#fd8f47bc-8517-43c0-bb60-1d61a86d4471
|
|
232
232
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
233
233
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
234
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
234
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
235
235
|
*/
|
|
236
236
|
async watchTickers(symbols = undefined, params = {}) {
|
|
237
237
|
await this.loadMarkets();
|
|
@@ -292,7 +292,7 @@ class exmo extends exmo$1["default"] {
|
|
|
292
292
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
293
293
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
294
294
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
295
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
296
296
|
*/
|
|
297
297
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
298
298
|
await this.loadMarkets();
|
|
@@ -356,7 +356,7 @@ class exmo extends exmo$1["default"] {
|
|
|
356
356
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
357
357
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
358
358
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
359
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
359
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
360
360
|
*/
|
|
361
361
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
362
362
|
await this.loadMarkets();
|
|
@@ -485,7 +485,7 @@ class exmo extends exmo$1["default"] {
|
|
|
485
485
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
486
486
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
487
487
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
488
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
488
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
489
489
|
*/
|
|
490
490
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
491
491
|
await this.loadMarkets();
|
|
@@ -584,7 +584,7 @@ class exmo extends exmo$1["default"] {
|
|
|
584
584
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
585
585
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
586
586
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
587
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
587
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
588
588
|
*/
|
|
589
589
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
590
590
|
await this.loadMarkets();
|
package/dist/cjs/src/pro/gate.js
CHANGED
|
@@ -149,7 +149,7 @@ class gate extends gate$1["default"] {
|
|
|
149
149
|
* @param {bool} [params.auto_size] *contract only* Set side to close dual-mode position, close_long closes the long side, while close_short the short one, size also needs to be set to 0
|
|
150
150
|
* @param {int} [params.price_type] *contract only* 0 latest deal price, 1 mark price, 2 index price
|
|
151
151
|
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
152
|
-
* @returns {object|undefined} [An order structure]{@link https://docs.ccxt.com
|
|
152
|
+
* @returns {object|undefined} [An order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
153
153
|
*/
|
|
154
154
|
async createOrderWs(symbol, type, side, amount, price = undefined, params = {}) {
|
|
155
155
|
await this.loadMarkets();
|
|
@@ -172,7 +172,7 @@ class gate extends gate$1["default"] {
|
|
|
172
172
|
* @see https://www.gate.io/docs/developers/futures/ws/en/#order-batch-place
|
|
173
173
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
174
174
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
175
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
176
176
|
*/
|
|
177
177
|
async createOrdersWs(orders, params = {}) {
|
|
178
178
|
await this.loadMarkets();
|
|
@@ -198,7 +198,7 @@ class gate extends gate$1["default"] {
|
|
|
198
198
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
199
199
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
200
200
|
* @param {string} [params.channel] the channel to use, defaults to spot.order_cancel_cp or futures.order_cancel_cp
|
|
201
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
201
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
202
202
|
*/
|
|
203
203
|
async cancelAllOrdersWs(symbol = undefined, params = {}) {
|
|
204
204
|
await this.loadMarkets();
|
|
@@ -225,7 +225,7 @@ class gate extends gate$1["default"] {
|
|
|
225
225
|
* @param {string} symbol Unified market symbol
|
|
226
226
|
* @param {object} [params] Parameters specified by the exchange api
|
|
227
227
|
* @param {bool} [params.trigger] True if the order to be cancelled is a trigger order
|
|
228
|
-
* @returns An [order structure]{@link https://docs.ccxt.com
|
|
228
|
+
* @returns An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
229
229
|
*/
|
|
230
230
|
async cancelOrderWs(id, symbol = undefined, params = {}) {
|
|
231
231
|
await this.loadMarkets();
|
|
@@ -255,7 +255,7 @@ class gate extends gate$1["default"] {
|
|
|
255
255
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
256
256
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
257
257
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
258
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
258
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
259
259
|
*/
|
|
260
260
|
async editOrderWs(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
261
261
|
await this.loadMarkets();
|
|
@@ -281,7 +281,7 @@ class gate extends gate$1["default"] {
|
|
|
281
281
|
* @param {string} [params.marginMode] 'cross' or 'isolated' - marginMode for margin trading if not provided this.options['defaultMarginMode'] is used
|
|
282
282
|
* @param {string} [params.type] 'spot', 'swap', or 'future', if not provided this.options['defaultMarginMode'] is used
|
|
283
283
|
* @param {string} [params.settle] 'btc' or 'usdt' - settle currency for perpetual swap and future - market settle currency is used if symbol !== undefined, default="usdt" for swap and "btc" for future
|
|
284
|
-
* @returns An [order structure]{@link https://docs.ccxt.com
|
|
284
|
+
* @returns An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
285
285
|
*/
|
|
286
286
|
async fetchOrderWs(id, symbol = undefined, params = {}) {
|
|
287
287
|
await this.loadMarkets();
|
|
@@ -303,7 +303,7 @@ class gate extends gate$1["default"] {
|
|
|
303
303
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
304
304
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
305
305
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
306
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
307
307
|
*/
|
|
308
308
|
async fetchOpenOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
309
309
|
return await this.fetchOrdersByStatusWs('open', symbol, since, limit, params);
|
|
@@ -317,7 +317,7 @@ class gate extends gate$1["default"] {
|
|
|
317
317
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
318
318
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
319
319
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
320
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
320
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
321
321
|
*/
|
|
322
322
|
async fetchClosedOrdersWs(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
323
323
|
return await this.fetchOrdersByStatusWs('finished', symbol, since, limit, params);
|
|
@@ -334,7 +334,7 @@ class gate extends gate$1["default"] {
|
|
|
334
334
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
335
335
|
* @param {int} [params.orderId] order id to begin at
|
|
336
336
|
* @param {int} [params.limit] the maximum number of order structures to retrieve
|
|
337
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
337
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
338
338
|
*/
|
|
339
339
|
async fetchOrdersByStatusWs(status, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
340
340
|
await this.loadMarkets();
|
|
@@ -368,7 +368,7 @@ class gate extends gate$1["default"] {
|
|
|
368
368
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
369
369
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
370
370
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
371
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
371
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
372
372
|
*/
|
|
373
373
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
374
374
|
await this.loadMarkets();
|
|
@@ -401,7 +401,7 @@ class gate extends gate$1["default"] {
|
|
|
401
401
|
* @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
402
402
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
403
403
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
404
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
404
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
405
405
|
*/
|
|
406
406
|
async unWatchOrderBook(symbol, params = {}) {
|
|
407
407
|
await this.loadMarkets();
|
|
@@ -577,7 +577,7 @@ class gate extends gate$1["default"] {
|
|
|
577
577
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
578
578
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
579
579
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
580
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
580
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
581
581
|
*/
|
|
582
582
|
async watchTicker(symbol, params = {}) {
|
|
583
583
|
await this.loadMarkets();
|
|
@@ -594,7 +594,7 @@ class gate extends gate$1["default"] {
|
|
|
594
594
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
595
595
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
596
596
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
597
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
597
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
598
598
|
*/
|
|
599
599
|
async watchTickers(symbols = undefined, params = {}) {
|
|
600
600
|
return await this.subscribeWatchTickersAndBidsAsks(symbols, 'watchTickers', this.extend({ 'method': 'tickers' }, params));
|
|
@@ -628,7 +628,7 @@ class gate extends gate$1["default"] {
|
|
|
628
628
|
* @description watches best bid & ask for symbols
|
|
629
629
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
630
630
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
631
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
631
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
632
632
|
*/
|
|
633
633
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
634
634
|
return await this.subscribeWatchTickersAndBidsAsks(symbols, 'watchBidsAsks', this.extend({ 'method': 'book_ticker' }, params));
|
|
@@ -719,7 +719,7 @@ class gate extends gate$1["default"] {
|
|
|
719
719
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
720
720
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
721
721
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
722
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
722
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
723
723
|
*/
|
|
724
724
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
725
725
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
@@ -732,7 +732,7 @@ class gate extends gate$1["default"] {
|
|
|
732
732
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
733
733
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
734
734
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
735
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
735
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
736
736
|
*/
|
|
737
737
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
738
738
|
await this.loadMarkets();
|
|
@@ -761,7 +761,7 @@ class gate extends gate$1["default"] {
|
|
|
761
761
|
* @description get the list of most recent trades for a particular symbol
|
|
762
762
|
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
763
763
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
764
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
764
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
765
765
|
*/
|
|
766
766
|
async unWatchTradesForSymbols(symbols, params = {}) {
|
|
767
767
|
await this.loadMarkets();
|
|
@@ -786,7 +786,7 @@ class gate extends gate$1["default"] {
|
|
|
786
786
|
* @description get the list of most recent trades for a particular symbol
|
|
787
787
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
788
788
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
789
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
789
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
790
790
|
*/
|
|
791
791
|
async unWatchTrades(symbol, params = {}) {
|
|
792
792
|
return await this.unWatchTradesForSymbols([symbol], params);
|
|
@@ -919,7 +919,7 @@ class gate extends gate$1["default"] {
|
|
|
919
919
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
920
920
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
921
921
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
922
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
922
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
923
923
|
*/
|
|
924
924
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
925
925
|
await this.loadMarkets();
|
|
@@ -1009,7 +1009,7 @@ class gate extends gate$1["default"] {
|
|
|
1009
1009
|
* @name gate#watchBalance
|
|
1010
1010
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1011
1011
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1012
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1012
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1013
1013
|
*/
|
|
1014
1014
|
async watchBalance(params = {}) {
|
|
1015
1015
|
await this.loadMarkets();
|
|
@@ -1297,7 +1297,7 @@ class gate extends gate$1["default"] {
|
|
|
1297
1297
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1298
1298
|
* @param {string} [params.type] spot, margin, swap, future, or option. Required if listening to all symbols.
|
|
1299
1299
|
* @param {boolean} [params.isInverse] if future, listen to inverse or linear contracts
|
|
1300
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1300
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1301
1301
|
*/
|
|
1302
1302
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1303
1303
|
await this.loadMarkets();
|
|
@@ -1741,44 +1741,6 @@ class gate extends gate$1["default"] {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
|
-
cleanCache(subscription) {
|
|
1745
|
-
const topic = this.safeString(subscription, 'topic', '');
|
|
1746
|
-
const symbols = this.safeList(subscription, 'symbols', []);
|
|
1747
|
-
const symbolsLength = symbols.length;
|
|
1748
|
-
if (topic === 'ohlcv') {
|
|
1749
|
-
const symbolsAndTimeFrames = this.safeList(subscription, 'symbolsAndTimeframes', []);
|
|
1750
|
-
for (let i = 0; i < symbolsAndTimeFrames.length; i++) {
|
|
1751
|
-
const symbolAndTimeFrame = symbolsAndTimeFrames[i];
|
|
1752
|
-
const symbol = this.safeString(symbolAndTimeFrame, 0);
|
|
1753
|
-
const timeframe = this.safeString(symbolAndTimeFrame, 1);
|
|
1754
|
-
delete this.ohlcvs[symbol][timeframe];
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
else if (symbolsLength > 0) {
|
|
1758
|
-
for (let i = 0; i < symbols.length; i++) {
|
|
1759
|
-
const symbol = symbols[i];
|
|
1760
|
-
if (topic.endsWith('trades')) {
|
|
1761
|
-
delete this.trades[symbol];
|
|
1762
|
-
}
|
|
1763
|
-
else if (topic === 'orderbook') {
|
|
1764
|
-
delete this.orderbooks[symbol];
|
|
1765
|
-
}
|
|
1766
|
-
else if (topic === 'ticker') {
|
|
1767
|
-
delete this.tickers[symbol];
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
}
|
|
1771
|
-
else {
|
|
1772
|
-
if (topic.endsWith('trades')) {
|
|
1773
|
-
// don't reset this.myTrades directly here
|
|
1774
|
-
// because in c# we need to use a different object
|
|
1775
|
-
const keys = Object.keys(this.trades);
|
|
1776
|
-
for (let i = 0; i < keys.length; i++) {
|
|
1777
|
-
delete this.trades[keys[i]];
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
1744
|
handleMessage(client, message) {
|
|
1783
1745
|
//
|
|
1784
1746
|
// subscribe
|
|
@@ -47,7 +47,7 @@ class gemini extends gemini$1["default"] {
|
|
|
47
47
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
48
48
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
49
49
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
50
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
50
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
51
51
|
*/
|
|
52
52
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
53
53
|
await this.loadMarkets();
|
|
@@ -82,7 +82,7 @@ class gemini extends gemini$1["default"] {
|
|
|
82
82
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
83
83
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
84
84
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
85
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
85
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
86
86
|
*/
|
|
87
87
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
88
88
|
const trades = await this.helperForWatchMultipleConstruct('trades', symbols, params);
|
|
@@ -358,7 +358,7 @@ class gemini extends gemini$1["default"] {
|
|
|
358
358
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
359
359
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
360
360
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
361
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
361
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
362
362
|
*/
|
|
363
363
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
364
364
|
await this.loadMarkets();
|
|
@@ -413,7 +413,7 @@ class gemini extends gemini$1["default"] {
|
|
|
413
413
|
* @param {string[]} symbols unified array of symbols
|
|
414
414
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
415
415
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
416
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
417
417
|
*/
|
|
418
418
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
419
419
|
const orderbook = await this.helperForWatchMultipleConstruct('orderbook', symbols, params);
|
|
@@ -426,7 +426,7 @@ class gemini extends gemini$1["default"] {
|
|
|
426
426
|
* @see https://docs.gemini.com/websocket-api/#multi-market-data
|
|
427
427
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
428
428
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
429
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
429
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
430
430
|
*/
|
|
431
431
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
432
432
|
return await this.helperForWatchMultipleConstruct('bidsasks', symbols, params);
|
|
@@ -625,7 +625,7 @@ class gemini extends gemini$1["default"] {
|
|
|
625
625
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
626
626
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
627
627
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
628
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
628
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
629
629
|
*/
|
|
630
630
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
631
631
|
const url = this.urls['api']['ws'] + '/v1/order/events?eventTypeFilter=initial&eventTypeFilter=accepted&eventTypeFilter=rejected&eventTypeFilter=fill&eventTypeFilter=cancelled&eventTypeFilter=booked';
|
|
@@ -172,7 +172,7 @@ class hashkey extends hashkey$1["default"] {
|
|
|
172
172
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
173
173
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
174
174
|
* @param {bool} [params.binary] true or false - default false
|
|
175
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
175
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
176
176
|
*/
|
|
177
177
|
async watchTicker(symbol, params = {}) {
|
|
178
178
|
await this.loadMarkets();
|
|
@@ -228,7 +228,7 @@ class hashkey extends hashkey$1["default"] {
|
|
|
228
228
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
229
229
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
230
230
|
* @param {bool} [params.binary] true or false - default false
|
|
231
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
231
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
232
232
|
*/
|
|
233
233
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
234
234
|
await this.loadMarkets();
|
|
@@ -295,7 +295,7 @@ class hashkey extends hashkey$1["default"] {
|
|
|
295
295
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
296
296
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
297
297
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
298
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
298
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
299
299
|
*/
|
|
300
300
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
301
301
|
await this.loadMarkets();
|
|
@@ -361,7 +361,7 @@ class hashkey extends hashkey$1["default"] {
|
|
|
361
361
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
362
362
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
363
363
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
364
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
364
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
365
365
|
*/
|
|
366
366
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
367
367
|
await this.loadMarkets();
|
|
@@ -480,7 +480,7 @@ class hashkey extends hashkey$1["default"] {
|
|
|
480
480
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
481
481
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
482
482
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
483
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
483
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
484
484
|
*/
|
|
485
485
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
486
486
|
await this.loadMarkets();
|
|
@@ -690,7 +690,7 @@ class hashkey extends hashkey$1["default"] {
|
|
|
690
690
|
* @see https://hashkeyglobal-apidoc.readme.io/reference/websocket-api#private-stream
|
|
691
691
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
692
692
|
* @param {string} [params.type] 'spot' or 'swap' - the type of the market to watch balance for (default 'spot')
|
|
693
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
693
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
694
694
|
*/
|
|
695
695
|
async watchBalance(params = {}) {
|
|
696
696
|
const listenKey = await this.authenticate();
|