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
package/js/src/pro/ndax.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export default class ndax extends ndaxRest {
|
|
|
11
11
|
* @see https://apidoc.ndax.io/#subscribelevel1
|
|
12
12
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
13
13
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
14
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
15
15
|
*/
|
|
16
16
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
17
17
|
handleTicker(client: Client, message: any): void;
|
|
@@ -24,7 +24,7 @@ export default class ndax extends ndaxRest {
|
|
|
24
24
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
25
25
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
26
26
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
27
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
27
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
28
28
|
*/
|
|
29
29
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
30
30
|
handleTrades(client: Client, message: any): void;
|
|
@@ -50,7 +50,7 @@ export default class ndax extends ndaxRest {
|
|
|
50
50
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
51
51
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
52
52
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
53
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
53
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
54
54
|
*/
|
|
55
55
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
56
56
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/ndax.js
CHANGED
|
@@ -46,7 +46,7 @@ export default class ndax extends ndaxRest {
|
|
|
46
46
|
* @see https://apidoc.ndax.io/#subscribelevel1
|
|
47
47
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
48
48
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
49
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
49
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
50
50
|
*/
|
|
51
51
|
async watchTicker(symbol, params = {}) {
|
|
52
52
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -114,7 +114,7 @@ export default class ndax extends ndaxRest {
|
|
|
114
114
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
115
115
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
116
116
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
117
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
118
118
|
*/
|
|
119
119
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
120
120
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
|
@@ -328,7 +328,7 @@ export default class ndax extends ndaxRest {
|
|
|
328
328
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
329
329
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
330
330
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
331
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
331
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
332
332
|
*/
|
|
333
333
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
334
334
|
const omsId = this.safeInteger(this.options, 'omsId', 1);
|
package/js/src/pro/okx.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export default class okx extends okxRest {
|
|
|
16
16
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
17
17
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
18
18
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
19
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
19
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
20
20
|
*/
|
|
21
21
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
22
22
|
/**
|
|
@@ -30,7 +30,7 @@ export default class okx extends okxRest {
|
|
|
30
30
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
31
31
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
32
32
|
* @param {string} [params.channel] the channel to subscribe to, trades by default. Can be 'trades' and 'trades-all'
|
|
33
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
33
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
34
34
|
*/
|
|
35
35
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
36
36
|
/**
|
|
@@ -40,7 +40,7 @@ export default class okx extends okxRest {
|
|
|
40
40
|
* @param {string[]} symbols
|
|
41
41
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
42
42
|
* @param {string} [params.channel] the channel to subscribe to, trades by default. Can be trades, trades-all
|
|
43
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
43
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
44
44
|
*/
|
|
45
45
|
unWatchTradesForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
46
46
|
/**
|
|
@@ -49,7 +49,7 @@ export default class okx extends okxRest {
|
|
|
49
49
|
* @description unWatches from the stream channel
|
|
50
50
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
51
51
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
52
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
52
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
53
53
|
*/
|
|
54
54
|
unWatchTrades(symbol: string, params?: {}): Promise<any>;
|
|
55
55
|
handleTrades(client: Client, message: any): void;
|
|
@@ -60,7 +60,7 @@ export default class okx extends okxRest {
|
|
|
60
60
|
* @see https://www.okx.com/docs-v5/en/#public-data-websocket-funding-rate-channel
|
|
61
61
|
* @param {string} symbol unified market symbol
|
|
62
62
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
63
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
63
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
64
64
|
*/
|
|
65
65
|
watchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
66
66
|
/**
|
|
@@ -70,7 +70,7 @@ export default class okx extends okxRest {
|
|
|
70
70
|
* @see https://www.okx.com/docs-v5/en/#public-data-websocket-funding-rate-channel
|
|
71
71
|
* @param {string[]} symbols list of unified market symbols
|
|
72
72
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
73
|
-
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com
|
|
73
|
+
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexe by market symbols
|
|
74
74
|
*/
|
|
75
75
|
watchFundingRates(symbols: string[], params?: {}): Promise<FundingRates>;
|
|
76
76
|
handleFundingRate(client: Client, message: any): void;
|
|
@@ -82,7 +82,7 @@ export default class okx extends okxRest {
|
|
|
82
82
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
83
83
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
84
84
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
85
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
85
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
86
86
|
*/
|
|
87
87
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
88
88
|
/**
|
|
@@ -93,7 +93,7 @@ export default class okx extends okxRest {
|
|
|
93
93
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
94
94
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
95
95
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
96
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
96
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
97
97
|
*/
|
|
98
98
|
unWatchTicker(symbol: string, params?: {}): Promise<any>;
|
|
99
99
|
/**
|
|
@@ -104,7 +104,7 @@ export default class okx extends okxRest {
|
|
|
104
104
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
105
105
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106
106
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
107
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
107
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
108
108
|
*/
|
|
109
109
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
110
110
|
/**
|
|
@@ -115,7 +115,7 @@ export default class okx extends okxRest {
|
|
|
115
115
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
116
116
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
117
117
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
118
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
118
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
119
119
|
*/
|
|
120
120
|
watchMarkPrice(symbol: string, params?: {}): Promise<Ticker>;
|
|
121
121
|
/**
|
|
@@ -126,7 +126,7 @@ export default class okx extends okxRest {
|
|
|
126
126
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
127
127
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
128
128
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
129
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
129
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
130
130
|
*/
|
|
131
131
|
watchMarkPrices(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
132
132
|
/**
|
|
@@ -137,7 +137,7 @@ export default class okx extends okxRest {
|
|
|
137
137
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
138
138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139
139
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
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
|
unWatchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
143
143
|
handleTicker(client: Client, message: any): void;
|
|
@@ -148,7 +148,7 @@ export default class okx extends okxRest {
|
|
|
148
148
|
* @description watches best bid & ask for symbols
|
|
149
149
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
150
150
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
151
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
151
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
152
152
|
*/
|
|
153
153
|
watchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
154
154
|
handleBidAsk(client: Client, message: any): void;
|
|
@@ -233,7 +233,7 @@ export default class okx extends okxRest {
|
|
|
233
233
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
234
234
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
235
235
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
236
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
236
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
237
237
|
*/
|
|
238
238
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
239
239
|
/**
|
|
@@ -245,7 +245,7 @@ export default class okx extends okxRest {
|
|
|
245
245
|
* @param {int} [limit] 1,5, 400, 50 (l2-tbt, vip4+) or 40000 (vip5+) the maximum amount of order book entries to return
|
|
246
246
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
247
247
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
248
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
248
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
249
249
|
*/
|
|
250
250
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
251
251
|
/**
|
|
@@ -257,7 +257,7 @@ export default class okx extends okxRest {
|
|
|
257
257
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
258
258
|
* @param {int} [params.limit] the maximum amount of order book entries to return
|
|
259
259
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
260
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
260
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
261
261
|
*/
|
|
262
262
|
unWatchOrderBookForSymbols(symbols: string[], params?: {}): Promise<any>;
|
|
263
263
|
/**
|
|
@@ -269,7 +269,7 @@ export default class okx extends okxRest {
|
|
|
269
269
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
270
270
|
* @param {int} [params.limit] the maximum amount of order book entries to return
|
|
271
271
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
272
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
272
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
273
273
|
*/
|
|
274
274
|
unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
|
|
275
275
|
handleDelta(bookside: any, delta: any): void;
|
|
@@ -282,7 +282,7 @@ export default class okx extends okxRest {
|
|
|
282
282
|
* @name okx#watchBalance
|
|
283
283
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
284
284
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
285
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
286
286
|
*/
|
|
287
287
|
watchBalance(params?: {}): Promise<Balances>;
|
|
288
288
|
handleBalanceAndPosition(client: Client, message: any): void;
|
|
@@ -300,7 +300,7 @@ export default class okx extends okxRest {
|
|
|
300
300
|
* @param {bool} [params.trigger] true if fetching trigger or conditional trades
|
|
301
301
|
* @param {string} [params.type] 'spot', 'swap', 'future', 'option', 'ANY', 'SPOT', 'MARGIN', 'SWAP', 'FUTURES' or 'OPTION'
|
|
302
302
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for automatically setting the type to spot margin
|
|
303
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
303
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
304
304
|
*/
|
|
305
305
|
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
306
306
|
/**
|
|
@@ -328,7 +328,7 @@ export default class okx extends okxRest {
|
|
|
328
328
|
* @param {bool} [params.trigger] true if fetching trigger or conditional orders
|
|
329
329
|
* @param {string} [params.type] 'spot', 'swap', 'future', 'option', 'ANY', 'SPOT', 'MARGIN', 'SWAP', 'FUTURES' or 'OPTION'
|
|
330
330
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for automatically setting the type to spot margin
|
|
331
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
331
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
332
332
|
*/
|
|
333
333
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
334
334
|
handleOrders(client: Client, message: any, subscription?: any): void;
|
|
@@ -346,7 +346,7 @@ export default class okx extends okxRest {
|
|
|
346
346
|
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
347
347
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
348
348
|
* @param {boolean} params.test test order, default false
|
|
349
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
349
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
350
350
|
*/
|
|
351
351
|
createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
352
352
|
handlePlaceOrders(client: Client, message: any): void;
|
|
@@ -363,7 +363,7 @@ export default class okx extends okxRest {
|
|
|
363
363
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
364
364
|
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
365
365
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
366
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
366
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
367
367
|
*/
|
|
368
368
|
editOrderWs(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
369
369
|
/**
|
|
@@ -375,7 +375,7 @@ export default class okx extends okxRest {
|
|
|
375
375
|
* @param {string} symbol unified market symbol, default is undefined
|
|
376
376
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
377
377
|
* @param {string} [params.clOrdId] client order id
|
|
378
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
378
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
379
379
|
*/
|
|
380
380
|
cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
381
381
|
/**
|
|
@@ -386,7 +386,7 @@ export default class okx extends okxRest {
|
|
|
386
386
|
* @param {string[]} ids order ids
|
|
387
387
|
* @param {string} symbol unified market symbol, default is undefined
|
|
388
388
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
389
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
389
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
390
390
|
*/
|
|
391
391
|
cancelOrdersWs(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
392
392
|
/**
|
|
@@ -396,7 +396,7 @@ export default class okx extends okxRest {
|
|
|
396
396
|
* @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
|
397
397
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
398
398
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
399
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
399
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
400
400
|
*/
|
|
401
401
|
cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
402
402
|
handleCancelAllOrders(client: Client, message: any): void;
|
package/js/src/pro/okx.js
CHANGED
|
@@ -177,7 +177,7 @@ export default class okx extends okxRest {
|
|
|
177
177
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
178
178
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
179
179
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
180
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
181
181
|
*/
|
|
182
182
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
183
183
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
@@ -193,7 +193,7 @@ export default class okx extends okxRest {
|
|
|
193
193
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
194
194
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
195
195
|
* @param {string} [params.channel] the channel to subscribe to, trades by default. Can be 'trades' and 'trades-all'
|
|
196
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
196
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
197
197
|
*/
|
|
198
198
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
199
199
|
const symbolsLength = symbols.length;
|
|
@@ -241,7 +241,7 @@ export default class okx extends okxRest {
|
|
|
241
241
|
* @param {string[]} symbols
|
|
242
242
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
243
243
|
* @param {string} [params.channel] the channel to subscribe to, trades by default. Can be trades, trades-all
|
|
244
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
244
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
245
245
|
*/
|
|
246
246
|
async unWatchTradesForSymbols(symbols, params = {}) {
|
|
247
247
|
await this.loadMarkets();
|
|
@@ -278,7 +278,7 @@ export default class okx extends okxRest {
|
|
|
278
278
|
* @description unWatches from the stream channel
|
|
279
279
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
280
280
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
281
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
281
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
282
282
|
*/
|
|
283
283
|
async unWatchTrades(symbol, params = {}) {
|
|
284
284
|
return await this.unWatchTradesForSymbols([symbol], params);
|
|
@@ -341,7 +341,7 @@ export default class okx extends okxRest {
|
|
|
341
341
|
* @see https://www.okx.com/docs-v5/en/#public-data-websocket-funding-rate-channel
|
|
342
342
|
* @param {string} symbol unified market symbol
|
|
343
343
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
344
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
344
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
345
345
|
*/
|
|
346
346
|
async watchFundingRate(symbol, params = {}) {
|
|
347
347
|
symbol = this.symbol(symbol);
|
|
@@ -355,7 +355,7 @@ export default class okx extends okxRest {
|
|
|
355
355
|
* @see https://www.okx.com/docs-v5/en/#public-data-websocket-funding-rate-channel
|
|
356
356
|
* @param {string[]} symbols list of unified market symbols
|
|
357
357
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
358
|
-
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com
|
|
358
|
+
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexe by market symbols
|
|
359
359
|
*/
|
|
360
360
|
async watchFundingRates(symbols, params = {}) {
|
|
361
361
|
await this.loadMarkets();
|
|
@@ -424,7 +424,7 @@ export default class okx extends okxRest {
|
|
|
424
424
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
425
425
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
426
426
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
427
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
427
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
428
428
|
*/
|
|
429
429
|
async watchTicker(symbol, params = {}) {
|
|
430
430
|
let channel = undefined;
|
|
@@ -443,7 +443,7 @@ export default class okx extends okxRest {
|
|
|
443
443
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
444
444
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
445
445
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
446
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
446
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
447
447
|
*/
|
|
448
448
|
async unWatchTicker(symbol, params = {}) {
|
|
449
449
|
return await this.unWatchTickers([symbol], params);
|
|
@@ -456,7 +456,7 @@ export default class okx extends okxRest {
|
|
|
456
456
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
457
457
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
458
458
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
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 watchTickers(symbols = undefined, params = {}) {
|
|
462
462
|
await this.loadMarkets();
|
|
@@ -477,7 +477,7 @@ export default class okx extends okxRest {
|
|
|
477
477
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
478
478
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
479
479
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
480
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
480
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
481
481
|
*/
|
|
482
482
|
async watchMarkPrice(symbol, params = {}) {
|
|
483
483
|
let channel = undefined;
|
|
@@ -496,7 +496,7 @@ export default class okx extends okxRest {
|
|
|
496
496
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
497
497
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
498
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
499
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
499
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
500
500
|
*/
|
|
501
501
|
async watchMarkPrices(symbols = undefined, params = {}) {
|
|
502
502
|
await this.loadMarkets();
|
|
@@ -517,7 +517,7 @@ export default class okx extends okxRest {
|
|
|
517
517
|
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
518
518
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
519
519
|
* @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
|
|
520
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
520
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
521
521
|
*/
|
|
522
522
|
async unWatchTickers(symbols = undefined, params = {}) {
|
|
523
523
|
await this.loadMarkets();
|
|
@@ -592,7 +592,7 @@ export default class okx extends okxRest {
|
|
|
592
592
|
* @description watches best bid & ask for symbols
|
|
593
593
|
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
594
594
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
595
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
596
596
|
*/
|
|
597
597
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
598
598
|
await this.loadMarkets();
|
|
@@ -1123,7 +1123,7 @@ export default class okx extends okxRest {
|
|
|
1123
1123
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1124
1124
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1125
1125
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
1126
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1126
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1127
1127
|
*/
|
|
1128
1128
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1129
1129
|
//
|
|
@@ -1160,7 +1160,7 @@ export default class okx extends okxRest {
|
|
|
1160
1160
|
* @param {int} [limit] 1,5, 400, 50 (l2-tbt, vip4+) or 40000 (vip5+) the maximum amount of order book entries to return
|
|
1161
1161
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1162
1162
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
1163
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1163
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1164
1164
|
*/
|
|
1165
1165
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
1166
1166
|
await this.loadMarkets();
|
|
@@ -1216,7 +1216,7 @@ export default class okx extends okxRest {
|
|
|
1216
1216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1217
1217
|
* @param {int} [params.limit] the maximum amount of order book entries to return
|
|
1218
1218
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
1219
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1219
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1220
1220
|
*/
|
|
1221
1221
|
async unWatchOrderBookForSymbols(symbols, params = {}) {
|
|
1222
1222
|
await this.loadMarkets();
|
|
@@ -1268,7 +1268,7 @@ export default class okx extends okxRest {
|
|
|
1268
1268
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1269
1269
|
* @param {int} [params.limit] the maximum amount of order book entries to return
|
|
1270
1270
|
* @param {string} [params.depth] okx order book depth, can be books, books5, books-l2-tbt, books50-l2-tbt, bbo-tbt
|
|
1271
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1271
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1272
1272
|
*/
|
|
1273
1273
|
async unWatchOrderBook(symbol, params = {}) {
|
|
1274
1274
|
return await this.unWatchOrderBookForSymbols([symbol], params);
|
|
@@ -1538,7 +1538,7 @@ export default class okx extends okxRest {
|
|
|
1538
1538
|
* @name okx#watchBalance
|
|
1539
1539
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
1540
1540
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1541
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1541
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1542
1542
|
*/
|
|
1543
1543
|
async watchBalance(params = {}) {
|
|
1544
1544
|
await this.loadMarkets();
|
|
@@ -1637,7 +1637,7 @@ export default class okx extends okxRest {
|
|
|
1637
1637
|
* @param {bool} [params.trigger] true if fetching trigger or conditional trades
|
|
1638
1638
|
* @param {string} [params.type] 'spot', 'swap', 'future', 'option', 'ANY', 'SPOT', 'MARGIN', 'SWAP', 'FUTURES' or 'OPTION'
|
|
1639
1639
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for automatically setting the type to spot margin
|
|
1640
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1640
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1641
1641
|
*/
|
|
1642
1642
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1643
1643
|
// By default, receive order updates from any instrument type
|
|
@@ -1826,7 +1826,7 @@ export default class okx extends okxRest {
|
|
|
1826
1826
|
* @param {bool} [params.trigger] true if fetching trigger or conditional orders
|
|
1827
1827
|
* @param {string} [params.type] 'spot', 'swap', 'future', 'option', 'ANY', 'SPOT', 'MARGIN', 'SWAP', 'FUTURES' or 'OPTION'
|
|
1828
1828
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for automatically setting the type to spot margin
|
|
1829
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1829
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1830
1830
|
*/
|
|
1831
1831
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1832
1832
|
let type = undefined;
|
|
@@ -2057,7 +2057,7 @@ export default class okx extends okxRest {
|
|
|
2057
2057
|
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2058
2058
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2059
2059
|
* @param {boolean} params.test test order, default false
|
|
2060
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2060
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2061
2061
|
*/
|
|
2062
2062
|
async createOrderWs(symbol, type, side, amount, price = undefined, params = {}) {
|
|
2063
2063
|
await this.loadMarkets();
|
|
@@ -2127,7 +2127,7 @@ export default class okx extends okxRest {
|
|
|
2127
2127
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
2128
2128
|
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2129
2129
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2130
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2130
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2131
2131
|
*/
|
|
2132
2132
|
async editOrderWs(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
2133
2133
|
await this.loadMarkets();
|
|
@@ -2153,7 +2153,7 @@ export default class okx extends okxRest {
|
|
|
2153
2153
|
* @param {string} symbol unified market symbol, default is undefined
|
|
2154
2154
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2155
2155
|
* @param {string} [params.clOrdId] client order id
|
|
2156
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
2156
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2157
2157
|
*/
|
|
2158
2158
|
async cancelOrderWs(id, symbol = undefined, params = {}) {
|
|
2159
2159
|
if (symbol === undefined) {
|
|
@@ -2189,7 +2189,7 @@ export default class okx extends okxRest {
|
|
|
2189
2189
|
* @param {string[]} ids order ids
|
|
2190
2190
|
* @param {string} symbol unified market symbol, default is undefined
|
|
2191
2191
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2192
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
2192
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2193
2193
|
*/
|
|
2194
2194
|
async cancelOrdersWs(ids, symbol = undefined, params = {}) {
|
|
2195
2195
|
const idsLength = ids.length;
|
|
@@ -2225,7 +2225,7 @@ export default class okx extends okxRest {
|
|
|
2225
2225
|
* @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
|
2226
2226
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2227
2227
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2228
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2228
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2229
2229
|
*/
|
|
2230
2230
|
async cancelAllOrdersWs(symbol = undefined, params = {}) {
|
|
2231
2231
|
if (symbol === undefined) {
|
|
@@ -9,7 +9,7 @@ export default class onetrading extends onetradingRest {
|
|
|
9
9
|
* @see https://developers.bitpanda.com/exchange/#account-history-channel
|
|
10
10
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
11
11
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
12
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
13
13
|
*/
|
|
14
14
|
watchBalance(params?: {}): Promise<Balances>;
|
|
15
15
|
handleBalanceSnapshot(client: any, message: any): void;
|
|
@@ -20,7 +20,7 @@ export default class onetrading extends onetradingRest {
|
|
|
20
20
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
21
21
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
22
22
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
23
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
23
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
24
24
|
*/
|
|
25
25
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
26
26
|
/**
|
|
@@ -30,7 +30,7 @@ export default class onetrading extends onetradingRest {
|
|
|
30
30
|
* @description watches price tickers, a statistical calculation with the information for all markets or those specified.
|
|
31
31
|
* @param {string} symbols unified symbols of the markets to fetch the ticker for
|
|
32
32
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
33
|
-
* @returns {object} an array of [ticker structure]{@link https://docs.ccxt.com
|
|
33
|
+
* @returns {object} an array of [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
34
34
|
*/
|
|
35
35
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
36
36
|
handleTicker(client: Client, message: any): void;
|
|
@@ -44,7 +44,7 @@ export default class onetrading extends onetradingRest {
|
|
|
44
44
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
45
45
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
46
46
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
47
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
47
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
48
48
|
*/
|
|
49
49
|
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
50
50
|
/**
|
|
@@ -55,7 +55,7 @@ export default class onetrading extends onetradingRest {
|
|
|
55
55
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
56
56
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
57
57
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
58
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
59
59
|
*/
|
|
60
60
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
61
61
|
handleOrderBook(client: Client, message: any): void;
|
|
@@ -71,7 +71,7 @@ export default class onetrading extends onetradingRest {
|
|
|
71
71
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
72
72
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
73
73
|
* @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING
|
|
74
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
74
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
75
75
|
*/
|
|
76
76
|
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
77
77
|
handleTrading(client: Client, message: any): void;
|
package/js/src/pro/onetrading.js
CHANGED
|
@@ -81,7 +81,7 @@ export default class onetrading extends onetradingRest {
|
|
|
81
81
|
* @see https://developers.bitpanda.com/exchange/#account-history-channel
|
|
82
82
|
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
83
83
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
84
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
84
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
85
85
|
*/
|
|
86
86
|
async watchBalance(params = {}) {
|
|
87
87
|
await this.authenticate(params);
|
|
@@ -141,7 +141,7 @@ export default class onetrading extends onetradingRest {
|
|
|
141
141
|
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
142
142
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
143
143
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
144
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
144
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
145
145
|
*/
|
|
146
146
|
async watchTicker(symbol, params = {}) {
|
|
147
147
|
await this.loadMarkets();
|
|
@@ -167,7 +167,7 @@ export default class onetrading extends onetradingRest {
|
|
|
167
167
|
* @description watches price tickers, a statistical calculation with the information for all markets or those specified.
|
|
168
168
|
* @param {string} symbols unified symbols of the markets to fetch the ticker for
|
|
169
169
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
170
|
-
* @returns {object} an array of [ticker structure]{@link https://docs.ccxt.com
|
|
170
|
+
* @returns {object} an array of [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
171
171
|
*/
|
|
172
172
|
async watchTickers(symbols = undefined, params = {}) {
|
|
173
173
|
await this.loadMarkets();
|
|
@@ -265,7 +265,7 @@ export default class onetrading extends onetradingRest {
|
|
|
265
265
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
266
266
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
267
267
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
268
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
268
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
269
269
|
*/
|
|
270
270
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
271
271
|
await this.loadMarkets();
|
|
@@ -308,7 +308,7 @@ export default class onetrading extends onetradingRest {
|
|
|
308
308
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
309
309
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
310
310
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
311
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
312
312
|
*/
|
|
313
313
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
314
314
|
await this.loadMarkets();
|
|
@@ -427,7 +427,7 @@ export default class onetrading extends onetradingRest {
|
|
|
427
427
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
428
428
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
429
429
|
* @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING
|
|
430
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
430
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
431
431
|
*/
|
|
432
432
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
433
433
|
await this.loadMarkets();
|