ccxt 4.5.82 → 4.5.83
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 +5 -4
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +3 -1
- package/dist/cjs/src/abstract/prediction/sxbet.js +11 -0
- package/dist/cjs/src/apex.js +1 -0
- package/dist/cjs/src/aster.js +2 -2
- package/dist/cjs/src/base/Exchange.js +1 -1
- package/dist/cjs/src/bigone.js +2 -2
- package/dist/cjs/src/binance.js +10 -10
- package/dist/cjs/src/bingx.js +3 -3
- package/dist/cjs/src/bit2c.js +4 -4
- package/dist/cjs/src/bitbank.js +15 -15
- package/dist/cjs/src/bitfinex.js +15 -15
- package/dist/cjs/src/bitget.js +109 -73
- package/dist/cjs/src/bitmex.js +7 -7
- package/dist/cjs/src/bitopro.js +2 -2
- package/dist/cjs/src/bitrue.js +6 -6
- package/dist/cjs/src/bitso.js +18 -18
- package/dist/cjs/src/bitstamp.js +5 -5
- package/dist/cjs/src/bitteam.js +32 -32
- package/dist/cjs/src/bittrade.js +10 -10
- package/dist/cjs/src/bitvavo.js +9 -9
- package/dist/cjs/src/blockchaincom.js +2 -2
- package/dist/cjs/src/btcbox.js +2 -2
- package/dist/cjs/src/btcmarkets.js +2 -2
- package/dist/cjs/src/btcturk.js +2 -2
- package/dist/cjs/src/btse.js +2 -2
- package/dist/cjs/src/bybitid.js +4 -0
- package/dist/cjs/src/coinbase.js +1 -1
- package/dist/cjs/src/coinbaseexchange.js +13 -13
- package/dist/cjs/src/coincheck.js +4 -4
- package/dist/cjs/src/coinex.js +10 -10
- package/dist/cjs/src/coinmate.js +4 -4
- package/dist/cjs/src/coinone.js +4 -4
- package/dist/cjs/src/coinsph.js +5 -5
- package/dist/cjs/src/cryptocom.js +5 -5
- package/dist/cjs/src/deribit.js +31 -31
- package/dist/cjs/src/derive.js +1 -1
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/gate.js +25 -25
- package/dist/cjs/src/gemini.js +5 -5
- package/dist/cjs/src/grvt.js +1 -1
- package/dist/cjs/src/hibachi.js +5 -5
- package/dist/cjs/src/hitbtc.js +15 -15
- package/dist/cjs/src/hollaex.js +15 -15
- package/dist/cjs/src/htx.js +52 -52
- package/dist/cjs/src/hyperliquid.js +2 -2
- package/dist/cjs/src/independentreserve.js +2 -2
- package/dist/cjs/src/indodax.js +8 -8
- package/dist/cjs/src/kraken.js +29 -29
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +15 -15
- package/dist/cjs/src/latoken.js +8 -8
- package/dist/cjs/src/lbank.js +31 -31
- package/dist/cjs/src/lighter.js +2 -2
- package/dist/cjs/src/luno.js +2 -2
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +27 -27
- package/dist/cjs/src/modetrade.js +10 -10
- package/dist/cjs/src/ndax.js +4 -4
- package/dist/cjs/src/okx.js +19 -20
- package/dist/cjs/src/onetrading.js +7 -7
- package/dist/cjs/src/p2b.js +8 -8
- package/dist/cjs/src/pacifica.js +9 -3
- package/dist/cjs/src/paymium.js +2 -2
- package/dist/cjs/src/phemex.js +37 -37
- package/dist/cjs/src/poloniex.js +14 -14
- package/dist/cjs/src/prediction/sxbet.js +2710 -0
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +6 -6
- package/dist/cjs/src/pro/aster.js +8 -8
- package/dist/cjs/src/pro/backpack.js +1 -1
- package/dist/cjs/src/pro/binance.js +26 -26
- package/dist/cjs/src/pro/bingx.js +11 -11
- package/dist/cjs/src/pro/bitfinex.js +11 -11
- package/dist/cjs/src/pro/bitget.js +20 -20
- package/dist/cjs/src/pro/bithumb.js +1 -1
- package/dist/cjs/src/pro/bitmex.js +12 -12
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +7 -7
- package/dist/cjs/src/pro/bitstamp.js +5 -5
- package/dist/cjs/src/pro/bittrade.js +11 -11
- package/dist/cjs/src/pro/bitvavo.js +16 -16
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +2 -2
- package/dist/cjs/src/pro/bybit.js +21 -21
- package/dist/cjs/src/pro/bydfi.js +2 -2
- package/dist/cjs/src/pro/cex.js +19 -19
- package/dist/cjs/src/pro/coinbase.js +2 -2
- package/dist/cjs/src/pro/coinbaseexchange.js +9 -9
- package/dist/cjs/src/pro/coinbaseinternational.js +2 -2
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/coinone.js +6 -6
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/deribit.js +13 -13
- package/dist/cjs/src/pro/derive.js +4 -4
- package/dist/cjs/src/pro/dydx.js +1 -1
- package/dist/cjs/src/pro/extended.js +16 -10
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/grvt.js +2 -2
- package/dist/cjs/src/pro/hashkey.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +6 -6
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/htx.js +28 -28
- package/dist/cjs/src/pro/hyperliquid.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +7 -7
- package/dist/cjs/src/pro/krakenfutures.js +12 -12
- package/dist/cjs/src/pro/kucoin.js +12 -12
- package/dist/cjs/src/pro/lbank.js +16 -16
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +8 -8
- package/dist/cjs/src/pro/modetrade.js +3 -3
- package/dist/cjs/src/pro/mudrex.js +2 -2
- package/dist/cjs/src/pro/nado.js +3 -3
- package/dist/cjs/src/pro/ndax.js +6 -6
- package/dist/cjs/src/pro/okx.js +20 -20
- package/dist/cjs/src/pro/onetrading.js +14 -14
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/pacifica.js +1 -1
- package/dist/cjs/src/pro/paradex.js +1 -1
- package/dist/cjs/src/pro/phemex.js +13 -13
- package/dist/cjs/src/pro/poloniex.js +17 -17
- package/dist/cjs/src/pro/toobit.js +2 -2
- package/dist/cjs/src/pro/upbit.js +4 -4
- package/dist/cjs/src/pro/weex.js +2 -2
- package/dist/cjs/src/pro/whitebit.js +12 -12
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +3 -3
- package/dist/cjs/src/pro/xt.js +3 -3
- package/dist/cjs/src/tokocrypto.js +20 -20
- package/dist/cjs/src/upbit.js +12 -12
- package/dist/cjs/src/whitebit.js +15 -15
- package/dist/cjs/src/woo.js +3 -3
- package/dist/cjs/src/woofipro.js +14 -14
- package/dist/cjs/src/zaif.js +9 -3
- package/dist/cjs/src/zebpay.js +1 -1
- package/js/ccxt.d.ts +4 -1
- package/js/ccxt.js +3 -1
- package/js/src/abstract/prediction/sxbet.d.ts +41 -0
- package/js/src/abstract/prediction/sxbet.js +11 -0
- package/js/src/alpaca.d.ts +28 -33
- package/js/src/apex.d.ts +28 -42
- package/js/src/apex.js +1 -0
- package/js/src/aster.d.ts +58 -108
- package/js/src/aster.js +2 -2
- package/js/src/backpack.d.ts +34 -48
- package/js/src/base/Exchange.d.ts +304 -320
- package/js/src/base/Exchange.js +1 -1
- package/js/src/bigone.d.ts +24 -29
- package/js/src/bigone.js +2 -2
- package/js/src/binance.d.ts +112 -138
- package/js/src/binance.js +10 -10
- package/js/src/binancecoinm.d.ts +3 -2
- package/js/src/binanceusdm.d.ts +3 -2
- package/js/src/bingx.d.ts +65 -84
- package/js/src/bingx.js +3 -3
- package/js/src/bit2c.d.ts +13 -18
- package/js/src/bit2c.js +4 -4
- package/js/src/bitbank.d.ts +16 -21
- package/js/src/bitbank.js +15 -15
- package/js/src/bitbns.d.ts +15 -20
- package/js/src/bitfinex.d.ts +46 -51
- package/js/src/bitfinex.js +15 -15
- package/js/src/bitflyer.d.ts +20 -25
- package/js/src/bitget.d.ts +105 -93
- package/js/src/bitget.js +109 -73
- package/js/src/bithumb.d.ts +26 -31
- package/js/src/bitmex.d.ts +48 -65
- package/js/src/bitmex.js +7 -7
- package/js/src/bitopro.d.ts +25 -41
- package/js/src/bitopro.js +2 -2
- package/js/src/bitrue.d.ts +30 -45
- package/js/src/bitrue.js +6 -6
- package/js/src/bitso.d.ts +24 -29
- package/js/src/bitso.js +18 -18
- package/js/src/bitstamp.d.ts +36 -47
- package/js/src/bitstamp.js +5 -5
- package/js/src/bitteam.d.ts +22 -27
- package/js/src/bitteam.js +32 -32
- package/js/src/bittrade.d.ts +35 -46
- package/js/src/bittrade.js +10 -10
- package/js/src/bitvavo.d.ts +43 -48
- package/js/src/bitvavo.js +9 -9
- package/js/src/blockchaincom.d.ts +26 -31
- package/js/src/blockchaincom.js +2 -2
- package/js/src/blofin.d.ts +38 -43
- package/js/src/btcbox.d.ts +14 -19
- package/js/src/btcbox.js +2 -2
- package/js/src/btcmarkets.d.ts +25 -30
- package/js/src/btcmarkets.js +2 -2
- package/js/src/btcturk.d.ts +13 -18
- package/js/src/btcturk.js +2 -2
- package/js/src/btse.d.ts +44 -50
- package/js/src/btse.js +2 -2
- package/js/src/bullish.d.ts +35 -57
- package/js/src/bybit.d.ts +95 -106
- package/js/src/bybitid.js +4 -0
- package/js/src/bydfi.d.ts +37 -48
- package/js/src/cex.d.ts +29 -34
- package/js/src/coinbase.d.ts +66 -82
- package/js/src/coinbase.js +1 -1
- package/js/src/coinbaseexchange.d.ts +33 -43
- package/js/src/coinbaseexchange.js +13 -13
- package/js/src/coinbaseinternational.d.ts +34 -73
- package/js/src/coincheck.d.ts +13 -18
- package/js/src/coincheck.js +4 -4
- package/js/src/coinex.d.ts +63 -68
- package/js/src/coinex.js +10 -10
- package/js/src/coinmate.d.ts +15 -20
- package/js/src/coinmate.js +4 -4
- package/js/src/coinone.d.ts +14 -19
- package/js/src/coinone.js +4 -4
- package/js/src/coinsph.d.ts +32 -37
- package/js/src/coinsph.js +5 -5
- package/js/src/coinspot.d.ts +10 -15
- package/js/src/cryptocom.d.ts +48 -64
- package/js/src/cryptocom.js +5 -5
- package/js/src/cryptomus.d.ts +15 -23
- package/js/src/deepcoin.d.ts +43 -48
- package/js/src/delta.d.ts +43 -54
- package/js/src/deribit.d.ts +48 -69
- package/js/src/deribit.js +31 -31
- package/js/src/derive.d.ts +28 -42
- package/js/src/derive.js +1 -1
- package/js/src/digifinex.d.ts +54 -67
- package/js/src/digifinex.js +31 -31
- package/js/src/dydx.d.ts +26 -31
- package/js/src/extended.d.ts +51 -56
- package/js/src/foxbit.d.ts +34 -64
- package/js/src/gate.d.ts +94 -162
- package/js/src/gate.js +25 -25
- package/js/src/gemini.d.ts +33 -43
- package/js/src/gemini.js +5 -5
- package/js/src/grvt.d.ts +36 -47
- package/js/src/grvt.js +1 -1
- package/js/src/hashkey.d.ts +58 -78
- package/js/src/hibachi.d.ts +42 -52
- package/js/src/hibachi.js +5 -5
- package/js/src/hitbtc.d.ts +49 -56
- package/js/src/hitbtc.js +15 -15
- package/js/src/hollaex.d.ts +26 -31
- package/js/src/hollaex.js +15 -15
- package/js/src/htx.d.ts +80 -121
- package/js/src/htx.js +52 -52
- package/js/src/hyperliquid.d.ts +77 -127
- package/js/src/hyperliquid.js +2 -2
- package/js/src/independentreserve.d.ts +15 -20
- package/js/src/independentreserve.js +2 -2
- package/js/src/indodax.d.ts +19 -24
- package/js/src/indodax.js +8 -8
- package/js/src/kraken.d.ts +43 -55
- package/js/src/kraken.js +29 -29
- package/js/src/krakenfutures.d.ts +34 -39
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.d.ts +121 -132
- package/js/src/kucoin.js +15 -15
- package/js/src/kucoinfutures.d.ts +4 -4
- package/js/src/latoken.d.ts +24 -29
- package/js/src/latoken.js +8 -8
- package/js/src/lbank.d.ts +40 -53
- package/js/src/lbank.js +31 -31
- package/js/src/lighter.d.ts +40 -45
- package/js/src/lighter.js +2 -2
- package/js/src/luno.d.ts +25 -30
- package/js/src/luno.js +2 -2
- package/js/src/mercado.d.ts +15 -20
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.d.ts +70 -83
- package/js/src/mexc.js +27 -27
- package/js/src/modetrade.d.ts +43 -57
- package/js/src/modetrade.js +10 -10
- package/js/src/mudrex.d.ts +25 -35
- package/js/src/nado.d.ts +45 -50
- package/js/src/ndax.d.ts +27 -32
- package/js/src/ndax.js +4 -4
- package/js/src/okx.d.ts +97 -108
- package/js/src/okx.js +19 -20
- package/js/src/onetrading.d.ts +23 -31
- package/js/src/onetrading.js +7 -7
- package/js/src/p2b.d.ts +17 -22
- package/js/src/p2b.js +8 -8
- package/js/src/pacifica.d.ts +55 -73
- package/js/src/pacifica.js +9 -3
- package/js/src/paradex.d.ts +47 -68
- package/js/src/paymium.d.ts +12 -17
- package/js/src/paymium.js +2 -2
- package/js/src/phemex.d.ts +47 -52
- package/js/src/phemex.js +37 -37
- package/js/src/poloniex.d.ts +45 -50
- package/js/src/poloniex.js +14 -14
- package/js/src/prediction/sxbet.d.ts +595 -0
- package/js/src/prediction/sxbet.js +2708 -0
- package/js/src/pro/alpaca.d.ts +23 -23
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +28 -28
- package/js/src/pro/apex.js +6 -6
- package/js/src/pro/aster.d.ts +33 -33
- package/js/src/pro/aster.js +8 -8
- package/js/src/pro/backpack.d.ts +28 -28
- package/js/src/pro/backpack.js +1 -1
- package/js/src/pro/binance.d.ts +57 -57
- package/js/src/pro/binance.js +26 -26
- package/js/src/pro/bingx.d.ts +26 -26
- package/js/src/pro/bingx.js +11 -11
- package/js/src/pro/bitfinex.d.ts +25 -25
- package/js/src/pro/bitfinex.js +11 -11
- package/js/src/pro/bitget.d.ts +41 -41
- package/js/src/pro/bitget.js +20 -20
- package/js/src/pro/bithumb.d.ts +15 -15
- package/js/src/pro/bithumb.js +1 -1
- package/js/src/pro/bitmex.d.ts +29 -29
- package/js/src/pro/bitmex.js +12 -12
- package/js/src/pro/bitopro.d.ts +13 -13
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +25 -25
- package/js/src/pro/bitrue.js +7 -7
- package/js/src/pro/bitstamp.d.ts +21 -21
- package/js/src/pro/bitstamp.js +5 -5
- package/js/src/pro/bittrade.d.ts +19 -19
- package/js/src/pro/bittrade.js +11 -11
- package/js/src/pro/bitvavo.d.ts +62 -62
- package/js/src/pro/bitvavo.js +16 -16
- package/js/src/pro/blockchaincom.d.ts +19 -19
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +23 -23
- package/js/src/pro/blofin.js +2 -2
- package/js/src/pro/bullish.d.ts +19 -25
- package/js/src/pro/bybit.d.ts +42 -45
- package/js/src/pro/bybit.js +21 -21
- package/js/src/pro/bydfi.d.ts +24 -24
- package/js/src/pro/bydfi.js +2 -2
- package/js/src/pro/cex.d.ts +37 -37
- package/js/src/pro/cex.js +19 -19
- package/js/src/pro/coinbase.d.ts +19 -19
- package/js/src/pro/coinbase.js +2 -2
- package/js/src/pro/coinbaseexchange.d.ts +25 -25
- package/js/src/pro/coinbaseexchange.js +9 -9
- package/js/src/pro/coinbaseinternational.d.ts +20 -20
- package/js/src/pro/coinbaseinternational.js +2 -2
- package/js/src/pro/coincheck.d.ts +5 -5
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +24 -24
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/coinone.d.ts +9 -11
- package/js/src/pro/coinone.js +6 -6
- package/js/src/pro/cryptocom.d.ts +40 -40
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/deepcoin.d.ts +24 -32
- package/js/src/pro/deribit.d.ts +24 -24
- package/js/src/pro/deribit.js +13 -13
- package/js/src/pro/derive.d.ts +22 -22
- package/js/src/pro/derive.js +4 -4
- package/js/src/pro/dydx.d.ts +9 -9
- package/js/src/pro/dydx.js +1 -1
- package/js/src/pro/extended.d.ts +22 -22
- package/js/src/pro/extended.js +16 -10
- package/js/src/pro/gate.d.ts +50 -50
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.d.ts +26 -26
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/grvt.d.ts +22 -22
- package/js/src/pro/grvt.js +2 -2
- package/js/src/pro/hashkey.d.ts +19 -19
- package/js/src/pro/hashkey.js +2 -2
- package/js/src/pro/hitbtc.d.ts +32 -32
- package/js/src/pro/hitbtc.js +6 -6
- package/js/src/pro/hollaex.d.ts +15 -17
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/htx.d.ts +36 -36
- package/js/src/pro/htx.js +28 -28
- package/js/src/pro/hyperliquid.d.ts +29 -31
- package/js/src/pro/hyperliquid.js +1 -1
- package/js/src/pro/independentreserve.d.ts +10 -10
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +41 -55
- package/js/src/pro/kraken.js +7 -7
- package/js/src/pro/krakenfutures.d.ts +32 -32
- package/js/src/pro/krakenfutures.js +12 -12
- package/js/src/pro/kucoin.d.ts +69 -72
- package/js/src/pro/kucoin.js +12 -12
- package/js/src/pro/kucoinfutures.d.ts +4 -4
- package/js/src/pro/lbank.d.ts +22 -22
- package/js/src/pro/lbank.js +16 -16
- package/js/src/pro/lighter.d.ts +27 -27
- package/js/src/pro/luno.d.ts +8 -8
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +33 -33
- package/js/src/pro/mexc.js +8 -8
- package/js/src/pro/modetrade.d.ts +37 -39
- package/js/src/pro/modetrade.js +3 -3
- package/js/src/pro/mudrex.d.ts +8 -8
- package/js/src/pro/mudrex.js +2 -2
- package/js/src/pro/nado.d.ts +42 -46
- package/js/src/pro/nado.js +3 -3
- package/js/src/pro/ndax.d.ts +12 -12
- package/js/src/pro/ndax.js +6 -6
- package/js/src/pro/okx.d.ts +49 -49
- package/js/src/pro/okx.js +20 -20
- package/js/src/pro/onetrading.d.ts +28 -28
- package/js/src/pro/onetrading.js +14 -14
- package/js/src/pro/p2b.d.ts +15 -19
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/pacifica.d.ts +22 -22
- package/js/src/pro/pacifica.js +1 -1
- package/js/src/pro/paradex.d.ts +18 -18
- package/js/src/pro/paradex.js +1 -1
- package/js/src/pro/phemex.d.ts +25 -25
- package/js/src/pro/phemex.js +13 -13
- package/js/src/pro/poloniex.d.ts +30 -32
- package/js/src/pro/poloniex.js +17 -17
- package/js/src/pro/toobit.d.ts +31 -31
- package/js/src/pro/toobit.js +2 -2
- package/js/src/pro/upbit.d.ts +24 -24
- package/js/src/pro/upbit.js +4 -4
- package/js/src/pro/weex.d.ts +39 -39
- package/js/src/pro/weex.js +2 -2
- package/js/src/pro/whitebit.d.ts +26 -30
- package/js/src/pro/whitebit.js +12 -12
- package/js/src/pro/woo.d.ts +44 -46
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +39 -41
- package/js/src/pro/woofipro.js +3 -3
- package/js/src/pro/xt.d.ts +20 -20
- package/js/src/pro/xt.js +3 -3
- package/js/src/revolutx.d.ts +17 -17
- package/js/src/tokocrypto.d.ts +25 -30
- package/js/src/tokocrypto.js +20 -20
- package/js/src/toobit.d.ts +45 -79
- package/js/src/upbit.d.ts +28 -61
- package/js/src/upbit.js +12 -12
- package/js/src/weex.d.ts +57 -68
- package/js/src/whitebit.d.ts +53 -64
- package/js/src/whitebit.js +15 -15
- package/js/src/woo.d.ts +61 -75
- package/js/src/woo.js +3 -3
- package/js/src/woofipro.d.ts +53 -67
- package/js/src/woofipro.js +14 -14
- package/js/src/xt.d.ts +57 -67
- package/js/src/zaif.d.ts +11 -16
- package/js/src/zaif.js +9 -3
- package/js/src/zebpay.d.ts +32 -37
- package/js/src/zebpay.js +1 -1
- package/package.json +2 -2
package/js/src/bithumb.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { Balances, Currency, Dict, Int, Market, MarketInterface, Num, OHLCV
|
|
|
7
7
|
export default class bithumb extends Exchange {
|
|
8
8
|
describe(): any;
|
|
9
9
|
safeMarket(marketId?: Str, market?: Market, delimiter?: Str, marketType?: Str): MarketInterface;
|
|
10
|
-
amountToPrecision(symbol: Str, amount: any):
|
|
10
|
+
amountToPrecision(symbol: Str, amount: any): Str;
|
|
11
11
|
getGen2MarketId(market: Market): string;
|
|
12
12
|
/**
|
|
13
13
|
* @method
|
|
@@ -19,7 +19,7 @@ export default class bithumb extends Exchange {
|
|
|
19
19
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
20
20
|
* @returns {object[]} an array of objects representing market data
|
|
21
21
|
*/
|
|
22
|
-
fetchMarkets(params?:
|
|
22
|
+
fetchMarkets(params?: Dict): Promise<Market[]>;
|
|
23
23
|
parseBalance(response: any): Balances;
|
|
24
24
|
/**
|
|
25
25
|
* @method
|
|
@@ -31,7 +31,7 @@ export default class bithumb extends Exchange {
|
|
|
31
31
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
32
32
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
33
33
|
*/
|
|
34
|
-
fetchBalance(params?:
|
|
34
|
+
fetchBalance(params?: Dict): Promise<Balances>;
|
|
35
35
|
/**
|
|
36
36
|
* @method
|
|
37
37
|
* @name bithumb#fetchOrderBook
|
|
@@ -44,7 +44,7 @@ export default class bithumb extends Exchange {
|
|
|
44
44
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
45
45
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
46
46
|
*/
|
|
47
|
-
fetchOrderBook(symbol: string, limit?: Int, params?:
|
|
47
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
|
|
48
48
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
49
49
|
/**
|
|
50
50
|
* @method
|
|
@@ -57,7 +57,7 @@ export default class bithumb extends Exchange {
|
|
|
57
57
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
58
58
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
59
59
|
*/
|
|
60
|
-
fetchTickers(symbols?: Strings, params?:
|
|
60
|
+
fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
|
|
61
61
|
/**
|
|
62
62
|
* @method
|
|
63
63
|
* @name bithumb#fetchTicker
|
|
@@ -69,7 +69,7 @@ export default class bithumb extends Exchange {
|
|
|
69
69
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
70
70
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
71
71
|
*/
|
|
72
|
-
fetchTicker(symbol: string, params?:
|
|
72
|
+
fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
|
|
73
73
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
74
74
|
/**
|
|
75
75
|
* @method
|
|
@@ -88,7 +88,7 @@ export default class bithumb extends Exchange {
|
|
|
88
88
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
89
89
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
90
90
|
*/
|
|
91
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
91
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
|
|
92
92
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
93
93
|
/**
|
|
94
94
|
* @method
|
|
@@ -103,7 +103,7 @@ export default class bithumb extends Exchange {
|
|
|
103
103
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
104
104
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
105
105
|
*/
|
|
106
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?:
|
|
106
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
107
107
|
/**
|
|
108
108
|
* @method
|
|
109
109
|
* @name bithumb#createOrders
|
|
@@ -117,8 +117,8 @@ export default class bithumb extends Exchange {
|
|
|
117
117
|
* @param {int} [params.generation] *only generation 2 is supported* if you want to use the API generation 1 or 2, default is 2
|
|
118
118
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
119
119
|
*/
|
|
120
|
-
createOrders(orders: OrderRequest[], params?:
|
|
121
|
-
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
120
|
+
createOrders(orders: OrderRequest[], params?: Dict): Promise<Order[]>;
|
|
121
|
+
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Dict;
|
|
122
122
|
/**
|
|
123
123
|
* @method
|
|
124
124
|
* @name bithumb#createOrder
|
|
@@ -141,7 +141,7 @@ export default class bithumb extends Exchange {
|
|
|
141
141
|
* @param {int} [params.generation] if you want to use the API generation 1 or 2, default is 2
|
|
142
142
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
143
143
|
*/
|
|
144
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
144
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
|
|
145
145
|
/**
|
|
146
146
|
* @method
|
|
147
147
|
* @name bithumb#createMarketBuyOrderWithCost
|
|
@@ -169,7 +169,7 @@ export default class bithumb extends Exchange {
|
|
|
169
169
|
* @param {int} [params.generation] *only generation 2 is supported* if you want to use the API generation 1 or 2, default is 2
|
|
170
170
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
171
171
|
*/
|
|
172
|
-
createTwapOrder(symbol: string, side: OrderSide, amount: number, duration: number, params?:
|
|
172
|
+
createTwapOrder(symbol: string, side: OrderSide, amount: number, duration: number, params?: Dict): Promise<Order>;
|
|
173
173
|
/**
|
|
174
174
|
* @method
|
|
175
175
|
* @name bithumb#fetchOrder
|
|
@@ -186,7 +186,7 @@ export default class bithumb extends Exchange {
|
|
|
186
186
|
* @param {string} [params.state] *generation 2 only* the order state, either wait, watch, done, or cancel. For twap either progress (default), done, or cancel
|
|
187
187
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
188
188
|
*/
|
|
189
|
-
fetchOrder(id: string, symbol?: Str, params?:
|
|
189
|
+
fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
190
190
|
parseOrderStatus(status: Str): Str;
|
|
191
191
|
parseOrder(order: Dict, market?: Market): Order;
|
|
192
192
|
/**
|
|
@@ -222,7 +222,7 @@ export default class bithumb extends Exchange {
|
|
|
222
222
|
* @param {string} [params.state] *generation 2 only* the order state, either wait, watch, done, or cancel. For twap either progress (default), done, or cancel
|
|
223
223
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
224
224
|
*/
|
|
225
|
-
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
225
|
+
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
226
226
|
/**
|
|
227
227
|
* @method
|
|
228
228
|
* @name bithumb#fetchClosedOrders
|
|
@@ -283,8 +283,8 @@ export default class bithumb extends Exchange {
|
|
|
283
283
|
* @param {int} [params.generation] *only generation 2 is supported* if you want to use the API generation 1 or 2, default is 2
|
|
284
284
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
285
285
|
*/
|
|
286
|
-
cancelOrders(ids: string[], symbol?: Str, params?:
|
|
287
|
-
cancelUnifiedOrder(order: Order, params?:
|
|
286
|
+
cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
287
|
+
cancelUnifiedOrder(order: Order, params?: Dict): Promise<Order>;
|
|
288
288
|
/**
|
|
289
289
|
* @method
|
|
290
290
|
* @name bithumb#withdraw
|
|
@@ -311,7 +311,7 @@ export default class bithumb extends Exchange {
|
|
|
311
311
|
* @param {string} [params.two_factor_type] *generation 2 KRW withdraw only* the two factor type, for example kakao
|
|
312
312
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
313
313
|
*/
|
|
314
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?:
|
|
314
|
+
withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
|
|
315
315
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
316
316
|
parseTransactionStatusByType(status: Str, type?: Str): Str;
|
|
317
317
|
/**
|
|
@@ -336,7 +336,7 @@ export default class bithumb extends Exchange {
|
|
|
336
336
|
* @param {int} [params.generation] *only generation 2 is supported* if you want to use the API generation 1 or 2, default is 2
|
|
337
337
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
338
338
|
*/
|
|
339
|
-
fetchWithdrawal(id: string, code?: Str, params?:
|
|
339
|
+
fetchWithdrawal(id: string, code?: Str, params?: Dict): Promise<Transaction>;
|
|
340
340
|
/**
|
|
341
341
|
* @method
|
|
342
342
|
* @name bithumb#fetchWithdrawals
|
|
@@ -355,7 +355,7 @@ export default class bithumb extends Exchange {
|
|
|
355
355
|
* @param {string[]} [params.txids] an array of txid strings
|
|
356
356
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
357
357
|
*/
|
|
358
|
-
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
358
|
+
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
359
359
|
/**
|
|
360
360
|
* @method
|
|
361
361
|
* @name bithumb#fetchDeposit
|
|
@@ -368,7 +368,7 @@ export default class bithumb extends Exchange {
|
|
|
368
368
|
* @param {int} [params.generation] *only generation 2 is supported* if you want to use the API generation 1 or 2, default is 2
|
|
369
369
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
370
370
|
*/
|
|
371
|
-
fetchDeposit(id: string, code?: Str, params?:
|
|
371
|
+
fetchDeposit(id: string, code?: Str, params?: Dict): Promise<Transaction>;
|
|
372
372
|
/**
|
|
373
373
|
* @method
|
|
374
374
|
* @name bithumb#fetchDeposits
|
|
@@ -387,7 +387,7 @@ export default class bithumb extends Exchange {
|
|
|
387
387
|
* @param {string[]} [params.txids] an array of txid strings
|
|
388
388
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
389
389
|
*/
|
|
390
|
-
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?:
|
|
390
|
+
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
391
391
|
/**
|
|
392
392
|
* @method
|
|
393
393
|
* @name bithumb#createDepositAddress
|
|
@@ -399,7 +399,7 @@ export default class bithumb extends Exchange {
|
|
|
399
399
|
* @param {string} [params.network] the blockchain network to create a deposit address on
|
|
400
400
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
401
401
|
*/
|
|
402
|
-
createDepositAddress(code: string, params?:
|
|
402
|
+
createDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
403
403
|
/**
|
|
404
404
|
* @method
|
|
405
405
|
* @name bithumb#fetchDepositAddress
|
|
@@ -411,7 +411,7 @@ export default class bithumb extends Exchange {
|
|
|
411
411
|
* @param {string} [params.network] network for fetch deposit address
|
|
412
412
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
413
413
|
*/
|
|
414
|
-
fetchDepositAddress(code: string, params?:
|
|
414
|
+
fetchDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
415
415
|
/**
|
|
416
416
|
* @method
|
|
417
417
|
* @name bithumb#fetchDepositAddresses
|
|
@@ -422,16 +422,11 @@ export default class bithumb extends Exchange {
|
|
|
422
422
|
* @param {int} [params.generation] *only generation 2 is supported* if you want to use the API generation 1 or 2, default is 2
|
|
423
423
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by currency code
|
|
424
424
|
*/
|
|
425
|
-
fetchDepositAddresses(codes?: Strings, params?:
|
|
425
|
+
fetchDepositAddresses(codes?: Strings, params?: Dict): Promise<DepositAddress[]>;
|
|
426
426
|
parseDepositAddress(response: any, currency?: Currency): DepositAddress;
|
|
427
|
-
fixCommaNumber(numberStr:
|
|
427
|
+
fixCommaNumber(numberStr: Str): string | undefined;
|
|
428
428
|
nonce(): number;
|
|
429
429
|
urlencodeWithArrayBrackets(query: Dict): string;
|
|
430
|
-
sign(path: any, api?:
|
|
431
|
-
url: string;
|
|
432
|
-
method: string;
|
|
433
|
-
body: Str;
|
|
434
|
-
headers: Dict;
|
|
435
|
-
};
|
|
430
|
+
sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
|
|
436
431
|
handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
|
|
437
432
|
}
|
package/js/src/bitmex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/bitmex.js';
|
|
2
|
-
import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, Liquidation, OrderBook, Balances, Str, Dict, Transaction, Ticker, Tickers, Market, Strings, Currency, CurrencyInterface, Leverage, Leverages, Num, Currencies, int, LedgerEntry, FundingRate, FundingRates, DepositAddress, Position, OpenInterests, ADL, NullableDict, DepositWithdrawFees } from './base/types.js';
|
|
2
|
+
import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, Liquidation, OrderBook, Balances, Str, Dict, Transaction, Ticker, Tickers, Market, Strings, Currency, CurrencyInterface, Leverage, Leverages, Num, Currencies, int, LedgerEntry, FundingRate, FundingRates, DepositAddress, Position, OpenInterests, ADL, NullableDict, DepositWithdrawFees, FundingRateHistory, OpenInterest } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class bitmex
|
|
5
5
|
* @augments Exchange
|
|
@@ -14,13 +14,13 @@ export default class bitmex extends Exchange {
|
|
|
14
14
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
15
15
|
* @returns {object} an associative dictionary of currencies
|
|
16
16
|
*/
|
|
17
|
-
fetchCurrencies(params?:
|
|
17
|
+
fetchCurrencies(params?: Dict): Promise<Currencies>;
|
|
18
18
|
parseCurrency(currency: Dict): CurrencyInterface;
|
|
19
|
-
convertFromRealAmount(code:
|
|
19
|
+
convertFromRealAmount(code: Str, amount: Num): Num;
|
|
20
20
|
convertToRealAmount(code: Str, amount: Str): Str;
|
|
21
|
-
amountToPrecision(symbol: Str, amount: any):
|
|
22
|
-
convertFromRawQuantity(symbol:
|
|
23
|
-
convertFromRawCost(symbol:
|
|
21
|
+
amountToPrecision(symbol: Str, amount: any): Str;
|
|
22
|
+
convertFromRawQuantity(symbol: Str, rawQuantity: Str, currencySide?: Str): Num;
|
|
23
|
+
convertFromRawCost(symbol: Str, rawQuantity: Str): Num;
|
|
24
24
|
/**
|
|
25
25
|
* @method
|
|
26
26
|
* @name bitmex#fetchMarkets
|
|
@@ -29,7 +29,7 @@ export default class bitmex extends Exchange {
|
|
|
29
29
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
30
30
|
* @returns {object[]} an array of objects representing market data
|
|
31
31
|
*/
|
|
32
|
-
fetchMarkets(params?:
|
|
32
|
+
fetchMarkets(params?: Dict): Promise<Market[]>;
|
|
33
33
|
parseMarket(market: Dict): Market;
|
|
34
34
|
parseBalance(response: any): Balances;
|
|
35
35
|
/**
|
|
@@ -40,7 +40,7 @@ export default class bitmex extends Exchange {
|
|
|
40
40
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
41
41
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
42
42
|
*/
|
|
43
|
-
fetchBalance(params?:
|
|
43
|
+
fetchBalance(params?: Dict): Promise<Balances>;
|
|
44
44
|
/**
|
|
45
45
|
* @method
|
|
46
46
|
* @name bitmex#fetchOrderBook
|
|
@@ -51,7 +51,7 @@ export default class bitmex extends Exchange {
|
|
|
51
51
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
52
52
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
53
53
|
*/
|
|
54
|
-
fetchOrderBook(symbol: string, limit?: Int, params?:
|
|
54
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
|
|
55
55
|
/**
|
|
56
56
|
* @method
|
|
57
57
|
* @name bitmex#fetchOrder
|
|
@@ -62,7 +62,7 @@ export default class bitmex extends Exchange {
|
|
|
62
62
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
63
63
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
64
64
|
*/
|
|
65
|
-
fetchOrder(id: string, symbol?: Str, params?:
|
|
65
|
+
fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
66
66
|
/**
|
|
67
67
|
* @method
|
|
68
68
|
* @name bitmex#fetchOrders
|
|
@@ -76,7 +76,7 @@ export default class bitmex extends Exchange {
|
|
|
76
76
|
* @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)
|
|
77
77
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
78
78
|
*/
|
|
79
|
-
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
79
|
+
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
80
80
|
/**
|
|
81
81
|
* @method
|
|
82
82
|
* @name bitmex#fetchOpenOrders
|
|
@@ -88,7 +88,7 @@ export default class bitmex extends Exchange {
|
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
89
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
90
90
|
*/
|
|
91
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
91
|
+
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
92
92
|
/**
|
|
93
93
|
* @method
|
|
94
94
|
* @name bitmex#fetchClosedOrders
|
|
@@ -100,7 +100,7 @@ export default class bitmex extends Exchange {
|
|
|
100
100
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
101
101
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
102
102
|
*/
|
|
103
|
-
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
103
|
+
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
104
104
|
/**
|
|
105
105
|
* @method
|
|
106
106
|
* @name bitmex#fetchMyTrades
|
|
@@ -113,8 +113,8 @@ export default class bitmex extends Exchange {
|
|
|
113
113
|
* @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)
|
|
114
114
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
115
115
|
*/
|
|
116
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
117
|
-
parseLedgerEntryType(type:
|
|
116
|
+
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
117
|
+
parseLedgerEntryType(type: Str): Str;
|
|
118
118
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
119
119
|
/**
|
|
120
120
|
* @method
|
|
@@ -127,7 +127,7 @@ export default class bitmex extends Exchange {
|
|
|
127
127
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
128
128
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
|
|
129
129
|
*/
|
|
130
|
-
fetchLedger(code?: Str, since?: Int, limit?: Int, params?:
|
|
130
|
+
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<LedgerEntry[]>;
|
|
131
131
|
/**
|
|
132
132
|
* @method
|
|
133
133
|
* @name bitmex#fetchDepositsWithdrawals
|
|
@@ -139,7 +139,7 @@ export default class bitmex extends Exchange {
|
|
|
139
139
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
140
140
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
141
141
|
*/
|
|
142
|
-
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
142
|
+
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
143
143
|
parseTransactionStatus(status: Str): Str;
|
|
144
144
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
145
145
|
/**
|
|
@@ -151,7 +151,7 @@ export default class bitmex extends Exchange {
|
|
|
151
151
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
152
152
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
153
153
|
*/
|
|
154
|
-
fetchTicker(symbol: string, params?:
|
|
154
|
+
fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
|
|
155
155
|
/**
|
|
156
156
|
* @method
|
|
157
157
|
* @name bitmex#fetchTickers
|
|
@@ -161,7 +161,7 @@ export default class bitmex extends Exchange {
|
|
|
161
161
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
162
162
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
163
163
|
*/
|
|
164
|
-
fetchTickers(symbols?: Strings, params?:
|
|
164
|
+
fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
|
|
165
165
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
166
166
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
167
167
|
/**
|
|
@@ -177,7 +177,7 @@ export default class bitmex extends Exchange {
|
|
|
177
177
|
* @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)
|
|
178
178
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
179
179
|
*/
|
|
180
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
180
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
|
|
181
181
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
182
182
|
parseOrderStatus(status: Str): Str;
|
|
183
183
|
parseTimeInForce(timeInForce: Str): Str;
|
|
@@ -194,7 +194,7 @@ export default class bitmex extends Exchange {
|
|
|
194
194
|
* @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)
|
|
195
195
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
196
196
|
*/
|
|
197
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?:
|
|
197
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
198
198
|
/**
|
|
199
199
|
* @method
|
|
200
200
|
* @name bitmex#createOrder
|
|
@@ -211,8 +211,8 @@ export default class bitmex extends Exchange {
|
|
|
211
211
|
* @param {float} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
212
212
|
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
213
213
|
*/
|
|
214
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
215
|
-
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?:
|
|
214
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
|
|
215
|
+
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: Dict): Promise<Order>;
|
|
216
216
|
/**
|
|
217
217
|
* @method
|
|
218
218
|
* @name bitmex#cancelOrder
|
|
@@ -223,7 +223,7 @@ export default class bitmex extends Exchange {
|
|
|
223
223
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
224
224
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
225
225
|
*/
|
|
226
|
-
cancelOrder(id: string, symbol?: Str, params?:
|
|
226
|
+
cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
227
227
|
/**
|
|
228
228
|
* @method
|
|
229
229
|
* @name bitmex#cancelOrders
|
|
@@ -234,7 +234,7 @@ export default class bitmex extends Exchange {
|
|
|
234
234
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
235
235
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
236
236
|
*/
|
|
237
|
-
cancelOrders(ids: string[], symbol?: Str, params?:
|
|
237
|
+
cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
238
238
|
/**
|
|
239
239
|
* @method
|
|
240
240
|
* @name bitmex#cancelAllOrders
|
|
@@ -244,7 +244,7 @@ export default class bitmex extends Exchange {
|
|
|
244
244
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
245
245
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
246
246
|
*/
|
|
247
|
-
cancelAllOrders(symbol?: Str, params?:
|
|
247
|
+
cancelAllOrders(symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
248
248
|
/**
|
|
249
249
|
* @method
|
|
250
250
|
* @name bitmex#cancelAllOrdersAfter
|
|
@@ -254,7 +254,7 @@ export default class bitmex extends Exchange {
|
|
|
254
254
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
255
255
|
* @returns {object} the api result
|
|
256
256
|
*/
|
|
257
|
-
cancelAllOrdersAfter(timeout: Int, params?:
|
|
257
|
+
cancelAllOrdersAfter(timeout: Int, params?: Dict): Promise<Dict>;
|
|
258
258
|
/**
|
|
259
259
|
* @method
|
|
260
260
|
* @name bitmex#fetchLeverages
|
|
@@ -264,7 +264,7 @@ export default class bitmex extends Exchange {
|
|
|
264
264
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
265
265
|
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
266
266
|
*/
|
|
267
|
-
fetchLeverages(symbols?: Strings, params?:
|
|
267
|
+
fetchLeverages(symbols?: Strings, params?: Dict): Promise<Leverages>;
|
|
268
268
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
269
269
|
/**
|
|
270
270
|
* @method
|
|
@@ -275,7 +275,7 @@ export default class bitmex extends Exchange {
|
|
|
275
275
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
276
276
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
277
277
|
*/
|
|
278
|
-
fetchPositions(symbols?: Strings, params?:
|
|
278
|
+
fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
|
|
279
279
|
parsePosition(position: Dict, market?: Market): Position;
|
|
280
280
|
/**
|
|
281
281
|
* @method
|
|
@@ -289,7 +289,7 @@ export default class bitmex extends Exchange {
|
|
|
289
289
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
290
290
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
291
291
|
*/
|
|
292
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?:
|
|
292
|
+
withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
|
|
293
293
|
/**
|
|
294
294
|
* @method
|
|
295
295
|
* @name bitmex#fetchFundingRates
|
|
@@ -299,7 +299,7 @@ export default class bitmex extends Exchange {
|
|
|
299
299
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
300
300
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
301
301
|
*/
|
|
302
|
-
fetchFundingRates(symbols?: Strings, params?:
|
|
302
|
+
fetchFundingRates(symbols?: Strings, params?: Dict): Promise<FundingRates>;
|
|
303
303
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
304
304
|
/**
|
|
305
305
|
* @method
|
|
@@ -317,14 +317,8 @@ export default class bitmex extends Exchange {
|
|
|
317
317
|
* @param {string} [params.filter] generic table filter, send json key/value pairs, such as {"key": "value"}, you can key on individual fields, and do more advanced querying on timestamps, see the [timestamp docs]{@link https://www.bitmex.com/app/restAPI#Timestamp-Filters} for more details
|
|
318
318
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
319
319
|
*/
|
|
320
|
-
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
321
|
-
parseFundingRateHistory(info: any, market?: Market):
|
|
322
|
-
info: any;
|
|
323
|
-
symbol: string;
|
|
324
|
-
fundingRate: Num;
|
|
325
|
-
timestamp: number | undefined;
|
|
326
|
-
datetime: Str;
|
|
327
|
-
};
|
|
320
|
+
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingRateHistory[]>;
|
|
321
|
+
parseFundingRateHistory(info: any, market?: Market): FundingRateHistory;
|
|
328
322
|
/**
|
|
329
323
|
* @method
|
|
330
324
|
* @name bitmex#setLeverage
|
|
@@ -335,7 +329,7 @@ export default class bitmex extends Exchange {
|
|
|
335
329
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
336
330
|
* @returns {object} response from the exchange
|
|
337
331
|
*/
|
|
338
|
-
setLeverage(leverage: int, symbol?: Str, params?:
|
|
332
|
+
setLeverage(leverage: int, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
339
333
|
/**
|
|
340
334
|
* @method
|
|
341
335
|
* @name bitmex#setMarginMode
|
|
@@ -346,7 +340,7 @@ export default class bitmex extends Exchange {
|
|
|
346
340
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
347
341
|
* @returns {object} response from the exchange
|
|
348
342
|
*/
|
|
349
|
-
setMarginMode(marginMode: string, symbol?: Str, params?:
|
|
343
|
+
setMarginMode(marginMode: string, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
350
344
|
/**
|
|
351
345
|
* @method
|
|
352
346
|
* @name bitmex#fetchDepositAddress
|
|
@@ -357,8 +351,8 @@ export default class bitmex extends Exchange {
|
|
|
357
351
|
* @param {string} [params.network] deposit chain, can view all chains via this.publicGetWalletAssets, default is eth, unless the currency has a default chain within this.options['networks']
|
|
358
352
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
359
353
|
*/
|
|
360
|
-
fetchDepositAddress(code: string, params?:
|
|
361
|
-
parseDepositWithdrawFee(fee: any, currency?: Currency):
|
|
354
|
+
fetchDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
355
|
+
parseDepositWithdrawFee(fee: any, currency?: Currency): any;
|
|
362
356
|
/**
|
|
363
357
|
* @method
|
|
364
358
|
* @name bitmex#fetchDepositWithdrawFees
|
|
@@ -368,7 +362,7 @@ export default class bitmex extends Exchange {
|
|
|
368
362
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
369
363
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
370
364
|
*/
|
|
371
|
-
fetchDepositWithdrawFees(codes?: Strings, params?:
|
|
365
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: Dict): Promise<DepositWithdrawFees>;
|
|
372
366
|
/**
|
|
373
367
|
* @method
|
|
374
368
|
* @name bitmex#fetchOpenInterests
|
|
@@ -378,9 +372,9 @@ export default class bitmex extends Exchange {
|
|
|
378
372
|
* @param {object} [params] exchange specific parameters
|
|
379
373
|
* @returns {object[]} a list of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
380
374
|
*/
|
|
381
|
-
fetchOpenInterests(symbols?: Strings, params?:
|
|
382
|
-
parseOpenInterest(interest: any, market?: Market):
|
|
383
|
-
calculateRateLimiterCost(api: any, method: any, path: any, params: any, config?:
|
|
375
|
+
fetchOpenInterests(symbols?: Strings, params?: Dict): Promise<OpenInterests>;
|
|
376
|
+
parseOpenInterest(interest: any, market?: Market): OpenInterest;
|
|
377
|
+
calculateRateLimiterCost(api: any, method: any, path: any, params: any, config?: any): any;
|
|
384
378
|
/**
|
|
385
379
|
* @method
|
|
386
380
|
* @name bitmex#fetchLiquidations
|
|
@@ -394,7 +388,7 @@ export default class bitmex extends Exchange {
|
|
|
394
388
|
* @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)
|
|
395
389
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
396
390
|
*/
|
|
397
|
-
fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?:
|
|
391
|
+
fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Liquidation[]>;
|
|
398
392
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|
|
399
393
|
/**
|
|
400
394
|
* @method
|
|
@@ -405,7 +399,7 @@ export default class bitmex extends Exchange {
|
|
|
405
399
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
406
400
|
* @returns {object[]} an [auto de leverage structure]{@link https://docs.ccxt.com/?id=auto-de-leverage-structure}
|
|
407
401
|
*/
|
|
408
|
-
fetchPositionsADLRank(symbols?: Strings, params?:
|
|
402
|
+
fetchPositionsADLRank(symbols?: Strings, params?: Dict): Promise<ADL[]>;
|
|
409
403
|
parseADLRank(info: Dict, market?: Market): ADL;
|
|
410
404
|
/**
|
|
411
405
|
* @method
|
|
@@ -425,15 +419,9 @@ export default class bitmex extends Exchange {
|
|
|
425
419
|
* @param {boolean} [params.reverse] if true, will sort results newest first, default value = false
|
|
426
420
|
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
|
|
427
421
|
*/
|
|
428
|
-
fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
429
|
-
parseSettlements(settlements: any, market?: Market, since?: Int, limit?: Int):
|
|
430
|
-
parseSettlement(settlement:
|
|
431
|
-
info: any;
|
|
432
|
-
symbol: string;
|
|
433
|
-
price: Num;
|
|
434
|
-
timestamp: number | undefined;
|
|
435
|
-
datetime: Str;
|
|
436
|
-
};
|
|
422
|
+
fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Dict[]>;
|
|
423
|
+
parseSettlements(settlements: any[], market?: Market, since?: Int, limit?: Int): Dict[];
|
|
424
|
+
parseSettlement(settlement: Dict, market?: Market): Dict;
|
|
437
425
|
/**
|
|
438
426
|
* @method
|
|
439
427
|
* @name bitmex#closePosition
|
|
@@ -445,13 +433,8 @@ export default class bitmex extends Exchange {
|
|
|
445
433
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
446
434
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
447
435
|
*/
|
|
448
|
-
closePosition(symbol: string, side?: OrderSide, params?:
|
|
436
|
+
closePosition(symbol: string, side?: OrderSide, params?: Dict): Promise<Order>;
|
|
449
437
|
handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
|
|
450
438
|
nonce(): number;
|
|
451
|
-
sign(path: any, api?:
|
|
452
|
-
url: string;
|
|
453
|
-
method: string;
|
|
454
|
-
body: Str;
|
|
455
|
-
headers: NullableDict;
|
|
456
|
-
};
|
|
439
|
+
sign(path: any, api?: string, method?: any, params?: Dict, headers?: NullableDict, body?: Str): Dict;
|
|
457
440
|
}
|
package/js/src/bitmex.js
CHANGED
|
@@ -555,7 +555,7 @@ export default class bitmex extends Exchange {
|
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const currencyEnabled = this.
|
|
558
|
+
const currencyEnabled = this.safeBool(currency, 'enabled');
|
|
559
559
|
const currencyActive = (currencyEnabled === true) || (depositEnabled || withdrawEnabled);
|
|
560
560
|
const minWithdrawalString = this.safeString(currency, 'minWithdrawalAmount');
|
|
561
561
|
const minWithdrawal = this.parseNumber(Precise.stringMul(minWithdrawalString, precisionString));
|
|
@@ -613,14 +613,14 @@ export default class bitmex extends Exchange {
|
|
|
613
613
|
amountToPrecision(symbol, amount) {
|
|
614
614
|
symbol = this.safeSymbol(symbol);
|
|
615
615
|
const market = this.market(symbol);
|
|
616
|
-
const oldPrecision = this.
|
|
616
|
+
const oldPrecision = this.safeBool(this.options, 'oldPrecision');
|
|
617
617
|
if ((market['spot'] === true) && (oldPrecision !== true)) {
|
|
618
618
|
amount = this.convertFromRealAmount(market['base'], amount);
|
|
619
619
|
}
|
|
620
620
|
return super.amountToPrecision(symbol, amount);
|
|
621
621
|
}
|
|
622
622
|
convertFromRawQuantity(symbol, rawQuantity, currencySide = 'base') {
|
|
623
|
-
if (this.
|
|
623
|
+
if (this.safeBool(this.options, 'oldPrecision') === true) {
|
|
624
624
|
return this.parseNumber(rawQuantity);
|
|
625
625
|
}
|
|
626
626
|
symbol = this.safeSymbol(symbol);
|
|
@@ -1656,7 +1656,7 @@ export default class bitmex extends Exchange {
|
|
|
1656
1656
|
'symbol': market['id'],
|
|
1657
1657
|
};
|
|
1658
1658
|
const response = await this.publicGetInstrument(this.extend(request, params));
|
|
1659
|
-
const ticker = this.
|
|
1659
|
+
const ticker = this.safeDict(response, 0);
|
|
1660
1660
|
if (ticker === undefined) {
|
|
1661
1661
|
throw new BadSymbol(this.id + ' fetchTicker() symbol ' + symbol + ' not found');
|
|
1662
1662
|
}
|
|
@@ -2337,7 +2337,7 @@ export default class bitmex extends Exchange {
|
|
|
2337
2337
|
params = this.omit(params, ['clOrdID', 'clientOrderId']);
|
|
2338
2338
|
}
|
|
2339
2339
|
const response = await this.privateDeleteOrder(this.extend(request, params));
|
|
2340
|
-
const order = this.
|
|
2340
|
+
const order = this.safeDict(response, 0, {});
|
|
2341
2341
|
const error = this.safeString(order, 'error');
|
|
2342
2342
|
if (error !== undefined) {
|
|
2343
2343
|
if (error.indexOf('Unable to cancel order due to existing state') >= 0) {
|
|
@@ -2702,7 +2702,7 @@ export default class bitmex extends Exchange {
|
|
|
2702
2702
|
market = this.safeMarket(this.safeString(position, 'symbol'), market);
|
|
2703
2703
|
const symbol = market['symbol'];
|
|
2704
2704
|
const datetime = this.safeString(position, 'timestamp');
|
|
2705
|
-
const crossMargin = this.
|
|
2705
|
+
const crossMargin = this.safeBool(position, 'crossMargin');
|
|
2706
2706
|
const marginMode = (crossMargin === true) ? 'cross' : 'isolated';
|
|
2707
2707
|
const notionalString = Precise.stringAbs(this.safeString2(position, 'foreignNotional', 'homeNotional'));
|
|
2708
2708
|
const settleCurrencyCode = this.safeString(market, 'settle');
|
|
@@ -3717,7 +3717,7 @@ export default class bitmex extends Exchange {
|
|
|
3717
3717
|
throw new DDoSProtection(this.id + ' ' + body);
|
|
3718
3718
|
}
|
|
3719
3719
|
if (code >= 400) {
|
|
3720
|
-
const error = this.
|
|
3720
|
+
const error = this.safeDict(response, 'error', {});
|
|
3721
3721
|
const message = this.safeString(error, 'message');
|
|
3722
3722
|
const feedback = this.id + ' ' + body;
|
|
3723
3723
|
this.throwExactlyMatchedException(this.exceptions['exact'], message, feedback);
|