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/delta.js
CHANGED
|
@@ -435,7 +435,7 @@ export default class delta extends Exchange {
|
|
|
435
435
|
* @name delta#fetchStatus
|
|
436
436
|
* @description the latest known information on the availability of the exchange API
|
|
437
437
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
438
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
438
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
439
439
|
*/
|
|
440
440
|
async fetchStatus(params = {}) {
|
|
441
441
|
const response = await this.publicGetSettings(params);
|
|
@@ -1115,7 +1115,7 @@ export default class delta extends Exchange {
|
|
|
1115
1115
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
1116
1116
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1117
1117
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1118
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
1118
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1119
1119
|
*/
|
|
1120
1120
|
async fetchTicker(symbol, params = {}) {
|
|
1121
1121
|
await this.loadMarkets();
|
|
@@ -1258,7 +1258,7 @@ export default class delta extends Exchange {
|
|
|
1258
1258
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
1259
1259
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1260
1260
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1261
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1261
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1262
1262
|
*/
|
|
1263
1263
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1264
1264
|
await this.loadMarkets();
|
|
@@ -1411,7 +1411,7 @@ export default class delta extends Exchange {
|
|
|
1411
1411
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1412
1412
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1413
1413
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1414
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
1414
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
1415
1415
|
*/
|
|
1416
1416
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1417
1417
|
await this.loadMarkets();
|
|
@@ -1553,7 +1553,7 @@ export default class delta extends Exchange {
|
|
|
1553
1553
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1554
1554
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1555
1555
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1556
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1556
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1557
1557
|
*/
|
|
1558
1558
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1559
1559
|
await this.loadMarkets();
|
|
@@ -1683,7 +1683,7 @@ export default class delta extends Exchange {
|
|
|
1683
1683
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1684
1684
|
* @see https://docs.delta.exchange/#get-wallet-balances
|
|
1685
1685
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1686
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1686
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1687
1687
|
*/
|
|
1688
1688
|
async fetchBalance(params = {}) {
|
|
1689
1689
|
await this.loadMarkets();
|
|
@@ -1718,7 +1718,7 @@ export default class delta extends Exchange {
|
|
|
1718
1718
|
* @see https://docs.delta.exchange/#get-position
|
|
1719
1719
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
1720
1720
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1721
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
1721
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
1722
1722
|
*/
|
|
1723
1723
|
async fetchPosition(symbol, params = {}) {
|
|
1724
1724
|
await this.loadMarkets();
|
|
@@ -1747,7 +1747,7 @@ export default class delta extends Exchange {
|
|
|
1747
1747
|
* @see https://docs.delta.exchange/#get-margined-positions
|
|
1748
1748
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
1749
1749
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1750
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
1750
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
1751
1751
|
*/
|
|
1752
1752
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
1753
1753
|
await this.loadMarkets();
|
|
@@ -1986,7 +1986,7 @@ export default class delta extends Exchange {
|
|
|
1986
1986
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1987
1987
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1988
1988
|
* @param {bool} [params.reduceOnly] *contract only* indicates if this order is to reduce the size of a position
|
|
1989
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1989
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1990
1990
|
*/
|
|
1991
1991
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1992
1992
|
await this.loadMarkets();
|
|
@@ -2068,7 +2068,7 @@ export default class delta extends Exchange {
|
|
|
2068
2068
|
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
2069
2069
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency
|
|
2070
2070
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2071
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2071
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2072
2072
|
*/
|
|
2073
2073
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
2074
2074
|
await this.loadMarkets();
|
|
@@ -2114,7 +2114,7 @@ export default class delta extends Exchange {
|
|
|
2114
2114
|
* @param {string} id order id
|
|
2115
2115
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2116
2116
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2117
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2117
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2118
2118
|
*/
|
|
2119
2119
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2120
2120
|
if (symbol === undefined) {
|
|
@@ -2173,7 +2173,7 @@ export default class delta extends Exchange {
|
|
|
2173
2173
|
* @see https://docs.delta.exchange/#cancel-all-open-orders
|
|
2174
2174
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
2175
2175
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2176
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2176
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2177
2177
|
*/
|
|
2178
2178
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
2179
2179
|
if (symbol === undefined) {
|
|
@@ -2209,7 +2209,7 @@ export default class delta extends Exchange {
|
|
|
2209
2209
|
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
2210
2210
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2211
2211
|
* @param {string} [params.clientOrderId] client order id of the order
|
|
2212
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2212
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2213
2213
|
*/
|
|
2214
2214
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
2215
2215
|
await this.loadMarkets();
|
|
@@ -2265,7 +2265,7 @@ export default class delta extends Exchange {
|
|
|
2265
2265
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2266
2266
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
2267
2267
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2268
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2268
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2269
2269
|
*/
|
|
2270
2270
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2271
2271
|
return await this.fetchOrdersWithMethod('privateGetOrders', symbol, since, limit, params);
|
|
@@ -2279,7 +2279,7 @@ export default class delta extends Exchange {
|
|
|
2279
2279
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2280
2280
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2281
2281
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2282
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2282
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2283
2283
|
*/
|
|
2284
2284
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2285
2285
|
return await this.fetchOrdersWithMethod('privateGetOrdersHistory', symbol, since, limit, params);
|
|
@@ -2349,7 +2349,7 @@ export default class delta extends Exchange {
|
|
|
2349
2349
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2350
2350
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2351
2351
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2352
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
2352
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
2353
2353
|
*/
|
|
2354
2354
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2355
2355
|
await this.loadMarkets();
|
|
@@ -2431,7 +2431,7 @@ export default class delta extends Exchange {
|
|
|
2431
2431
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2432
2432
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
2433
2433
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2434
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
2434
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
2435
2435
|
*/
|
|
2436
2436
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2437
2437
|
await this.loadMarkets();
|
|
@@ -2554,7 +2554,7 @@ export default class delta extends Exchange {
|
|
|
2554
2554
|
* @param {string} code unified currency code
|
|
2555
2555
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2556
2556
|
* @param {string} [params.network] unified network code
|
|
2557
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
2557
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
2558
2558
|
*/
|
|
2559
2559
|
async fetchDepositAddress(code, params = {}) {
|
|
2560
2560
|
await this.loadMarkets();
|
|
@@ -2622,7 +2622,7 @@ export default class delta extends Exchange {
|
|
|
2622
2622
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2623
2623
|
* @param {string} symbol unified market symbol
|
|
2624
2624
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2625
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
2625
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
2626
2626
|
*/
|
|
2627
2627
|
async fetchFundingRate(symbol, params = {}) {
|
|
2628
2628
|
await this.loadMarkets();
|
|
@@ -2689,7 +2689,7 @@ export default class delta extends Exchange {
|
|
|
2689
2689
|
* @see https://docs.delta.exchange/#get-tickers-for-products
|
|
2690
2690
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2691
2691
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2692
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
2692
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
2693
2693
|
*/
|
|
2694
2694
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2695
2695
|
await this.loadMarkets();
|
|
@@ -2824,7 +2824,7 @@ export default class delta extends Exchange {
|
|
|
2824
2824
|
* @param {string} symbol unified market symbol
|
|
2825
2825
|
* @param {float} amount amount of margin to add
|
|
2826
2826
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2827
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
2827
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
2828
2828
|
*/
|
|
2829
2829
|
async addMargin(symbol, amount, params = {}) {
|
|
2830
2830
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
@@ -2837,7 +2837,7 @@ export default class delta extends Exchange {
|
|
|
2837
2837
|
* @param {string} symbol unified market symbol
|
|
2838
2838
|
* @param {float} amount the amount of margin to remove
|
|
2839
2839
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2840
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
2840
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
2841
2841
|
*/
|
|
2842
2842
|
async reduceMargin(symbol, amount, params = {}) {
|
|
2843
2843
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
@@ -2923,7 +2923,7 @@ export default class delta extends Exchange {
|
|
|
2923
2923
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
2924
2924
|
* @param {string} symbol unified market symbol
|
|
2925
2925
|
* @param {object} [params] exchange specific parameters
|
|
2926
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
2926
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
2927
2927
|
*/
|
|
2928
2928
|
async fetchOpenInterest(symbol, params = {}) {
|
|
2929
2929
|
await this.loadMarkets();
|
|
@@ -3060,7 +3060,7 @@ export default class delta extends Exchange {
|
|
|
3060
3060
|
* @see https://docs.delta.exchange/#get-order-leverage
|
|
3061
3061
|
* @param {string} symbol unified market symbol
|
|
3062
3062
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3063
|
-
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com
|
|
3063
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
3064
3064
|
*/
|
|
3065
3065
|
async fetchLeverage(symbol, params = {}) {
|
|
3066
3066
|
await this.loadMarkets();
|
|
@@ -3138,7 +3138,7 @@ export default class delta extends Exchange {
|
|
|
3138
3138
|
* @param {int} [since] timestamp in ms
|
|
3139
3139
|
* @param {int} [limit] number of records
|
|
3140
3140
|
* @param {object} [params] exchange specific params
|
|
3141
|
-
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com
|
|
3141
|
+
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
|
|
3142
3142
|
*/
|
|
3143
3143
|
async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3144
3144
|
await this.loadMarkets();
|
|
@@ -3294,7 +3294,7 @@ export default class delta extends Exchange {
|
|
|
3294
3294
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
3295
3295
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
3296
3296
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3297
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
3297
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
3298
3298
|
*/
|
|
3299
3299
|
async fetchGreeks(symbol, params = {}) {
|
|
3300
3300
|
await this.loadMarkets();
|
|
@@ -3442,7 +3442,7 @@ export default class delta extends Exchange {
|
|
|
3442
3442
|
* @see https://docs.delta.exchange/#close-all-positions
|
|
3443
3443
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3444
3444
|
* @param {int} [params.user_id] the users id
|
|
3445
|
-
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com
|
|
3445
|
+
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
3446
3446
|
*/
|
|
3447
3447
|
async closeAllPositions(params = {}) {
|
|
3448
3448
|
await this.loadMarkets();
|
|
@@ -3465,7 +3465,7 @@ export default class delta extends Exchange {
|
|
|
3465
3465
|
* @see https://docs.delta.exchange/#get-user
|
|
3466
3466
|
* @param {string} symbol unified symbol of the market to fetch the margin mode for
|
|
3467
3467
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3468
|
-
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com
|
|
3468
|
+
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
3469
3469
|
*/
|
|
3470
3470
|
async fetchMarginMode(symbol, params = {}) {
|
|
3471
3471
|
await this.loadMarkets();
|
|
@@ -3558,7 +3558,7 @@ export default class delta extends Exchange {
|
|
|
3558
3558
|
* @see https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol
|
|
3559
3559
|
* @param {string} symbol unified market symbol
|
|
3560
3560
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3561
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
3561
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
3562
3562
|
*/
|
|
3563
3563
|
async fetchOption(symbol, params = {}) {
|
|
3564
3564
|
await this.loadMarkets();
|
package/js/src/deribit.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export default class deribit extends Exchange {
|
|
|
33
33
|
* @description the latest known information on the availability of the exchange API
|
|
34
34
|
* @see https://docs.deribit.com/#public-status
|
|
35
35
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
36
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
36
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
37
37
|
*/
|
|
38
38
|
fetchStatus(params?: {}): Promise<{
|
|
39
39
|
status: string;
|
|
@@ -48,7 +48,7 @@ export default class deribit extends Exchange {
|
|
|
48
48
|
* @description fetch all the accounts associated with a profile
|
|
49
49
|
* @see https://docs.deribit.com/#private-get_subaccounts
|
|
50
50
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
51
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
51
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
52
52
|
*/
|
|
53
53
|
fetchAccounts(params?: {}): Promise<Account[]>;
|
|
54
54
|
parseAccount(account: any): {
|
|
@@ -76,7 +76,7 @@ export default class deribit extends Exchange {
|
|
|
76
76
|
* @see https://docs.deribit.com/#private-get_account_summaries
|
|
77
77
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
78
78
|
* @param {string} [params.code] unified currency code of the currency for the balance, if defined 'privateGetGetAccountSummary' will be used, otherwise 'privateGetGetAccountSummaries' will be used
|
|
79
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
79
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
80
80
|
*/
|
|
81
81
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
82
82
|
/**
|
|
@@ -86,7 +86,7 @@ export default class deribit extends Exchange {
|
|
|
86
86
|
* @see https://docs.deribit.com/#private-create_deposit_address
|
|
87
87
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
89
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
90
90
|
*/
|
|
91
91
|
createDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
92
92
|
/**
|
|
@@ -96,7 +96,7 @@ export default class deribit extends Exchange {
|
|
|
96
96
|
* @see https://docs.deribit.com/#private-get_current_deposit_address
|
|
97
97
|
* @param {string} code unified currency code
|
|
98
98
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
99
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
99
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
100
100
|
*/
|
|
101
101
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
102
102
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -107,7 +107,7 @@ export default class deribit extends Exchange {
|
|
|
107
107
|
* @see https://docs.deribit.com/#public-ticker
|
|
108
108
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
109
109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
110
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
110
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
111
111
|
*/
|
|
112
112
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
113
113
|
/**
|
|
@@ -118,7 +118,7 @@ export default class deribit extends Exchange {
|
|
|
118
118
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
119
119
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
120
120
|
* @param {string} [params.code] *required* the currency code to fetch the tickers for, eg. 'BTC', 'ETH'
|
|
121
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
121
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
122
122
|
*/
|
|
123
123
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
124
124
|
/**
|
|
@@ -148,7 +148,7 @@ export default class deribit extends Exchange {
|
|
|
148
148
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
149
149
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
150
150
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
151
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
151
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
152
152
|
*/
|
|
153
153
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
154
154
|
/**
|
|
@@ -157,7 +157,7 @@ export default class deribit extends Exchange {
|
|
|
157
157
|
* @description fetch the trading fees for multiple markets
|
|
158
158
|
* @see https://docs.deribit.com/#private-get_account_summary
|
|
159
159
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
160
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
160
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
161
161
|
*/
|
|
162
162
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
163
163
|
/**
|
|
@@ -168,7 +168,7 @@ export default class deribit extends Exchange {
|
|
|
168
168
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
169
169
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
170
170
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
171
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
171
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
172
172
|
*/
|
|
173
173
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
174
174
|
parseOrderStatus(status: Str): string;
|
|
@@ -183,7 +183,7 @@ export default class deribit extends Exchange {
|
|
|
183
183
|
* @param {string} id order id
|
|
184
184
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
185
185
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
186
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
186
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
187
187
|
*/
|
|
188
188
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
189
189
|
/**
|
|
@@ -200,7 +200,7 @@ export default class deribit extends Exchange {
|
|
|
200
200
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
201
201
|
* @param {string} [params.trigger] the trigger type 'index_price', 'mark_price', or 'last_price', default is 'last_price'
|
|
202
202
|
* @param {float} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
203
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
203
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
204
204
|
*/
|
|
205
205
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
206
206
|
/**
|
|
@@ -216,7 +216,7 @@ export default class deribit extends Exchange {
|
|
|
216
216
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
217
217
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
218
218
|
* @param {float} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
219
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
219
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
220
220
|
*/
|
|
221
221
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
222
222
|
/**
|
|
@@ -227,7 +227,7 @@ export default class deribit extends Exchange {
|
|
|
227
227
|
* @param {string} id order id
|
|
228
228
|
* @param {string} symbol not used by deribit cancelOrder ()
|
|
229
229
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
230
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
230
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
231
231
|
*/
|
|
232
232
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
233
233
|
/**
|
|
@@ -238,7 +238,7 @@ export default class deribit extends Exchange {
|
|
|
238
238
|
* @see https://docs.deribit.com/#private-cancel_all_by_instrument
|
|
239
239
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
240
240
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
241
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
241
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
242
242
|
*/
|
|
243
243
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
244
244
|
/**
|
|
@@ -251,7 +251,7 @@ export default class deribit extends Exchange {
|
|
|
251
251
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
252
252
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
253
253
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
254
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
254
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
255
255
|
*/
|
|
256
256
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
257
257
|
/**
|
|
@@ -264,7 +264,7 @@ export default class deribit extends Exchange {
|
|
|
264
264
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
265
265
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
266
266
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
267
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
267
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
268
268
|
*/
|
|
269
269
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
270
270
|
/**
|
|
@@ -277,7 +277,7 @@ export default class deribit extends Exchange {
|
|
|
277
277
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
278
278
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
279
279
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
280
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
280
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
281
281
|
*/
|
|
282
282
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
283
283
|
/**
|
|
@@ -292,7 +292,7 @@ export default class deribit extends Exchange {
|
|
|
292
292
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
293
293
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
294
294
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
295
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
296
296
|
*/
|
|
297
297
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
298
298
|
/**
|
|
@@ -304,7 +304,7 @@ export default class deribit extends Exchange {
|
|
|
304
304
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
305
305
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
306
306
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
307
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
307
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
308
308
|
*/
|
|
309
309
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
310
310
|
/**
|
|
@@ -316,7 +316,7 @@ export default class deribit extends Exchange {
|
|
|
316
316
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
317
317
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
318
318
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
319
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
319
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
320
320
|
*/
|
|
321
321
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
322
322
|
parseTransactionStatus(status: Str): string;
|
|
@@ -329,7 +329,7 @@ export default class deribit extends Exchange {
|
|
|
329
329
|
* @see https://docs.deribit.com/#private-get_position
|
|
330
330
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
331
331
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
332
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
332
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
333
333
|
*/
|
|
334
334
|
fetchPosition(symbol: string, params?: {}): Promise<Position>;
|
|
335
335
|
/**
|
|
@@ -342,7 +342,7 @@ export default class deribit extends Exchange {
|
|
|
342
342
|
* @param {string} [params.currency] currency code filter for positions
|
|
343
343
|
* @param {string} [params.kind] market type filter for positions 'future', 'option', 'spot', 'future_combo' or 'option_combo'
|
|
344
344
|
* @param {int} [params.subaccount_id] the user id for the subaccount
|
|
345
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
345
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
346
346
|
*/
|
|
347
347
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
348
348
|
/**
|
|
@@ -352,7 +352,7 @@ export default class deribit extends Exchange {
|
|
|
352
352
|
* @see https://docs.deribit.com/#public-get_historical_volatility
|
|
353
353
|
* @param {string} code unified currency code
|
|
354
354
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
355
|
-
* @returns {object[]} a list of [volatility history objects]{@link https://docs.ccxt.com
|
|
355
|
+
* @returns {object[]} a list of [volatility history objects]{@link https://docs.ccxt.com/?id=volatility-structure}
|
|
356
356
|
*/
|
|
357
357
|
fetchVolatilityHistory(code: string, params?: {}): Promise<any[]>;
|
|
358
358
|
parseVolatilityHistory(volatility: any): any[];
|
|
@@ -365,7 +365,7 @@ export default class deribit extends Exchange {
|
|
|
365
365
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
366
366
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
367
367
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
368
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
368
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
369
369
|
*/
|
|
370
370
|
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
371
371
|
/**
|
|
@@ -379,7 +379,7 @@ export default class deribit extends Exchange {
|
|
|
379
379
|
* @param {string} fromAccount account to transfer from
|
|
380
380
|
* @param {string} toAccount account to transfer to
|
|
381
381
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
382
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
382
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
383
383
|
*/
|
|
384
384
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
385
385
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
@@ -394,7 +394,7 @@ export default class deribit extends Exchange {
|
|
|
394
394
|
* @param {string} address the address to withdraw to
|
|
395
395
|
* @param {string} tag
|
|
396
396
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
397
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
397
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
398
398
|
*/
|
|
399
399
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
400
400
|
parseDepositWithdrawFee(fee: any, currency?: Currency): {
|
|
@@ -416,7 +416,7 @@ export default class deribit extends Exchange {
|
|
|
416
416
|
* @see https://docs.deribit.com/#public-get_currencies
|
|
417
417
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
418
418
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
419
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com
|
|
419
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
420
420
|
*/
|
|
421
421
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
422
422
|
/**
|
|
@@ -428,7 +428,7 @@ export default class deribit extends Exchange {
|
|
|
428
428
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
429
429
|
* @param {int} [params.start_timestamp] fetch funding rate starting from this timestamp
|
|
430
430
|
* @param {int} [params.end_timestamp] fetch funding rate ending at this timestamp
|
|
431
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
431
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
432
432
|
*/
|
|
433
433
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
434
434
|
/**
|
|
@@ -442,7 +442,7 @@ export default class deribit extends Exchange {
|
|
|
442
442
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
443
443
|
* @param {int} [params.until] fetch funding rate ending at this timestamp
|
|
444
444
|
* @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)
|
|
445
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
445
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
446
446
|
*/
|
|
447
447
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
448
448
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
@@ -456,7 +456,7 @@ export default class deribit extends Exchange {
|
|
|
456
456
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
457
457
|
* @param {object} [params] exchange specific parameters for the deribit api endpoint
|
|
458
458
|
* @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)
|
|
459
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
459
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
460
460
|
*/
|
|
461
461
|
fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
|
462
462
|
addPaginationCursorToResult(cursor: any, data: any): any;
|
|
@@ -469,7 +469,7 @@ export default class deribit extends Exchange {
|
|
|
469
469
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
470
470
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
471
471
|
* @param {object} [params] exchange specific parameters for the deribit api endpoint
|
|
472
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
472
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
473
473
|
*/
|
|
474
474
|
fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
|
475
475
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|
|
@@ -480,7 +480,7 @@ export default class deribit extends Exchange {
|
|
|
480
480
|
* @see https://docs.deribit.com/#public-ticker
|
|
481
481
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
482
482
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
483
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
483
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
484
484
|
*/
|
|
485
485
|
fetchGreeks(symbol: string, params?: {}): Promise<Greeks>;
|
|
486
486
|
parseGreeks(greeks: Dict, market?: Market): Greeks;
|
|
@@ -491,7 +491,7 @@ export default class deribit extends Exchange {
|
|
|
491
491
|
* @see https://docs.deribit.com/#public-get_book_summary_by_instrument
|
|
492
492
|
* @param {string} symbol unified market symbol
|
|
493
493
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
494
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
494
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
495
495
|
*/
|
|
496
496
|
fetchOption(symbol: string, params?: {}): Promise<Option>;
|
|
497
497
|
/**
|
|
@@ -501,7 +501,7 @@ export default class deribit extends Exchange {
|
|
|
501
501
|
* @see https://docs.deribit.com/#public-get_book_summary_by_currency
|
|
502
502
|
* @param {string} code base currency to fetch an option chain for
|
|
503
503
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
504
|
-
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com
|
|
504
|
+
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
505
505
|
*/
|
|
506
506
|
fetchOptionChain(code: string, params?: {}): Promise<OptionChain>;
|
|
507
507
|
parseOption(chain: Dict, currency?: Currency, market?: Market): Option;
|
|
@@ -512,7 +512,7 @@ export default class deribit extends Exchange {
|
|
|
512
512
|
* @see https://docs.deribit.com/?shell#public-get_book_summary_by_instrument
|
|
513
513
|
* @param {string} symbol unified CCXT market symbol
|
|
514
514
|
* @param {object} [params] exchange specific parameters
|
|
515
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
515
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
516
516
|
*/
|
|
517
517
|
fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
|
|
518
518
|
parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
|