ccxt 4.5.28 → 4.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +47 -47
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +86 -45
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +156 -48
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +13 -11
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +393 -34
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +25 -23
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +18 -16
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +13 -11
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +20 -16
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +33 -30
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +47 -47
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +25 -25
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +60 -59
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +86 -45
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +58 -44
- package/js/src/kucoin.js +156 -48
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +13 -11
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +393 -34
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +25 -23
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +26 -62
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +11 -9
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +18 -16
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +13 -11
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +20 -16
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +33 -30
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/pro/coinone.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export default class coinone extends coinoneRest {
|
|
|
11
11
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
12
12
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
13
13
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
14
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
15
15
|
*/
|
|
16
16
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
17
17
|
handleOrderBook(client: any, message: any): void;
|
|
@@ -23,7 +23,7 @@ export default class coinone extends coinoneRest {
|
|
|
23
23
|
* @see https://docs.coinone.co.kr/reference/public-websocket-ticker
|
|
24
24
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
25
25
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
26
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
26
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
27
27
|
*/
|
|
28
28
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
29
29
|
handleTicker(client: Client, message: any): void;
|
|
@@ -37,7 +37,7 @@ export default class coinone extends coinoneRest {
|
|
|
37
37
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
38
38
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
39
39
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
40
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
40
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
41
41
|
*/
|
|
42
42
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
43
43
|
handleTrades(client: Client, message: any): void;
|
package/js/src/pro/coinone.js
CHANGED
|
@@ -57,7 +57,7 @@ export default class coinone extends coinoneRest {
|
|
|
57
57
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
58
58
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
59
59
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
60
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
60
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
61
61
|
*/
|
|
62
62
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
63
63
|
await this.loadMarkets();
|
|
@@ -137,7 +137,7 @@ export default class coinone extends coinoneRest {
|
|
|
137
137
|
* @see https://docs.coinone.co.kr/reference/public-websocket-ticker
|
|
138
138
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
139
139
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
140
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
141
141
|
*/
|
|
142
142
|
async watchTicker(symbol, params = {}) {
|
|
143
143
|
await this.loadMarkets();
|
|
@@ -257,7 +257,7 @@ export default class coinone extends coinoneRest {
|
|
|
257
257
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
258
258
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
259
259
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
260
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
260
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
261
261
|
*/
|
|
262
262
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
263
263
|
await this.loadMarkets();
|
|
@@ -14,7 +14,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
14
14
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
15
15
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
16
16
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
17
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
17
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
18
18
|
*/
|
|
19
19
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
20
20
|
/**
|
|
@@ -26,7 +26,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
26
26
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
27
27
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
28
28
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
29
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
29
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
30
30
|
*/
|
|
31
31
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
32
32
|
/**
|
|
@@ -39,7 +39,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
39
39
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
40
40
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
41
41
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
42
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
42
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
43
43
|
*/
|
|
44
44
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
45
45
|
/**
|
|
@@ -52,7 +52,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
52
52
|
* @param {int} [params.limit] orderbook limit, default is 50
|
|
53
53
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
54
54
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
55
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
55
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
56
56
|
*/
|
|
57
57
|
unWatchOrderBookForSymbols(symbols: string[], params?: {}): Promise<OrderBook>;
|
|
58
58
|
handleDelta(bookside: any, delta: any): void;
|
|
@@ -67,7 +67,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
67
67
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
68
68
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
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
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
73
73
|
/**
|
|
@@ -77,7 +77,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
77
77
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
|
78
78
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
79
79
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
80
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
80
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
81
81
|
*/
|
|
82
82
|
unWatchTrades(symbol: string, params?: {}): Promise<Trade[]>;
|
|
83
83
|
/**
|
|
@@ -89,7 +89,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
89
89
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
90
90
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
91
91
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
92
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
92
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
93
93
|
*/
|
|
94
94
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
95
95
|
/**
|
|
@@ -99,7 +99,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
99
99
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
|
100
100
|
* @param {string[]} [symbols] list of unified market symbols to unwatch trades for
|
|
101
101
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
102
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
102
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
103
103
|
*/
|
|
104
104
|
unWatchTradesForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
105
105
|
handleTrades(client: Client, message: any): void;
|
|
@@ -112,7 +112,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
112
112
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
113
113
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
114
114
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
115
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
115
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
116
116
|
*/
|
|
117
117
|
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
118
118
|
/**
|
|
@@ -122,7 +122,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
122
122
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
123
123
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
124
124
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
125
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
125
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
126
126
|
*/
|
|
127
127
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
128
128
|
/**
|
|
@@ -132,7 +132,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
132
132
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
133
133
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
134
134
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
135
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
135
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
136
136
|
*/
|
|
137
137
|
unWatchTicker(symbol: string, params?: {}): Promise<any>;
|
|
138
138
|
/**
|
|
@@ -142,7 +142,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
142
142
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
143
143
|
* @param {string[]} symbols 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
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
148
148
|
/**
|
|
@@ -152,7 +152,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
152
152
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
153
153
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
154
154
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
155
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
155
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
156
156
|
*/
|
|
157
157
|
unWatchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
158
158
|
handleTicker(client: Client, message: any): void;
|
|
@@ -164,7 +164,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
164
164
|
* @description watches best bid & ask for symbols
|
|
165
165
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
166
166
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
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
|
watchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
170
170
|
handleBidAsk(client: Client, message: any): void;
|
|
@@ -203,7 +203,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
203
203
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
204
204
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
205
205
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
206
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
206
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
207
207
|
*/
|
|
208
208
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
209
209
|
handleOrders(client: Client, message: any, subscription?: any): void;
|
|
@@ -228,7 +228,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
228
228
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
229
229
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
|
|
230
230
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
231
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
231
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
232
232
|
*/
|
|
233
233
|
watchBalance(params?: {}): Promise<Balances>;
|
|
234
234
|
handleBalance(client: Client, message: any): void;
|
|
@@ -243,7 +243,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
243
243
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
244
244
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
245
245
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
246
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
246
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
247
247
|
*/
|
|
248
248
|
createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
249
249
|
/**
|
|
@@ -259,7 +259,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
259
259
|
* @param {float} price (mandatory) the price for the order, in units of the quote currency, ignored in market orders
|
|
260
260
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
261
261
|
* @param {string} [params.clientOrderId] the original client order id of the order to edit, required if id is not provided
|
|
262
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
262
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
263
263
|
*/
|
|
264
264
|
editOrderWs(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
265
265
|
handleOrder(client: Client, message: any): void;
|
|
@@ -271,7 +271,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
271
271
|
* @param {string} id the order id of the order to cancel
|
|
272
272
|
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
273
273
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
274
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
274
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
275
275
|
*/
|
|
276
276
|
cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
277
277
|
/**
|
|
@@ -281,7 +281,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
281
281
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
|
282
282
|
* @param {string} symbol unified market symbol of the orders to cancel
|
|
283
283
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
284
|
-
* @returns {object} Returns exchange raw message {@link https://docs.ccxt.com
|
|
284
|
+
* @returns {object} Returns exchange raw message {@link https://docs.ccxt.com/?id=order-structure}
|
|
285
285
|
*/
|
|
286
286
|
cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
287
287
|
handleCancelAllOrders(client: Client, message: any): void;
|
package/js/src/pro/cryptocom.js
CHANGED
|
@@ -80,7 +80,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
80
80
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
81
81
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
82
82
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
83
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
83
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
84
84
|
*/
|
|
85
85
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
86
86
|
return await this.watchOrderBookForSymbols([symbol], limit, params);
|
|
@@ -94,7 +94,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
94
94
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
95
95
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
96
96
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
97
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
97
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
98
98
|
*/
|
|
99
99
|
async unWatchOrderBook(symbol, params = {}) {
|
|
100
100
|
return await this.unWatchOrderBookForSymbols([symbol], params);
|
|
@@ -109,7 +109,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
109
109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
110
110
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
111
111
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
112
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
112
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
113
113
|
*/
|
|
114
114
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
115
115
|
await this.loadMarkets();
|
|
@@ -156,7 +156,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
156
156
|
* @param {int} [params.limit] orderbook limit, default is 50
|
|
157
157
|
* @param {string} [params.bookSubscriptionType] The subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
|
|
158
158
|
* @param {int} [params.bookUpdateFrequency] Book update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
|
|
159
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
159
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
160
160
|
*/
|
|
161
161
|
async unWatchOrderBookForSymbols(symbols, params = {}) {
|
|
162
162
|
await this.loadMarkets();
|
|
@@ -307,7 +307,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
307
307
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
308
308
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
309
309
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
310
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
310
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
311
311
|
*/
|
|
312
312
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
313
313
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
@@ -319,7 +319,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
319
319
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
|
320
320
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
321
321
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
322
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
322
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
323
323
|
*/
|
|
324
324
|
async unWatchTrades(symbol, params = {}) {
|
|
325
325
|
return await this.unWatchTradesForSymbols([symbol], params);
|
|
@@ -333,7 +333,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
333
333
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
334
334
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
335
335
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
336
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
336
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
337
337
|
*/
|
|
338
338
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
339
339
|
await this.loadMarkets();
|
|
@@ -360,7 +360,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
360
360
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name
|
|
361
361
|
* @param {string[]} [symbols] list of unified market symbols to unwatch trades for
|
|
362
362
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
363
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
363
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
364
364
|
*/
|
|
365
365
|
async unWatchTradesForSymbols(symbols, params = {}) {
|
|
366
366
|
await this.loadMarkets();
|
|
@@ -432,7 +432,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
432
432
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
433
433
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
434
434
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
435
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
435
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
436
436
|
*/
|
|
437
437
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
438
438
|
await this.loadMarkets();
|
|
@@ -456,7 +456,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
456
456
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
457
457
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
458
458
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
459
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
459
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
460
460
|
*/
|
|
461
461
|
async watchTicker(symbol, params = {}) {
|
|
462
462
|
await this.loadMarkets();
|
|
@@ -471,7 +471,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
471
471
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
472
472
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
473
473
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
474
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
474
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
475
475
|
*/
|
|
476
476
|
async unWatchTicker(symbol, params = {}) {
|
|
477
477
|
await this.loadMarkets();
|
|
@@ -487,7 +487,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
487
487
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
488
488
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
489
489
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
490
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
490
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
491
491
|
*/
|
|
492
492
|
async watchTickers(symbols = undefined, params = {}) {
|
|
493
493
|
await this.loadMarkets();
|
|
@@ -522,7 +522,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
522
522
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
|
|
523
523
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
524
524
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
525
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
525
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
526
526
|
*/
|
|
527
527
|
async unWatchTickers(symbols = undefined, params = {}) {
|
|
528
528
|
await this.loadMarkets();
|
|
@@ -629,7 +629,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
629
629
|
* @description watches best bid & ask for symbols
|
|
630
630
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
631
631
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
632
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
632
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
633
633
|
*/
|
|
634
634
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
635
635
|
await this.loadMarkets();
|
|
@@ -771,7 +771,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
771
771
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
772
772
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
773
773
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
774
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
774
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
775
775
|
*/
|
|
776
776
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
777
777
|
await this.loadMarkets();
|
|
@@ -906,9 +906,11 @@ export default class cryptocom extends cryptocomRest {
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
// don't remove the future from the .futures cache
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
909
|
+
if (messageHash in client.futures) {
|
|
910
|
+
const future = client.futures[messageHash];
|
|
911
|
+
future.resolve(cache);
|
|
912
|
+
client.resolve(cache, 'positions');
|
|
913
|
+
}
|
|
912
914
|
}
|
|
913
915
|
handlePositions(client, message) {
|
|
914
916
|
//
|
|
@@ -970,7 +972,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
970
972
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
971
973
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
|
|
972
974
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
973
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
975
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
974
976
|
*/
|
|
975
977
|
async watchBalance(params = {}) {
|
|
976
978
|
const messageHash = 'user.balance';
|
|
@@ -1051,7 +1053,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
1051
1053
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1052
1054
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1053
1055
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1054
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1056
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1055
1057
|
*/
|
|
1056
1058
|
async createOrderWs(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1057
1059
|
await this.loadMarkets();
|
|
@@ -1076,7 +1078,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
1076
1078
|
* @param {float} price (mandatory) the price for the order, in units of the quote currency, ignored in market orders
|
|
1077
1079
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1078
1080
|
* @param {string} [params.clientOrderId] the original client order id of the order to edit, required if id is not provided
|
|
1079
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1081
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1080
1082
|
*/
|
|
1081
1083
|
async editOrderWs(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1082
1084
|
await this.loadMarkets();
|
|
@@ -1113,7 +1115,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
1113
1115
|
* @param {string} id the order id of the order to cancel
|
|
1114
1116
|
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
1115
1117
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1116
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1118
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1117
1119
|
*/
|
|
1118
1120
|
async cancelOrderWs(id, symbol = undefined, params = {}) {
|
|
1119
1121
|
await this.loadMarkets();
|
|
@@ -1134,7 +1136,7 @@ export default class cryptocom extends cryptocomRest {
|
|
|
1134
1136
|
* @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
|
|
1135
1137
|
* @param {string} symbol unified market symbol of the orders to cancel
|
|
1136
1138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1137
|
-
* @returns {object} Returns exchange raw message {@link https://docs.ccxt.com
|
|
1139
|
+
* @returns {object} Returns exchange raw message {@link https://docs.ccxt.com/?id=order-structure}
|
|
1138
1140
|
*/
|
|
1139
1141
|
async cancelAllOrdersWs(symbol = undefined, params = {}) {
|
|
1140
1142
|
await this.loadMarkets();
|
package/js/src/pro/deepcoin.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
26
26
|
* @see https://www.deepcoin.com/docs/publicWS/latestMarketData
|
|
27
27
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
28
28
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
29
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
29
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
30
30
|
*/
|
|
31
31
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
32
32
|
/**
|
|
@@ -36,7 +36,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
36
36
|
* @see https://www.deepcoin.com/docs/publicWS/latestMarketData
|
|
37
37
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
38
38
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
39
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
39
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
40
40
|
*/
|
|
41
41
|
unWatchTicker(symbol: string, params?: {}): Promise<any>;
|
|
42
42
|
handleTicker(client: Client, message: any): void;
|
|
@@ -50,7 +50,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
50
50
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
51
51
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
52
52
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
53
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
53
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
54
54
|
*/
|
|
55
55
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
56
56
|
/**
|
|
@@ -60,7 +60,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
60
60
|
* @see https://www.deepcoin.com/docs/publicWS/lastTransactions
|
|
61
61
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
62
62
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
63
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
63
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
64
64
|
*/
|
|
65
65
|
unWatchTrades(symbol: string, params?: {}): Promise<any>;
|
|
66
66
|
handleTrades(client: Client, message: any): void;
|
|
@@ -101,7 +101,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
101
101
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
102
102
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
103
103
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
104
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
104
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
105
105
|
*/
|
|
106
106
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
107
107
|
/**
|
|
@@ -111,7 +111,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
111
111
|
* @see https://www.deepcoin.com/docs/publicWS/25LevelIncrementalMarketData
|
|
112
112
|
* @param {string} symbol unified array of symbols
|
|
113
113
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
114
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
114
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
115
115
|
*/
|
|
116
116
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
117
117
|
handleOrderBook(client: Client, message: any): void;
|
|
@@ -127,7 +127,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
127
127
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
128
128
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
129
129
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
130
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
130
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
131
131
|
*/
|
|
132
132
|
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
133
133
|
handleMyTrade(client: Client, message: any): void;
|
|
@@ -140,7 +140,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
140
140
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
141
141
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
142
142
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
143
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
144
144
|
*/
|
|
145
145
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
146
146
|
handleOrder(client: Client, message: any): void;
|
package/js/src/pro/deepcoin.js
CHANGED
|
@@ -195,7 +195,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
195
195
|
* @see https://www.deepcoin.com/docs/publicWS/latestMarketData
|
|
196
196
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
197
197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
198
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
198
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
199
199
|
*/
|
|
200
200
|
async watchTicker(symbol, params = {}) {
|
|
201
201
|
await this.loadMarkets();
|
|
@@ -210,7 +210,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
210
210
|
* @see https://www.deepcoin.com/docs/publicWS/latestMarketData
|
|
211
211
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
212
212
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
213
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
213
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
214
214
|
*/
|
|
215
215
|
async unWatchTicker(symbol, params = {}) {
|
|
216
216
|
await this.loadMarkets();
|
|
@@ -332,7 +332,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
332
332
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
333
333
|
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
334
334
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
335
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
335
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
336
336
|
*/
|
|
337
337
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
338
338
|
await this.loadMarkets();
|
|
@@ -351,7 +351,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
351
351
|
* @see https://www.deepcoin.com/docs/publicWS/lastTransactions
|
|
352
352
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
353
353
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
354
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
354
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
355
355
|
*/
|
|
356
356
|
async unWatchTrades(symbol, params = {}) {
|
|
357
357
|
await this.loadMarkets();
|
|
@@ -604,7 +604,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
604
604
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
605
605
|
* @param {int} [limit] the maximum amount of order book entries to return.
|
|
606
606
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
607
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
607
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
608
608
|
*/
|
|
609
609
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
610
610
|
await this.loadMarkets();
|
|
@@ -621,7 +621,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
621
621
|
* @see https://www.deepcoin.com/docs/publicWS/25LevelIncrementalMarketData
|
|
622
622
|
* @param {string} symbol unified array of symbols
|
|
623
623
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
624
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
624
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
625
625
|
*/
|
|
626
626
|
async unWatchOrderBook(symbol, params = {}) {
|
|
627
627
|
await this.loadMarkets();
|
|
@@ -765,7 +765,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
765
765
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
766
766
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
767
767
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
768
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
768
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
769
769
|
*/
|
|
770
770
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
771
771
|
let messageHash = 'myTrades';
|
|
@@ -840,7 +840,7 @@ export default class deepcoin extends deepcoinRest {
|
|
|
840
840
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
841
841
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
842
842
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
843
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
843
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
844
844
|
*/
|
|
845
845
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
846
846
|
let messageHash = 'orders';
|