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/bybit.js
CHANGED
|
@@ -2394,7 +2394,7 @@ export default class bybit extends Exchange {
|
|
|
2394
2394
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
2395
2395
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2396
2396
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2397
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
2397
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2398
2398
|
*/
|
|
2399
2399
|
async fetchTicker(symbol, params = {}) {
|
|
2400
2400
|
if (symbol === undefined) {
|
|
@@ -2463,7 +2463,7 @@ export default class bybit extends Exchange {
|
|
|
2463
2463
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2464
2464
|
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
2465
2465
|
* @param {string} [params.baseCoin] *option only* base coin, default is 'BTC'
|
|
2466
|
-
* @returns {object} an array of [ticker structures]{@link https://docs.ccxt.com
|
|
2466
|
+
* @returns {object} an array of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2467
2467
|
*/
|
|
2468
2468
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
2469
2469
|
await this.loadMarkets();
|
|
@@ -2572,7 +2572,7 @@ export default class bybit extends Exchange {
|
|
|
2572
2572
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2573
2573
|
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
2574
2574
|
* @param {string} [params.baseCoin] *option only* base coin, default is 'BTC'
|
|
2575
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
2575
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2576
2576
|
*/
|
|
2577
2577
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
2578
2578
|
return await this.fetchTickers(symbols, params);
|
|
@@ -2785,7 +2785,7 @@ export default class bybit extends Exchange {
|
|
|
2785
2785
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
2786
2786
|
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
2787
2787
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2788
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2788
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
2789
2789
|
*/
|
|
2790
2790
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2791
2791
|
await this.loadMarkets();
|
|
@@ -2861,11 +2861,11 @@ export default class bybit extends Exchange {
|
|
|
2861
2861
|
* @see https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
|
2862
2862
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2863
2863
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2864
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
2864
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
2865
2865
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2866
2866
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2867
2867
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2868
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2868
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
2869
2869
|
*/
|
|
2870
2870
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2871
2871
|
if (symbol === undefined) {
|
|
@@ -3201,7 +3201,7 @@ export default class bybit extends Exchange {
|
|
|
3201
3201
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3202
3202
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
3203
3203
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
3204
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3204
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
3205
3205
|
*/
|
|
3206
3206
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
3207
3207
|
if (symbol === undefined) {
|
|
@@ -3257,7 +3257,7 @@ export default class bybit extends Exchange {
|
|
|
3257
3257
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
3258
3258
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
3259
3259
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3260
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
3260
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
3261
3261
|
*/
|
|
3262
3262
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
3263
3263
|
if (symbol === undefined) {
|
|
@@ -3498,7 +3498,7 @@ export default class bybit extends Exchange {
|
|
|
3498
3498
|
* @see https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
|
3499
3499
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3500
3500
|
* @param {string} [params.type] wallet type, ['spot', 'swap', 'funding']
|
|
3501
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
3501
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
3502
3502
|
*/
|
|
3503
3503
|
async fetchBalance(params = {}) {
|
|
3504
3504
|
await this.loadMarkets();
|
|
@@ -3926,7 +3926,7 @@ export default class bybit extends Exchange {
|
|
|
3926
3926
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
3927
3927
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
3928
3928
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3929
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
3929
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3930
3930
|
*/
|
|
3931
3931
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
3932
3932
|
await this.loadMarkets();
|
|
@@ -3947,7 +3947,7 @@ export default class bybit extends Exchange {
|
|
|
3947
3947
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
3948
3948
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
3949
3949
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3950
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
3950
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3951
3951
|
*/
|
|
3952
3952
|
async createMarketSellOrderWithCost(symbol, cost, params = {}) {
|
|
3953
3953
|
await this.loadMarkets();
|
|
@@ -3998,7 +3998,7 @@ export default class bybit extends Exchange {
|
|
|
3998
3998
|
* @param {string} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
3999
3999
|
* @param {string} [params.trailingTriggerPrice] the price to trigger a trailing order, default uses the price argument
|
|
4000
4000
|
* @param {boolean} [params.tradingStopEndpoint] whether to enforce using the tradingStop (https://bybit-exchange.github.io/docs/v5/position/trading-stop) endpoint, makes difference when submitting single tp/sl order
|
|
4001
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4001
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4002
4002
|
*/
|
|
4003
4003
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
4004
4004
|
await this.loadMarkets();
|
|
@@ -4353,7 +4353,7 @@ export default class bybit extends Exchange {
|
|
|
4353
4353
|
* @see https://bybit-exchange.github.io/docs/v5/order/batch-place
|
|
4354
4354
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
4355
4355
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4356
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4356
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4357
4357
|
*/
|
|
4358
4358
|
async createOrders(orders, params = {}) {
|
|
4359
4359
|
await this.loadMarkets();
|
|
@@ -4531,7 +4531,7 @@ export default class bybit extends Exchange {
|
|
|
4531
4531
|
* @param {string} [params.triggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for triggerPrice
|
|
4532
4532
|
* @param {string} [params.slTriggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for stopLoss
|
|
4533
4533
|
* @param {string} [params.tpTriggerby] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for takeProfit
|
|
4534
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4534
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4535
4535
|
*/
|
|
4536
4536
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
4537
4537
|
await this.loadMarkets();
|
|
@@ -4567,7 +4567,7 @@ export default class bybit extends Exchange {
|
|
|
4567
4567
|
* @see https://bybit-exchange.github.io/docs/v5/order/batch-amend
|
|
4568
4568
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
4569
4569
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4570
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4570
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4571
4571
|
*/
|
|
4572
4572
|
async editOrders(orders, params = {}) {
|
|
4573
4573
|
await this.loadMarkets();
|
|
@@ -4683,7 +4683,7 @@ export default class bybit extends Exchange {
|
|
|
4683
4683
|
* @param {boolean} [params.trigger] *spot only* whether the order is a trigger order
|
|
4684
4684
|
* @param {boolean} [params.stop] alias for trigger
|
|
4685
4685
|
* @param {string} [params.orderFilter] *spot only* 'Order' or 'StopOrder' or 'tpslOrder'
|
|
4686
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
4686
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4687
4687
|
*/
|
|
4688
4688
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
4689
4689
|
if (symbol === undefined) {
|
|
@@ -4717,7 +4717,7 @@ export default class bybit extends Exchange {
|
|
|
4717
4717
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4718
4718
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4719
4719
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
4720
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
4720
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4721
4721
|
*/
|
|
4722
4722
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
4723
4723
|
if (symbol === undefined) {
|
|
@@ -4834,7 +4834,7 @@ export default class bybit extends Exchange {
|
|
|
4834
4834
|
* @see https://bybit-exchange.github.io/docs/v5/order/batch-cancel
|
|
4835
4835
|
* @param {CancellationRequest[]} orders list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
|
|
4836
4836
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4837
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
4837
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4838
4838
|
*/
|
|
4839
4839
|
async cancelOrdersForSymbols(orders, params = {}) {
|
|
4840
4840
|
await this.loadMarkets();
|
|
@@ -4927,7 +4927,7 @@ export default class bybit extends Exchange {
|
|
|
4927
4927
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
4928
4928
|
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
4929
4929
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
4930
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
4930
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4931
4931
|
*/
|
|
4932
4932
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
4933
4933
|
await this.loadMarkets();
|
|
@@ -5001,7 +5001,7 @@ export default class bybit extends Exchange {
|
|
|
5001
5001
|
* @param {string} id the order id
|
|
5002
5002
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5003
5003
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5004
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
5004
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5005
5005
|
*/
|
|
5006
5006
|
async fetchOrderClassic(id, symbol = undefined, params = {}) {
|
|
5007
5007
|
if (symbol === undefined) {
|
|
@@ -5036,7 +5036,7 @@ export default class bybit extends Exchange {
|
|
|
5036
5036
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5037
5037
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5038
5038
|
* @param {object} [params.acknowledged] to suppress the warning, set to true
|
|
5039
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
5039
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5040
5040
|
*/
|
|
5041
5041
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
5042
5042
|
await this.loadMarkets();
|
|
@@ -5140,7 +5140,7 @@ export default class bybit extends Exchange {
|
|
|
5140
5140
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5141
5141
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5142
5142
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5143
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5143
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5144
5144
|
*/
|
|
5145
5145
|
const enableUnifiedAccount = this.safeBool(res, 1);
|
|
5146
5146
|
if (enableUnifiedAccount) {
|
|
@@ -5164,7 +5164,7 @@ export default class bybit extends Exchange {
|
|
|
5164
5164
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5165
5165
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5166
5166
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5167
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5167
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5168
5168
|
*/
|
|
5169
5169
|
async fetchOrdersClassic(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5170
5170
|
await this.loadMarkets();
|
|
@@ -5269,7 +5269,7 @@ export default class bybit extends Exchange {
|
|
|
5269
5269
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
5270
5270
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
5271
5271
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5272
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5272
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5273
5273
|
*/
|
|
5274
5274
|
async fetchClosedOrder(id, symbol = undefined, params = {}) {
|
|
5275
5275
|
await this.loadMarkets();
|
|
@@ -5303,7 +5303,7 @@ export default class bybit extends Exchange {
|
|
|
5303
5303
|
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
5304
5304
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
5305
5305
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5306
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5306
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5307
5307
|
*/
|
|
5308
5308
|
async fetchOpenOrder(id, symbol = undefined, params = {}) {
|
|
5309
5309
|
await this.loadMarkets();
|
|
@@ -5338,7 +5338,7 @@ export default class bybit extends Exchange {
|
|
|
5338
5338
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5339
5339
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5340
5340
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5341
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5341
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5342
5342
|
*/
|
|
5343
5343
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5344
5344
|
await this.loadMarkets();
|
|
@@ -5457,7 +5457,7 @@ export default class bybit extends Exchange {
|
|
|
5457
5457
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5458
5458
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5459
5459
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5460
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5460
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5461
5461
|
*/
|
|
5462
5462
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5463
5463
|
await this.loadMarkets();
|
|
@@ -5482,7 +5482,7 @@ export default class bybit extends Exchange {
|
|
|
5482
5482
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5483
5483
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5484
5484
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5485
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com
|
|
5485
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5486
5486
|
*/
|
|
5487
5487
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5488
5488
|
await this.loadMarkets();
|
|
@@ -5508,7 +5508,7 @@ export default class bybit extends Exchange {
|
|
|
5508
5508
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
5509
5509
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5510
5510
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5511
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
5511
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5512
5512
|
*/
|
|
5513
5513
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5514
5514
|
await this.loadMarkets();
|
|
@@ -5620,7 +5620,7 @@ export default class bybit extends Exchange {
|
|
|
5620
5620
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5621
5621
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
5622
5622
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5623
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
5623
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
5624
5624
|
*/
|
|
5625
5625
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5626
5626
|
const request = {};
|
|
@@ -5646,7 +5646,7 @@ export default class bybit extends Exchange {
|
|
|
5646
5646
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
5647
5647
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
5648
5648
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5649
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
5649
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
5650
5650
|
*/
|
|
5651
5651
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5652
5652
|
await this.loadMarkets();
|
|
@@ -5745,7 +5745,7 @@ export default class bybit extends Exchange {
|
|
|
5745
5745
|
* @see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
|
5746
5746
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
5747
5747
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5748
|
-
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com
|
|
5748
|
+
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
|
|
5749
5749
|
*/
|
|
5750
5750
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
5751
5751
|
await this.loadMarkets();
|
|
@@ -5794,7 +5794,7 @@ export default class bybit extends Exchange {
|
|
|
5794
5794
|
* @see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
|
5795
5795
|
* @param {string} code unified currency code
|
|
5796
5796
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5797
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
5797
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
5798
5798
|
*/
|
|
5799
5799
|
async fetchDepositAddress(code, params = {}) {
|
|
5800
5800
|
await this.loadMarkets();
|
|
@@ -5817,7 +5817,7 @@ export default class bybit extends Exchange {
|
|
|
5817
5817
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
5818
5818
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5819
5819
|
* @param {string} [params.cursor] used for pagination
|
|
5820
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
5820
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
5821
5821
|
*/
|
|
5822
5822
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5823
5823
|
await this.loadMarkets();
|
|
@@ -5885,7 +5885,7 @@ export default class bybit extends Exchange {
|
|
|
5885
5885
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5886
5886
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5887
5887
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
5888
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
5888
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
5889
5889
|
*/
|
|
5890
5890
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5891
5891
|
await this.loadMarkets();
|
|
@@ -6066,7 +6066,7 @@ export default class bybit extends Exchange {
|
|
|
6066
6066
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6067
6067
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
6068
6068
|
* @param {string} [params.subType] if inverse will use v5/account/contract-transaction-log
|
|
6069
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
6069
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
6070
6070
|
*/
|
|
6071
6071
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
6072
6072
|
await this.loadMarkets();
|
|
@@ -6349,7 +6349,7 @@ export default class bybit extends Exchange {
|
|
|
6349
6349
|
* @param {string} tag
|
|
6350
6350
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6351
6351
|
* @param {string} [params.accountType] 'UTA', 'FUND', 'FUND,UTA', and 'SPOT (for classic accounts only)
|
|
6352
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
6352
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
6353
6353
|
*/
|
|
6354
6354
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
6355
6355
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -6400,7 +6400,7 @@ export default class bybit extends Exchange {
|
|
|
6400
6400
|
* @see https://bybit-exchange.github.io/docs/v5/position
|
|
6401
6401
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
6402
6402
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6403
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
6403
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
6404
6404
|
*/
|
|
6405
6405
|
async fetchPosition(symbol, params = {}) {
|
|
6406
6406
|
if (symbol === undefined) {
|
|
@@ -6477,7 +6477,7 @@ export default class bybit extends Exchange {
|
|
|
6477
6477
|
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
6478
6478
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
6479
6479
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times
|
|
6480
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
6480
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
6481
6481
|
*/
|
|
6482
6482
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
6483
6483
|
await this.loadMarkets();
|
|
@@ -6832,7 +6832,7 @@ export default class bybit extends Exchange {
|
|
|
6832
6832
|
* @see https://bybit-exchange.github.io/docs/v5/position
|
|
6833
6833
|
* @param {string} symbol unified market symbol
|
|
6834
6834
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6835
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
6835
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
6836
6836
|
*/
|
|
6837
6837
|
async fetchLeverage(symbol, params = {}) {
|
|
6838
6838
|
await this.loadMarkets();
|
|
@@ -7115,7 +7115,7 @@ export default class bybit extends Exchange {
|
|
|
7115
7115
|
* @param {object} [params] exchange specific parameters
|
|
7116
7116
|
* @param {string} [params.interval] 5m, 15m, 30m, 1h, 4h, 1d
|
|
7117
7117
|
* @param {string} [params.category] "linear" or "inverse"
|
|
7118
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
7118
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
7119
7119
|
*/
|
|
7120
7120
|
async fetchOpenInterest(symbol, params = {}) {
|
|
7121
7121
|
await this.loadMarkets();
|
|
@@ -7230,7 +7230,7 @@ export default class bybit extends Exchange {
|
|
|
7230
7230
|
* @see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/interest-quota
|
|
7231
7231
|
* @param {string} code unified currency code
|
|
7232
7232
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7233
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
7233
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
7234
7234
|
*/
|
|
7235
7235
|
async fetchCrossBorrowRate(code, params = {}) {
|
|
7236
7236
|
await this.loadMarkets();
|
|
@@ -7299,7 +7299,7 @@ export default class bybit extends Exchange {
|
|
|
7299
7299
|
* @param {number} [since] the earliest time in ms to fetch borrrow interest for
|
|
7300
7300
|
* @param {number} [limit] the maximum number of structures to retrieve
|
|
7301
7301
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7302
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com
|
|
7302
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
7303
7303
|
*/
|
|
7304
7304
|
async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7305
7305
|
await this.loadMarkets();
|
|
@@ -7342,10 +7342,10 @@ export default class bybit extends Exchange {
|
|
|
7342
7342
|
* @see https://bybit-exchange.github.io/docs/v5/spot-margin-uta/historical-interest
|
|
7343
7343
|
* @param {string} code unified currency code
|
|
7344
7344
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
7345
|
-
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com
|
|
7345
|
+
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
|
|
7346
7346
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7347
7347
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
7348
|
-
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com
|
|
7348
|
+
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
7349
7349
|
*/
|
|
7350
7350
|
async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
|
|
7351
7351
|
await this.loadMarkets();
|
|
@@ -7420,7 +7420,7 @@ export default class bybit extends Exchange {
|
|
|
7420
7420
|
* @param {string} toAccount account to transfer to
|
|
7421
7421
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7422
7422
|
* @param {string} [params.transferId] UUID, which is unique across the platform
|
|
7423
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
7423
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
7424
7424
|
*/
|
|
7425
7425
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
7426
7426
|
await this.loadMarkets();
|
|
@@ -7473,7 +7473,7 @@ export default class bybit extends Exchange {
|
|
|
7473
7473
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7474
7474
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
7475
7475
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
7476
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
7476
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
7477
7477
|
*/
|
|
7478
7478
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7479
7479
|
await this.loadMarkets();
|
|
@@ -7529,7 +7529,7 @@ export default class bybit extends Exchange {
|
|
|
7529
7529
|
* @param {string} code unified currency code of the currency to borrow
|
|
7530
7530
|
* @param {float} amount the amount to borrow
|
|
7531
7531
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7532
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
7532
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
7533
7533
|
*/
|
|
7534
7534
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
7535
7535
|
await this.loadMarkets();
|
|
@@ -7562,7 +7562,7 @@ export default class bybit extends Exchange {
|
|
|
7562
7562
|
* @param {string} code unified currency code of the currency to repay
|
|
7563
7563
|
* @param {float} amount the amount to repay
|
|
7564
7564
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7565
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
7565
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
7566
7566
|
*/
|
|
7567
7567
|
async repayCrossMargin(code, amount, params = {}) {
|
|
7568
7568
|
await this.loadMarkets();
|
|
@@ -7709,7 +7709,7 @@ export default class bybit extends Exchange {
|
|
|
7709
7709
|
* @see https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
|
7710
7710
|
* @param {string} symbol unified market symbol
|
|
7711
7711
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7712
|
-
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com
|
|
7712
|
+
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
|
|
7713
7713
|
*/
|
|
7714
7714
|
async fetchMarketLeverageTiers(symbol, params = {}) {
|
|
7715
7715
|
await this.loadMarkets();
|
|
@@ -7749,7 +7749,7 @@ export default class bybit extends Exchange {
|
|
|
7749
7749
|
* @see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
|
7750
7750
|
* @param {string} symbol unified market symbol
|
|
7751
7751
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7752
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
7752
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
7753
7753
|
*/
|
|
7754
7754
|
async fetchTradingFee(symbol, params = {}) {
|
|
7755
7755
|
await this.loadMarkets();
|
|
@@ -7790,7 +7790,7 @@ export default class bybit extends Exchange {
|
|
|
7790
7790
|
* @see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
|
7791
7791
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7792
7792
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
7793
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
7793
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
7794
7794
|
*/
|
|
7795
7795
|
async fetchTradingFees(params = {}) {
|
|
7796
7796
|
await this.loadMarkets();
|
|
@@ -7887,7 +7887,7 @@ export default class bybit extends Exchange {
|
|
|
7887
7887
|
* @see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
|
7888
7888
|
* @param {string[]} codes list of unified currency codes
|
|
7889
7889
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7890
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
7890
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
7891
7891
|
*/
|
|
7892
7892
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
7893
7893
|
this.checkRequiredCredentials();
|
|
@@ -8118,7 +8118,7 @@ export default class bybit extends Exchange {
|
|
|
8118
8118
|
* @param {string} code unified currency code
|
|
8119
8119
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8120
8120
|
* @param {int} [params.period] the period in days to fetch the volatility for: 7,14,21,30,60,90,180,270
|
|
8121
|
-
* @returns {object[]} a list of [volatility history objects]{@link https://docs.ccxt.com
|
|
8121
|
+
* @returns {object[]} a list of [volatility history objects]{@link https://docs.ccxt.com/?id=volatility-structure}
|
|
8122
8122
|
*/
|
|
8123
8123
|
async fetchVolatilityHistory(code, params = {}) {
|
|
8124
8124
|
await this.loadMarkets();
|
|
@@ -8173,7 +8173,7 @@ export default class bybit extends Exchange {
|
|
|
8173
8173
|
* @see https://bybit-exchange.github.io/docs/api-explorer/v5/market/tickers
|
|
8174
8174
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
8175
8175
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8176
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
8176
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
8177
8177
|
*/
|
|
8178
8178
|
async fetchGreeks(symbol, params = {}) {
|
|
8179
8179
|
await this.loadMarkets();
|
|
@@ -8240,7 +8240,7 @@ export default class bybit extends Exchange {
|
|
|
8240
8240
|
* @param {string[]} [symbols] unified symbols of the markets to fetch greeks for, all markets are returned if not assigned
|
|
8241
8241
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8242
8242
|
* @param {string} [params.baseCoin] the baseCoin of the symbol, default is BTC
|
|
8243
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
8243
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
8244
8244
|
*/
|
|
8245
8245
|
async fetchAllGreeks(symbols = undefined, params = {}) {
|
|
8246
8246
|
await this.loadMarkets();
|
|
@@ -8369,7 +8369,7 @@ export default class bybit extends Exchange {
|
|
|
8369
8369
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
8370
8370
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
8371
8371
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
8372
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
8372
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
8373
8373
|
*/
|
|
8374
8374
|
async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8375
8375
|
await this.loadMarkets();
|
|
@@ -8526,7 +8526,7 @@ export default class bybit extends Exchange {
|
|
|
8526
8526
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8527
8527
|
* @param {string} [params.subType] market subType, ['linear', 'inverse'], default is 'linear'
|
|
8528
8528
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
8529
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
8529
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
8530
8530
|
*/
|
|
8531
8531
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
8532
8532
|
await this.loadMarkets();
|
|
@@ -8621,7 +8621,7 @@ export default class bybit extends Exchange {
|
|
|
8621
8621
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
8622
8622
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8623
8623
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
8624
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
8624
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
8625
8625
|
*/
|
|
8626
8626
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8627
8627
|
await this.loadMarkets();
|
|
@@ -8718,7 +8718,7 @@ export default class bybit extends Exchange {
|
|
|
8718
8718
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
8719
8719
|
* @param {string} symbol unified market symbol
|
|
8720
8720
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8721
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
8721
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
8722
8722
|
*/
|
|
8723
8723
|
async fetchOption(symbol, params = {}) {
|
|
8724
8724
|
await this.loadMarkets();
|
|
@@ -8780,7 +8780,7 @@ export default class bybit extends Exchange {
|
|
|
8780
8780
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
8781
8781
|
* @param {string} code base currency to fetch an option chain for
|
|
8782
8782
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8783
|
-
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com
|
|
8783
|
+
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
8784
8784
|
*/
|
|
8785
8785
|
async fetchOptionChain(code, params = {}) {
|
|
8786
8786
|
await this.loadMarkets();
|
|
@@ -8897,7 +8897,7 @@ export default class bybit extends Exchange {
|
|
|
8897
8897
|
* @param {object} params extra parameters specific to the exchange api endpoint
|
|
8898
8898
|
* @param {int} [params.until] timestamp in ms of the latest position to fetch, params["until"] - since <= 7 days
|
|
8899
8899
|
* @param {string} [params.subType] 'linear' or 'inverse'
|
|
8900
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
8900
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
8901
8901
|
*/
|
|
8902
8902
|
async fetchPositionsHistory(symbols = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8903
8903
|
await this.loadMarkets();
|
|
@@ -9071,7 +9071,7 @@ export default class bybit extends Exchange {
|
|
|
9071
9071
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
9072
9072
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9073
9073
|
* @param {string} [params.accountType] eb_convert_uta, eb_convert_spot, eb_convert_funding, eb_convert_inverse, or eb_convert_contract
|
|
9074
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
9074
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9075
9075
|
*/
|
|
9076
9076
|
async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
|
|
9077
9077
|
await this.loadMarkets();
|
|
@@ -9125,7 +9125,7 @@ export default class bybit extends Exchange {
|
|
|
9125
9125
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
9126
9126
|
* @param {float} amount how much you want to trade in units of the from currency
|
|
9127
9127
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9128
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
9128
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9129
9129
|
*/
|
|
9130
9130
|
async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
|
|
9131
9131
|
await this.loadMarkets();
|
|
@@ -9157,7 +9157,7 @@ export default class bybit extends Exchange {
|
|
|
9157
9157
|
* @param {string} [code] the unified currency code of the conversion trade
|
|
9158
9158
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9159
9159
|
* @param {string} [params.accountType] eb_convert_uta, eb_convert_spot, eb_convert_funding, eb_convert_inverse, or eb_convert_contract
|
|
9160
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
9160
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9161
9161
|
*/
|
|
9162
9162
|
async fetchConvertTrade(id, code = undefined, params = {}) {
|
|
9163
9163
|
await this.loadMarkets();
|
|
@@ -9220,7 +9220,7 @@ export default class bybit extends Exchange {
|
|
|
9220
9220
|
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
9221
9221
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9222
9222
|
* @param {string} [params.accountType] eb_convert_uta, eb_convert_spot, eb_convert_funding, eb_convert_inverse, or eb_convert_contract
|
|
9223
|
-
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com
|
|
9223
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9224
9224
|
*/
|
|
9225
9225
|
async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
9226
9226
|
await this.loadMarkets();
|
|
@@ -9330,7 +9330,7 @@ export default class bybit extends Exchange {
|
|
|
9330
9330
|
* @param {int} [since] the earliest time in ms to fetch ratios for
|
|
9331
9331
|
* @param {int} [limit] the maximum number of long short ratio structures to retrieve
|
|
9332
9332
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9333
|
-
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com
|
|
9333
|
+
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
|
|
9334
9334
|
*/
|
|
9335
9335
|
async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
|
|
9336
9336
|
await this.loadMarkets();
|