ccxt 4.5.28 → 4.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +47 -47
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +86 -45
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +156 -48
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +13 -11
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +393 -34
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +25 -23
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +18 -16
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +13 -11
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +20 -16
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +33 -30
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +47 -47
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +25 -25
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +60 -59
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +86 -45
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +58 -44
- package/js/src/kucoin.js +156 -48
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +13 -11
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +393 -34
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +25 -23
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +26 -62
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +11 -9
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +18 -16
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +13 -11
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +20 -16
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +33 -30
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/bybit.js
CHANGED
|
@@ -902,6 +902,8 @@ export default class bybit extends Exchange {
|
|
|
902
902
|
'170229': InvalidOrder,
|
|
903
903
|
'170234': ExchangeError,
|
|
904
904
|
'170241': ManualInteractionNeeded,
|
|
905
|
+
'170371': InvalidOrder,
|
|
906
|
+
'170372': InvalidOrder,
|
|
905
907
|
'175000': InvalidOrder,
|
|
906
908
|
'175001': InvalidOrder,
|
|
907
909
|
'175002': InvalidOrder,
|
|
@@ -2394,7 +2396,7 @@ export default class bybit extends Exchange {
|
|
|
2394
2396
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
2395
2397
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2396
2398
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2397
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
2399
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2398
2400
|
*/
|
|
2399
2401
|
async fetchTicker(symbol, params = {}) {
|
|
2400
2402
|
if (symbol === undefined) {
|
|
@@ -2463,7 +2465,7 @@ export default class bybit extends Exchange {
|
|
|
2463
2465
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2464
2466
|
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
2465
2467
|
* @param {string} [params.baseCoin] *option only* base coin, default is 'BTC'
|
|
2466
|
-
* @returns {object} an array of [ticker structures]{@link https://docs.ccxt.com
|
|
2468
|
+
* @returns {object} an array of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2467
2469
|
*/
|
|
2468
2470
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
2469
2471
|
await this.loadMarkets();
|
|
@@ -2572,7 +2574,7 @@ export default class bybit extends Exchange {
|
|
|
2572
2574
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2573
2575
|
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
2574
2576
|
* @param {string} [params.baseCoin] *option only* base coin, default is 'BTC'
|
|
2575
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
2577
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
2576
2578
|
*/
|
|
2577
2579
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
2578
2580
|
return await this.fetchTickers(symbols, params);
|
|
@@ -2785,7 +2787,7 @@ export default class bybit extends Exchange {
|
|
|
2785
2787
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
2786
2788
|
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
2787
2789
|
* @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
|
|
2790
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
2789
2791
|
*/
|
|
2790
2792
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2791
2793
|
await this.loadMarkets();
|
|
@@ -2861,11 +2863,11 @@ export default class bybit extends Exchange {
|
|
|
2861
2863
|
* @see https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
|
2862
2864
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2863
2865
|
* @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
|
|
2866
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
2865
2867
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2866
2868
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2867
2869
|
* @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
|
|
2870
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
2869
2871
|
*/
|
|
2870
2872
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2871
2873
|
if (symbol === undefined) {
|
|
@@ -3201,7 +3203,7 @@ export default class bybit extends Exchange {
|
|
|
3201
3203
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3202
3204
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
3203
3205
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
3204
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
3206
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
3205
3207
|
*/
|
|
3206
3208
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
3207
3209
|
if (symbol === undefined) {
|
|
@@ -3257,7 +3259,7 @@ export default class bybit extends Exchange {
|
|
|
3257
3259
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
3258
3260
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
3259
3261
|
* @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
|
|
3262
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
3261
3263
|
*/
|
|
3262
3264
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
3263
3265
|
if (symbol === undefined) {
|
|
@@ -3498,7 +3500,7 @@ export default class bybit extends Exchange {
|
|
|
3498
3500
|
* @see https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
|
3499
3501
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3500
3502
|
* @param {string} [params.type] wallet type, ['spot', 'swap', 'funding']
|
|
3501
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
3503
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
3502
3504
|
*/
|
|
3503
3505
|
async fetchBalance(params = {}) {
|
|
3504
3506
|
await this.loadMarkets();
|
|
@@ -3926,7 +3928,7 @@ export default class bybit extends Exchange {
|
|
|
3926
3928
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
3927
3929
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
3928
3930
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3929
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
3931
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3930
3932
|
*/
|
|
3931
3933
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
3932
3934
|
await this.loadMarkets();
|
|
@@ -3947,7 +3949,7 @@ export default class bybit extends Exchange {
|
|
|
3947
3949
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
3948
3950
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
3949
3951
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3950
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
3952
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
3951
3953
|
*/
|
|
3952
3954
|
async createMarketSellOrderWithCost(symbol, cost, params = {}) {
|
|
3953
3955
|
await this.loadMarkets();
|
|
@@ -3998,7 +4000,7 @@ export default class bybit extends Exchange {
|
|
|
3998
4000
|
* @param {string} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
3999
4001
|
* @param {string} [params.trailingTriggerPrice] the price to trigger a trailing order, default uses the price argument
|
|
4000
4002
|
* @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
|
|
4003
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4002
4004
|
*/
|
|
4003
4005
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
4004
4006
|
await this.loadMarkets();
|
|
@@ -4353,7 +4355,7 @@ export default class bybit extends Exchange {
|
|
|
4353
4355
|
* @see https://bybit-exchange.github.io/docs/v5/order/batch-place
|
|
4354
4356
|
* @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
4357
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4356
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4358
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4357
4359
|
*/
|
|
4358
4360
|
async createOrders(orders, params = {}) {
|
|
4359
4361
|
await this.loadMarkets();
|
|
@@ -4531,7 +4533,7 @@ export default class bybit extends Exchange {
|
|
|
4531
4533
|
* @param {string} [params.triggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for triggerPrice
|
|
4532
4534
|
* @param {string} [params.slTriggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for stopLoss
|
|
4533
4535
|
* @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
|
|
4536
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4535
4537
|
*/
|
|
4536
4538
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
4537
4539
|
await this.loadMarkets();
|
|
@@ -4567,7 +4569,7 @@ export default class bybit extends Exchange {
|
|
|
4567
4569
|
* @see https://bybit-exchange.github.io/docs/v5/order/batch-amend
|
|
4568
4570
|
* @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
4571
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4570
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
4572
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4571
4573
|
*/
|
|
4572
4574
|
async editOrders(orders, params = {}) {
|
|
4573
4575
|
await this.loadMarkets();
|
|
@@ -4683,7 +4685,7 @@ export default class bybit extends Exchange {
|
|
|
4683
4685
|
* @param {boolean} [params.trigger] *spot only* whether the order is a trigger order
|
|
4684
4686
|
* @param {boolean} [params.stop] alias for trigger
|
|
4685
4687
|
* @param {string} [params.orderFilter] *spot only* 'Order' or 'StopOrder' or 'tpslOrder'
|
|
4686
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
4688
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4687
4689
|
*/
|
|
4688
4690
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
4689
4691
|
if (symbol === undefined) {
|
|
@@ -4717,7 +4719,7 @@ export default class bybit extends Exchange {
|
|
|
4717
4719
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4718
4720
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4719
4721
|
* @param {string[]} [params.clientOrderIds] client order ids
|
|
4720
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
4722
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4721
4723
|
*/
|
|
4722
4724
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
4723
4725
|
if (symbol === undefined) {
|
|
@@ -4834,7 +4836,7 @@ export default class bybit extends Exchange {
|
|
|
4834
4836
|
* @see https://bybit-exchange.github.io/docs/v5/order/batch-cancel
|
|
4835
4837
|
* @param {CancellationRequest[]} orders list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
|
|
4836
4838
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4837
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
4839
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4838
4840
|
*/
|
|
4839
4841
|
async cancelOrdersForSymbols(orders, params = {}) {
|
|
4840
4842
|
await this.loadMarkets();
|
|
@@ -4927,7 +4929,7 @@ export default class bybit extends Exchange {
|
|
|
4927
4929
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
4928
4930
|
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
4929
4931
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
4930
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
4932
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
4931
4933
|
*/
|
|
4932
4934
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
4933
4935
|
await this.loadMarkets();
|
|
@@ -5001,7 +5003,7 @@ export default class bybit extends Exchange {
|
|
|
5001
5003
|
* @param {string} id the order id
|
|
5002
5004
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5003
5005
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5004
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
5006
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5005
5007
|
*/
|
|
5006
5008
|
async fetchOrderClassic(id, symbol = undefined, params = {}) {
|
|
5007
5009
|
if (symbol === undefined) {
|
|
@@ -5036,7 +5038,7 @@ export default class bybit extends Exchange {
|
|
|
5036
5038
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5037
5039
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5038
5040
|
* @param {object} [params.acknowledged] to suppress the warning, set to true
|
|
5039
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
5041
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5040
5042
|
*/
|
|
5041
5043
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
5042
5044
|
await this.loadMarkets();
|
|
@@ -5140,7 +5142,7 @@ export default class bybit extends Exchange {
|
|
|
5140
5142
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5141
5143
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5142
5144
|
* @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
|
|
5145
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5144
5146
|
*/
|
|
5145
5147
|
const enableUnifiedAccount = this.safeBool(res, 1);
|
|
5146
5148
|
if (enableUnifiedAccount) {
|
|
@@ -5164,7 +5166,7 @@ export default class bybit extends Exchange {
|
|
|
5164
5166
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5165
5167
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5166
5168
|
* @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
|
|
5169
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5168
5170
|
*/
|
|
5169
5171
|
async fetchOrdersClassic(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5170
5172
|
await this.loadMarkets();
|
|
@@ -5269,7 +5271,7 @@ export default class bybit extends Exchange {
|
|
|
5269
5271
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
5270
5272
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
5271
5273
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5272
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5274
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5273
5275
|
*/
|
|
5274
5276
|
async fetchClosedOrder(id, symbol = undefined, params = {}) {
|
|
5275
5277
|
await this.loadMarkets();
|
|
@@ -5303,7 +5305,7 @@ export default class bybit extends Exchange {
|
|
|
5303
5305
|
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
5304
5306
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
5305
5307
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5306
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5308
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5307
5309
|
*/
|
|
5308
5310
|
async fetchOpenOrder(id, symbol = undefined, params = {}) {
|
|
5309
5311
|
await this.loadMarkets();
|
|
@@ -5338,7 +5340,7 @@ export default class bybit extends Exchange {
|
|
|
5338
5340
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5339
5341
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5340
5342
|
* @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
|
|
5343
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5342
5344
|
*/
|
|
5343
5345
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5344
5346
|
await this.loadMarkets();
|
|
@@ -5457,7 +5459,7 @@ export default class bybit extends Exchange {
|
|
|
5457
5459
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5458
5460
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5459
5461
|
* @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
|
|
5462
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5461
5463
|
*/
|
|
5462
5464
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5463
5465
|
await this.loadMarkets();
|
|
@@ -5482,7 +5484,7 @@ export default class bybit extends Exchange {
|
|
|
5482
5484
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5483
5485
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5484
5486
|
* @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
|
|
5487
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5486
5488
|
*/
|
|
5487
5489
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5488
5490
|
await this.loadMarkets();
|
|
@@ -5508,7 +5510,7 @@ export default class bybit extends Exchange {
|
|
|
5508
5510
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
5509
5511
|
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
5510
5512
|
* @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
|
|
5513
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5512
5514
|
*/
|
|
5513
5515
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5514
5516
|
await this.loadMarkets();
|
|
@@ -5620,7 +5622,7 @@ export default class bybit extends Exchange {
|
|
|
5620
5622
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5621
5623
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
5622
5624
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5623
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
5625
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
5624
5626
|
*/
|
|
5625
5627
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5626
5628
|
const request = {};
|
|
@@ -5646,7 +5648,7 @@ export default class bybit extends Exchange {
|
|
|
5646
5648
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
5647
5649
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
5648
5650
|
* @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
|
|
5651
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
5650
5652
|
*/
|
|
5651
5653
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5652
5654
|
await this.loadMarkets();
|
|
@@ -5745,7 +5747,7 @@ export default class bybit extends Exchange {
|
|
|
5745
5747
|
* @see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
|
5746
5748
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
5747
5749
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5748
|
-
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com
|
|
5750
|
+
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
|
|
5749
5751
|
*/
|
|
5750
5752
|
async fetchDepositAddressesByNetwork(code, params = {}) {
|
|
5751
5753
|
await this.loadMarkets();
|
|
@@ -5794,7 +5796,7 @@ export default class bybit extends Exchange {
|
|
|
5794
5796
|
* @see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
|
5795
5797
|
* @param {string} code unified currency code
|
|
5796
5798
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5797
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
5799
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
5798
5800
|
*/
|
|
5799
5801
|
async fetchDepositAddress(code, params = {}) {
|
|
5800
5802
|
await this.loadMarkets();
|
|
@@ -5817,7 +5819,7 @@ export default class bybit extends Exchange {
|
|
|
5817
5819
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
5818
5820
|
* @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
5821
|
* @param {string} [params.cursor] used for pagination
|
|
5820
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
5822
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
5821
5823
|
*/
|
|
5822
5824
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5823
5825
|
await this.loadMarkets();
|
|
@@ -5885,7 +5887,7 @@ export default class bybit extends Exchange {
|
|
|
5885
5887
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5886
5888
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
5887
5889
|
* @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
|
|
5890
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
5889
5891
|
*/
|
|
5890
5892
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
5891
5893
|
await this.loadMarkets();
|
|
@@ -6066,7 +6068,7 @@ export default class bybit extends Exchange {
|
|
|
6066
6068
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6067
6069
|
* @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
6070
|
* @param {string} [params.subType] if inverse will use v5/account/contract-transaction-log
|
|
6069
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
6071
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
6070
6072
|
*/
|
|
6071
6073
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
6072
6074
|
await this.loadMarkets();
|
|
@@ -6349,7 +6351,7 @@ export default class bybit extends Exchange {
|
|
|
6349
6351
|
* @param {string} tag
|
|
6350
6352
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6351
6353
|
* @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
|
|
6354
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
6353
6355
|
*/
|
|
6354
6356
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
6355
6357
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -6400,7 +6402,7 @@ export default class bybit extends Exchange {
|
|
|
6400
6402
|
* @see https://bybit-exchange.github.io/docs/v5/position
|
|
6401
6403
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
6402
6404
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6403
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
6405
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
6404
6406
|
*/
|
|
6405
6407
|
async fetchPosition(symbol, params = {}) {
|
|
6406
6408
|
if (symbol === undefined) {
|
|
@@ -6477,7 +6479,7 @@ export default class bybit extends Exchange {
|
|
|
6477
6479
|
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
6478
6480
|
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
6479
6481
|
* @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
|
|
6482
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
6481
6483
|
*/
|
|
6482
6484
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
6483
6485
|
await this.loadMarkets();
|
|
@@ -6832,7 +6834,7 @@ export default class bybit extends Exchange {
|
|
|
6832
6834
|
* @see https://bybit-exchange.github.io/docs/v5/position
|
|
6833
6835
|
* @param {string} symbol unified market symbol
|
|
6834
6836
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6835
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
6837
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
6836
6838
|
*/
|
|
6837
6839
|
async fetchLeverage(symbol, params = {}) {
|
|
6838
6840
|
await this.loadMarkets();
|
|
@@ -7115,7 +7117,7 @@ export default class bybit extends Exchange {
|
|
|
7115
7117
|
* @param {object} [params] exchange specific parameters
|
|
7116
7118
|
* @param {string} [params.interval] 5m, 15m, 30m, 1h, 4h, 1d
|
|
7117
7119
|
* @param {string} [params.category] "linear" or "inverse"
|
|
7118
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
7120
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
7119
7121
|
*/
|
|
7120
7122
|
async fetchOpenInterest(symbol, params = {}) {
|
|
7121
7123
|
await this.loadMarkets();
|
|
@@ -7230,7 +7232,7 @@ export default class bybit extends Exchange {
|
|
|
7230
7232
|
* @see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/interest-quota
|
|
7231
7233
|
* @param {string} code unified currency code
|
|
7232
7234
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7233
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
7235
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
7234
7236
|
*/
|
|
7235
7237
|
async fetchCrossBorrowRate(code, params = {}) {
|
|
7236
7238
|
await this.loadMarkets();
|
|
@@ -7299,7 +7301,7 @@ export default class bybit extends Exchange {
|
|
|
7299
7301
|
* @param {number} [since] the earliest time in ms to fetch borrrow interest for
|
|
7300
7302
|
* @param {number} [limit] the maximum number of structures to retrieve
|
|
7301
7303
|
* @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
|
|
7304
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
7303
7305
|
*/
|
|
7304
7306
|
async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7305
7307
|
await this.loadMarkets();
|
|
@@ -7342,10 +7344,10 @@ export default class bybit extends Exchange {
|
|
|
7342
7344
|
* @see https://bybit-exchange.github.io/docs/v5/spot-margin-uta/historical-interest
|
|
7343
7345
|
* @param {string} code unified currency code
|
|
7344
7346
|
* @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
|
|
7347
|
+
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
|
|
7346
7348
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7347
7349
|
* @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
|
|
7350
|
+
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
7349
7351
|
*/
|
|
7350
7352
|
async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
|
|
7351
7353
|
await this.loadMarkets();
|
|
@@ -7420,7 +7422,7 @@ export default class bybit extends Exchange {
|
|
|
7420
7422
|
* @param {string} toAccount account to transfer to
|
|
7421
7423
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7422
7424
|
* @param {string} [params.transferId] UUID, which is unique across the platform
|
|
7423
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
7425
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
7424
7426
|
*/
|
|
7425
7427
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
7426
7428
|
await this.loadMarkets();
|
|
@@ -7473,7 +7475,7 @@ export default class bybit extends Exchange {
|
|
|
7473
7475
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7474
7476
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
7475
7477
|
* @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
|
|
7478
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
7477
7479
|
*/
|
|
7478
7480
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7479
7481
|
await this.loadMarkets();
|
|
@@ -7529,7 +7531,7 @@ export default class bybit extends Exchange {
|
|
|
7529
7531
|
* @param {string} code unified currency code of the currency to borrow
|
|
7530
7532
|
* @param {float} amount the amount to borrow
|
|
7531
7533
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7532
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
7534
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
7533
7535
|
*/
|
|
7534
7536
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
7535
7537
|
await this.loadMarkets();
|
|
@@ -7562,7 +7564,7 @@ export default class bybit extends Exchange {
|
|
|
7562
7564
|
* @param {string} code unified currency code of the currency to repay
|
|
7563
7565
|
* @param {float} amount the amount to repay
|
|
7564
7566
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7565
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
7567
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
7566
7568
|
*/
|
|
7567
7569
|
async repayCrossMargin(code, amount, params = {}) {
|
|
7568
7570
|
await this.loadMarkets();
|
|
@@ -7709,7 +7711,7 @@ export default class bybit extends Exchange {
|
|
|
7709
7711
|
* @see https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
|
7710
7712
|
* @param {string} symbol unified market symbol
|
|
7711
7713
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7712
|
-
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com
|
|
7714
|
+
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
|
|
7713
7715
|
*/
|
|
7714
7716
|
async fetchMarketLeverageTiers(symbol, params = {}) {
|
|
7715
7717
|
await this.loadMarkets();
|
|
@@ -7749,7 +7751,7 @@ export default class bybit extends Exchange {
|
|
|
7749
7751
|
* @see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
|
7750
7752
|
* @param {string} symbol unified market symbol
|
|
7751
7753
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7752
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
7754
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
7753
7755
|
*/
|
|
7754
7756
|
async fetchTradingFee(symbol, params = {}) {
|
|
7755
7757
|
await this.loadMarkets();
|
|
@@ -7790,7 +7792,7 @@ export default class bybit extends Exchange {
|
|
|
7790
7792
|
* @see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
|
7791
7793
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7792
7794
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
7793
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
7795
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
7794
7796
|
*/
|
|
7795
7797
|
async fetchTradingFees(params = {}) {
|
|
7796
7798
|
await this.loadMarkets();
|
|
@@ -7887,7 +7889,7 @@ export default class bybit extends Exchange {
|
|
|
7887
7889
|
* @see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
|
7888
7890
|
* @param {string[]} codes list of unified currency codes
|
|
7889
7891
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7890
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
7892
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
7891
7893
|
*/
|
|
7892
7894
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
7893
7895
|
this.checkRequiredCredentials();
|
|
@@ -8118,7 +8120,7 @@ export default class bybit extends Exchange {
|
|
|
8118
8120
|
* @param {string} code unified currency code
|
|
8119
8121
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8120
8122
|
* @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
|
|
8123
|
+
* @returns {object[]} a list of [volatility history objects]{@link https://docs.ccxt.com/?id=volatility-structure}
|
|
8122
8124
|
*/
|
|
8123
8125
|
async fetchVolatilityHistory(code, params = {}) {
|
|
8124
8126
|
await this.loadMarkets();
|
|
@@ -8173,7 +8175,7 @@ export default class bybit extends Exchange {
|
|
|
8173
8175
|
* @see https://bybit-exchange.github.io/docs/api-explorer/v5/market/tickers
|
|
8174
8176
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
8175
8177
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8176
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
8178
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
8177
8179
|
*/
|
|
8178
8180
|
async fetchGreeks(symbol, params = {}) {
|
|
8179
8181
|
await this.loadMarkets();
|
|
@@ -8240,7 +8242,7 @@ export default class bybit extends Exchange {
|
|
|
8240
8242
|
* @param {string[]} [symbols] unified symbols of the markets to fetch greeks for, all markets are returned if not assigned
|
|
8241
8243
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8242
8244
|
* @param {string} [params.baseCoin] the baseCoin of the symbol, default is BTC
|
|
8243
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
8245
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
8244
8246
|
*/
|
|
8245
8247
|
async fetchAllGreeks(symbols = undefined, params = {}) {
|
|
8246
8248
|
await this.loadMarkets();
|
|
@@ -8369,7 +8371,7 @@ export default class bybit extends Exchange {
|
|
|
8369
8371
|
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
8370
8372
|
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
8371
8373
|
* @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
|
|
8374
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
8373
8375
|
*/
|
|
8374
8376
|
async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8375
8377
|
await this.loadMarkets();
|
|
@@ -8526,7 +8528,7 @@ export default class bybit extends Exchange {
|
|
|
8526
8528
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8527
8529
|
* @param {string} [params.subType] market subType, ['linear', 'inverse'], default is 'linear'
|
|
8528
8530
|
* @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
|
|
8531
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
8530
8532
|
*/
|
|
8531
8533
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
8532
8534
|
await this.loadMarkets();
|
|
@@ -8621,7 +8623,7 @@ export default class bybit extends Exchange {
|
|
|
8621
8623
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
8622
8624
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8623
8625
|
* @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
|
|
8626
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
8625
8627
|
*/
|
|
8626
8628
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8627
8629
|
await this.loadMarkets();
|
|
@@ -8718,7 +8720,7 @@ export default class bybit extends Exchange {
|
|
|
8718
8720
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
8719
8721
|
* @param {string} symbol unified market symbol
|
|
8720
8722
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8721
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
8723
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
8722
8724
|
*/
|
|
8723
8725
|
async fetchOption(symbol, params = {}) {
|
|
8724
8726
|
await this.loadMarkets();
|
|
@@ -8780,7 +8782,7 @@ export default class bybit extends Exchange {
|
|
|
8780
8782
|
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
8781
8783
|
* @param {string} code base currency to fetch an option chain for
|
|
8782
8784
|
* @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
|
|
8785
|
+
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
8784
8786
|
*/
|
|
8785
8787
|
async fetchOptionChain(code, params = {}) {
|
|
8786
8788
|
await this.loadMarkets();
|
|
@@ -8897,7 +8899,7 @@ export default class bybit extends Exchange {
|
|
|
8897
8899
|
* @param {object} params extra parameters specific to the exchange api endpoint
|
|
8898
8900
|
* @param {int} [params.until] timestamp in ms of the latest position to fetch, params["until"] - since <= 7 days
|
|
8899
8901
|
* @param {string} [params.subType] 'linear' or 'inverse'
|
|
8900
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
8902
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
8901
8903
|
*/
|
|
8902
8904
|
async fetchPositionsHistory(symbols = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8903
8905
|
await this.loadMarkets();
|
|
@@ -9071,7 +9073,7 @@ export default class bybit extends Exchange {
|
|
|
9071
9073
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
9072
9074
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9073
9075
|
* @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
|
|
9076
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9075
9077
|
*/
|
|
9076
9078
|
async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
|
|
9077
9079
|
await this.loadMarkets();
|
|
@@ -9125,7 +9127,7 @@ export default class bybit extends Exchange {
|
|
|
9125
9127
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
9126
9128
|
* @param {float} amount how much you want to trade in units of the from currency
|
|
9127
9129
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9128
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
9130
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9129
9131
|
*/
|
|
9130
9132
|
async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
|
|
9131
9133
|
await this.loadMarkets();
|
|
@@ -9157,7 +9159,7 @@ export default class bybit extends Exchange {
|
|
|
9157
9159
|
* @param {string} [code] the unified currency code of the conversion trade
|
|
9158
9160
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9159
9161
|
* @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
|
|
9162
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9161
9163
|
*/
|
|
9162
9164
|
async fetchConvertTrade(id, code = undefined, params = {}) {
|
|
9163
9165
|
await this.loadMarkets();
|
|
@@ -9220,7 +9222,7 @@ export default class bybit extends Exchange {
|
|
|
9220
9222
|
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
9221
9223
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9222
9224
|
* @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
|
|
9225
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
9224
9226
|
*/
|
|
9225
9227
|
async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
9226
9228
|
await this.loadMarkets();
|
|
@@ -9330,7 +9332,7 @@ export default class bybit extends Exchange {
|
|
|
9330
9332
|
* @param {int} [since] the earliest time in ms to fetch ratios for
|
|
9331
9333
|
* @param {int} [limit] the maximum number of long short ratio structures to retrieve
|
|
9332
9334
|
* @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
|
|
9335
|
+
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
|
|
9334
9336
|
*/
|
|
9335
9337
|
async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
|
|
9336
9338
|
await this.loadMarkets();
|