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/dist/cjs/ccxt.js
CHANGED
|
@@ -200,10 +200,11 @@ var myriad = require('./src/prediction/myriad.js');
|
|
|
200
200
|
var opinion = require('./src/prediction/opinion.js');
|
|
201
201
|
var polymarket = require('./src/prediction/polymarket.js');
|
|
202
202
|
var predictfun = require('./src/prediction/predictfun.js');
|
|
203
|
+
var sxbet = require('./src/prediction/sxbet.js');
|
|
203
204
|
|
|
204
205
|
//-----------------------------------------------------------------------------
|
|
205
206
|
// this is updated by vss.js when building
|
|
206
|
-
const version = '4.5.
|
|
207
|
+
const version = '4.5.83';
|
|
207
208
|
const exchanges = {
|
|
208
209
|
'alpaca': alpaca["default"],
|
|
209
210
|
'apex': apex["default"],
|
|
@@ -402,6 +403,7 @@ const prediction = {
|
|
|
402
403
|
'opinion': opinion["default"],
|
|
403
404
|
'polymarket': polymarket["default"],
|
|
404
405
|
'predictfun': predictfun["default"],
|
|
406
|
+
'sxbet': sxbet["default"],
|
|
405
407
|
};
|
|
406
408
|
prediction.exchanges = Object.keys(prediction);
|
|
407
409
|
// the namespace's `Exchange` alias must be the prediction base, not the crypto Exchange —
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var PredictionExchange = require('../../base/PredictionExchange.js');
|
|
6
|
+
|
|
7
|
+
// ----------------------------------------------------------------------------
|
|
8
|
+
class Exchange extends PredictionExchange["default"] {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
exports["default"] = Exchange;
|
package/dist/cjs/src/apex.js
CHANGED
|
@@ -829,6 +829,7 @@ class apex extends apex$1["default"] {
|
|
|
829
829
|
if (limit === undefined) {
|
|
830
830
|
limit = 200; // default is 200 when requested with `since`
|
|
831
831
|
}
|
|
832
|
+
limit = Math.min(limit, 200); // fix maxcap
|
|
832
833
|
request['limit'] = limit; // max 200, default 200
|
|
833
834
|
[request, params] = this.handleUntilOption('end', request, params, 0.001);
|
|
834
835
|
if (since !== undefined) {
|
package/dist/cjs/src/aster.js
CHANGED
|
@@ -3600,7 +3600,7 @@ class aster extends aster$1["default"] {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
const entryPriceString = this.safeString(position, 'entryPrice');
|
|
3602
3602
|
const entryPrice = this.parseNumber(entryPriceString);
|
|
3603
|
-
const contractSize = this.
|
|
3603
|
+
const contractSize = this.safeNumber(market, 'contractSize');
|
|
3604
3604
|
const contractSizeString = this.numberToString(contractSize);
|
|
3605
3605
|
// as oppose to notionalValue
|
|
3606
3606
|
const linear = ('notional' in position);
|
|
@@ -3919,7 +3919,7 @@ class aster extends aster$1["default"] {
|
|
|
3919
3919
|
let percentage = undefined;
|
|
3920
3920
|
let liquidationPriceStringRaw = undefined;
|
|
3921
3921
|
let liquidationPrice = undefined;
|
|
3922
|
-
const contractSize = this.
|
|
3922
|
+
const contractSize = this.safeNumber(market, 'contractSize');
|
|
3923
3923
|
const contractSizeString = this.numberToString(contractSize);
|
|
3924
3924
|
if (Precise["default"].stringEquals(notionalString, '0')) {
|
|
3925
3925
|
entryPrice = undefined;
|
|
@@ -67,7 +67,7 @@ const QUOTE_JSON_NUMBERS_REGEX = /":([+.0-9eE-]+)(?=[,}])/g;
|
|
|
67
67
|
*/
|
|
68
68
|
class BaseExchange {
|
|
69
69
|
// this is updated by vss.js when building
|
|
70
|
-
static { this.ccxtVersion = '4.5.
|
|
70
|
+
static { this.ccxtVersion = '4.5.82'; }
|
|
71
71
|
constructor(userConfig = {}) {
|
|
72
72
|
this.isSandboxModeEnabled = false;
|
|
73
73
|
this.certified = false;
|
package/dist/cjs/src/bigone.js
CHANGED
|
@@ -1119,8 +1119,8 @@ class bigone extends bigone$1["default"] {
|
|
|
1119
1119
|
return result;
|
|
1120
1120
|
}
|
|
1121
1121
|
parseContractOrderBook(orderbook, symbol, limit = undefined) {
|
|
1122
|
-
const responseBids = this.
|
|
1123
|
-
const responseAsks = this.
|
|
1122
|
+
const responseBids = this.safeDict(orderbook, 'bids');
|
|
1123
|
+
const responseAsks = this.safeDict(orderbook, 'asks');
|
|
1124
1124
|
const bids = this.parseContractBidsAsks(responseBids);
|
|
1125
1125
|
const asks = this.parseContractBidsAsks(responseAsks);
|
|
1126
1126
|
return {
|
package/dist/cjs/src/binance.js
CHANGED
|
@@ -2931,7 +2931,7 @@ class binance extends binance$1["default"] {
|
|
|
2931
2931
|
// end diff
|
|
2932
2932
|
for (let i = 0; i < markets.length; i++) {
|
|
2933
2933
|
const market = markets[i];
|
|
2934
|
-
if (this.
|
|
2934
|
+
if (this.safeBool(market, defaultType) === true) {
|
|
2935
2935
|
return market;
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
@@ -4411,7 +4411,7 @@ class binance extends binance$1["default"] {
|
|
|
4411
4411
|
response = await this.eapiPublicGetDepth(this.extend(request, params));
|
|
4412
4412
|
}
|
|
4413
4413
|
else if (market['linear'] === true) {
|
|
4414
|
-
const rpi = this.
|
|
4414
|
+
const rpi = this.safeBool(params, 'rpi', false);
|
|
4415
4415
|
params = this.omit(params, 'rpi');
|
|
4416
4416
|
if (rpi === true) {
|
|
4417
4417
|
// rpi limit only supports 1000
|
|
@@ -5896,7 +5896,7 @@ class binance extends binance$1["default"] {
|
|
|
5896
5896
|
else {
|
|
5897
5897
|
request['newClientOrderId'] = clientOrderId;
|
|
5898
5898
|
}
|
|
5899
|
-
request['newOrderRespType'] = this.
|
|
5899
|
+
request['newOrderRespType'] = this.safeString(this.options['newOrderRespType'], type, 'RESULT'); // 'ACK' for order id, 'RESULT' for full order or 'FULL' for order with fills
|
|
5900
5900
|
let timeInForceIsRequired = false;
|
|
5901
5901
|
let priceIsRequired = false;
|
|
5902
5902
|
let triggerPriceIsRequired = false;
|
|
@@ -7374,7 +7374,7 @@ class binance extends binance$1["default"] {
|
|
|
7374
7374
|
if (uppercaseType === 'MARKET') {
|
|
7375
7375
|
if (stock === true) {
|
|
7376
7376
|
if (upperCaseSide === 'BUY') {
|
|
7377
|
-
const precision = this.
|
|
7377
|
+
const precision = this.safeNumber(market['precision'], 'price');
|
|
7378
7378
|
const quoteOrderQtyNew = this.safeString2(params, 'quoteOrderQty', 'cost');
|
|
7379
7379
|
let notional = undefined;
|
|
7380
7380
|
if (quoteOrderQtyNew !== undefined) {
|
|
@@ -7412,7 +7412,7 @@ class binance extends binance$1["default"] {
|
|
|
7412
7412
|
const quoteOrderQty = this.handleOption('createOrder', 'quoteOrderQty', true);
|
|
7413
7413
|
if (quoteOrderQty === true) {
|
|
7414
7414
|
const quoteOrderQtyNew = this.safeString2(params, 'quoteOrderQty', 'cost');
|
|
7415
|
-
const precision = this.
|
|
7415
|
+
const precision = this.safeNumber(market['precision'], 'price');
|
|
7416
7416
|
if (quoteOrderQtyNew !== undefined) {
|
|
7417
7417
|
request['quoteOrderQty'] = this.decimalToPrecision(quoteOrderQtyNew, number.TRUNCATE, precision, this.precisionMode);
|
|
7418
7418
|
}
|
|
@@ -10014,8 +10014,8 @@ class binance extends binance$1["default"] {
|
|
|
10014
10014
|
const accountsById = this.safeDict(this.options, 'accountsById', {});
|
|
10015
10015
|
if (type !== undefined) {
|
|
10016
10016
|
const parts = type.split('_');
|
|
10017
|
-
fromAccount = this.
|
|
10018
|
-
toAccount = this.
|
|
10017
|
+
fromAccount = this.safeString(parts, 0);
|
|
10018
|
+
toAccount = this.safeString(parts, 1);
|
|
10019
10019
|
fromAccount = this.safeString(accountsById, fromAccount, fromAccount);
|
|
10020
10020
|
toAccount = this.safeString(accountsById, toAccount, toAccount);
|
|
10021
10021
|
}
|
|
@@ -11447,7 +11447,7 @@ class binance extends binance$1["default"] {
|
|
|
11447
11447
|
let percentage = undefined;
|
|
11448
11448
|
let liquidationPriceStringRaw = undefined;
|
|
11449
11449
|
let liquidationPrice = undefined;
|
|
11450
|
-
const contractSize = this.
|
|
11450
|
+
const contractSize = this.safeNumber(market, 'contractSize');
|
|
11451
11451
|
const contractSizeString = this.numberToString(contractSize);
|
|
11452
11452
|
if (Precise["default"].stringEquals(notionalString, '0')) {
|
|
11453
11453
|
entryPrice = undefined;
|
|
@@ -11662,7 +11662,7 @@ class binance extends binance$1["default"] {
|
|
|
11662
11662
|
}
|
|
11663
11663
|
const entryPriceString = this.safeString(position, 'entryPrice');
|
|
11664
11664
|
const entryPrice = this.parseNumber(entryPriceString);
|
|
11665
|
-
const contractSize = this.
|
|
11665
|
+
const contractSize = this.safeNumber(market, 'contractSize');
|
|
11666
11666
|
const contractSizeString = this.numberToString(contractSize);
|
|
11667
11667
|
// as oppose to notionalValue
|
|
11668
11668
|
const linear = ('notional' in position);
|
|
@@ -13584,7 +13584,7 @@ class binance extends binance$1["default"] {
|
|
|
13584
13584
|
}
|
|
13585
13585
|
}
|
|
13586
13586
|
}
|
|
13587
|
-
return this.
|
|
13587
|
+
return this.safeNumber(config, 'cost', 1);
|
|
13588
13588
|
}
|
|
13589
13589
|
async request(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined, config = {}) {
|
|
13590
13590
|
const response = await this.fetch2(path, api, method, params, headers, body, config);
|
package/dist/cjs/src/bingx.js
CHANGED
|
@@ -1580,7 +1580,7 @@ class bingx extends bingx$1["default"] {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
1582
|
return this.safeTrade({
|
|
1583
|
-
'id': this.safeStringN(trade, ['id', 't', 'fillId']),
|
|
1583
|
+
'id': this.safeStringN(trade, ['id', 't', 'fillId', 'tradeId']),
|
|
1584
1584
|
'info': trade,
|
|
1585
1585
|
'timestamp': time,
|
|
1586
1586
|
'datetime': this.iso8601(time),
|
|
@@ -4452,7 +4452,7 @@ class bingx extends bingx$1["default"] {
|
|
|
4452
4452
|
const request = {
|
|
4453
4453
|
'symbol': market['id'],
|
|
4454
4454
|
};
|
|
4455
|
-
const clientOrderIds = this.
|
|
4455
|
+
const clientOrderIds = this.safeList(params, 'clientOrderIds');
|
|
4456
4456
|
params = this.omit(params, 'clientOrderIds');
|
|
4457
4457
|
let idsToParse = ids;
|
|
4458
4458
|
const areClientOrderIds = (clientOrderIds !== undefined);
|
|
@@ -5730,7 +5730,7 @@ class bingx extends bingx$1["default"] {
|
|
|
5730
5730
|
//
|
|
5731
5731
|
// parse withdraw-type output first...
|
|
5732
5732
|
//
|
|
5733
|
-
const data = this.
|
|
5733
|
+
const data = this.safeDict(transaction, 'data');
|
|
5734
5734
|
const dataId = (data === undefined) ? undefined : this.safeString(data, 'id');
|
|
5735
5735
|
const id = this.safeString(transaction, 'id', dataId);
|
|
5736
5736
|
const address = this.safeString(transaction, 'address');
|
package/dist/cjs/src/bit2c.js
CHANGED
|
@@ -547,7 +547,7 @@ class bit2c extends bit2c$1["default"] {
|
|
|
547
547
|
for (let i = 0; i < keys.length; i++) {
|
|
548
548
|
const marketId = keys[i];
|
|
549
549
|
const symbol = this.safeSymbol(marketId);
|
|
550
|
-
const fee = this.
|
|
550
|
+
const fee = this.safeDict(fees, marketId);
|
|
551
551
|
const makerString = this.safeString(fee, 'FeeMaker');
|
|
552
552
|
const takerString = this.safeString(fee, 'FeeTaker');
|
|
553
553
|
const maker = this.parseNumber(Precise["default"].stringDiv(makerString, '100'));
|
|
@@ -644,8 +644,8 @@ class bit2c extends bit2c$1["default"] {
|
|
|
644
644
|
'pair': market['id'],
|
|
645
645
|
};
|
|
646
646
|
const response = await this.privateGetOrderMyOrders(this.extend(request, params));
|
|
647
|
-
const orders = this.
|
|
648
|
-
const asks = this.
|
|
647
|
+
const orders = this.safeDict(response, market['id'], {});
|
|
648
|
+
const asks = this.safeList(orders, 'ask', []);
|
|
649
649
|
const bids = this.safeList(orders, 'bid', []);
|
|
650
650
|
return this.parseOrders(this.arrayConcat(asks, bids), market, since, limit);
|
|
651
651
|
}
|
|
@@ -938,7 +938,7 @@ class bit2c extends bit2c$1["default"] {
|
|
|
938
938
|
const marketId = this.safeString(trade, 'pair');
|
|
939
939
|
market = this.safeMarket(marketId, market);
|
|
940
940
|
market = this.safeMarket(reference_parts[0], market);
|
|
941
|
-
const isMaker = this.
|
|
941
|
+
const isMaker = this.safeBool(trade, 'isMaker');
|
|
942
942
|
makerOrTaker = (isMaker === true) ? 'maker' : 'taker';
|
|
943
943
|
orderId = (isMaker === true) ? reference_parts[2] : reference_parts[1];
|
|
944
944
|
const action = this.safeInteger(trade, 'action');
|
package/dist/cjs/src/bitbank.js
CHANGED
|
@@ -304,8 +304,8 @@ class bitbank extends bitbank$1["default"] {
|
|
|
304
304
|
// }
|
|
305
305
|
// }
|
|
306
306
|
//
|
|
307
|
-
const data = this.
|
|
308
|
-
const pairs = this.
|
|
307
|
+
const data = this.safeDict(response, 'data');
|
|
308
|
+
const pairs = this.safeList(data, 'pairs', []);
|
|
309
309
|
return this.parseMarkets(pairs);
|
|
310
310
|
}
|
|
311
311
|
parseMarket(entry) {
|
|
@@ -329,7 +329,7 @@ class bitbank extends bitbank$1["default"] {
|
|
|
329
329
|
'swap': false,
|
|
330
330
|
'future': false,
|
|
331
331
|
'option': false,
|
|
332
|
-
'active': this.
|
|
332
|
+
'active': this.safeBool(entry, 'is_enabled'),
|
|
333
333
|
'contract': false,
|
|
334
334
|
'linear': undefined,
|
|
335
335
|
'inverse': undefined,
|
|
@@ -433,7 +433,7 @@ class bitbank extends bitbank$1["default"] {
|
|
|
433
433
|
'pair': market['id'],
|
|
434
434
|
};
|
|
435
435
|
const response = await this.publicGetPairDepth(this.extend(request, params));
|
|
436
|
-
const orderbook = this.
|
|
436
|
+
const orderbook = this.safeDict(response, 'data', {});
|
|
437
437
|
const timestamp = this.safeInteger(orderbook, 'timestamp');
|
|
438
438
|
return this.parseOrderBook(orderbook, market['symbol'], timestamp);
|
|
439
439
|
}
|
|
@@ -502,7 +502,7 @@ class bitbank extends bitbank$1["default"] {
|
|
|
502
502
|
'pair': market['id'],
|
|
503
503
|
};
|
|
504
504
|
const response = await this.publicGetPairTransactions(this.extend(request, params));
|
|
505
|
-
const data = this.
|
|
505
|
+
const data = this.safeDict(response, 'data', {});
|
|
506
506
|
const trades = this.safeList(data, 'transactions', []);
|
|
507
507
|
return this.parseTrades(trades, market, since, limit);
|
|
508
508
|
}
|
|
@@ -547,7 +547,7 @@ class bitbank extends bitbank$1["default"] {
|
|
|
547
547
|
// }
|
|
548
548
|
// }
|
|
549
549
|
//
|
|
550
|
-
const data = this.
|
|
550
|
+
const data = this.safeDict(response, 'data', {});
|
|
551
551
|
const pairs = this.safeList(data, 'pairs', []);
|
|
552
552
|
const result = {};
|
|
553
553
|
for (let i = 0; i < pairs.length; i++) {
|
|
@@ -634,9 +634,9 @@ class bitbank extends bitbank$1["default"] {
|
|
|
634
634
|
// }
|
|
635
635
|
// }
|
|
636
636
|
//
|
|
637
|
-
const data = this.
|
|
638
|
-
const candlestick = this.
|
|
639
|
-
const first = this.
|
|
637
|
+
const data = this.safeDict(response, 'data', {});
|
|
638
|
+
const candlestick = this.safeList(data, 'candlestick', []);
|
|
639
|
+
const first = this.safeDict(candlestick, 0, {});
|
|
640
640
|
const ohlcv = this.safeList(first, 'ohlcv', []);
|
|
641
641
|
return this.parseOHLCVs(ohlcv, market, timeframe, since, limit);
|
|
642
642
|
}
|
|
@@ -646,7 +646,7 @@ class bitbank extends bitbank$1["default"] {
|
|
|
646
646
|
'timestamp': undefined,
|
|
647
647
|
'datetime': undefined,
|
|
648
648
|
};
|
|
649
|
-
const data = this.
|
|
649
|
+
const data = this.safeDict(response, 'data', {});
|
|
650
650
|
const assets = this.safeList(data, 'assets', []);
|
|
651
651
|
for (let i = 0; i < assets.length; i++) {
|
|
652
652
|
const balance = assets[i];
|
|
@@ -905,7 +905,7 @@ class bitbank extends bitbank$1["default"] {
|
|
|
905
905
|
request['since'] = this.parseToInt(since / 1000);
|
|
906
906
|
}
|
|
907
907
|
const response = await this.privateGetUserSpotActiveOrders(this.extend(request, params));
|
|
908
|
-
const data = this.
|
|
908
|
+
const data = this.safeDict(response, 'data', {});
|
|
909
909
|
const orders = this.safeList(data, 'orders', []);
|
|
910
910
|
return this.parseOrders(orders, market, since, limit);
|
|
911
911
|
}
|
|
@@ -937,7 +937,7 @@ class bitbank extends bitbank$1["default"] {
|
|
|
937
937
|
request['since'] = this.parseToInt(since / 1000);
|
|
938
938
|
}
|
|
939
939
|
const response = await this.privateGetUserSpotTradeHistory(this.extend(request, params));
|
|
940
|
-
const data = this.
|
|
940
|
+
const data = this.safeDict(response, 'data', {});
|
|
941
941
|
const trades = this.safeList(data, 'trades', []);
|
|
942
942
|
return this.parseTrades(trades, market, since, limit);
|
|
943
943
|
}
|
|
@@ -959,10 +959,10 @@ class bitbank extends bitbank$1["default"] {
|
|
|
959
959
|
'asset': currency['id'],
|
|
960
960
|
};
|
|
961
961
|
const response = await this.privateGetUserWithdrawalAccount(this.extend(request, params));
|
|
962
|
-
const data = this.
|
|
962
|
+
const data = this.safeDict(response, 'data', {});
|
|
963
963
|
// Not sure about this if there could be more than one account...
|
|
964
|
-
const accounts = this.
|
|
965
|
-
const firstAccount = this.
|
|
964
|
+
const accounts = this.safeList(data, 'accounts', []);
|
|
965
|
+
const firstAccount = this.safeDict(accounts, 0, {});
|
|
966
966
|
const address = this.safeString(firstAccount, 'address');
|
|
967
967
|
return {
|
|
968
968
|
'info': response,
|
package/dist/cjs/src/bitfinex.js
CHANGED
|
@@ -1115,7 +1115,7 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
1115
1115
|
//
|
|
1116
1116
|
const result = this.safeList(transfer, 'result');
|
|
1117
1117
|
const timestamp = this.safeInteger(result, 0);
|
|
1118
|
-
const info = this.
|
|
1118
|
+
const info = this.safeList(result, 4);
|
|
1119
1119
|
const fromAccount = this.safeString(info, 1);
|
|
1120
1120
|
const toAccount = this.safeString(info, 2);
|
|
1121
1121
|
const currencyId = this.safeString(info, 5);
|
|
@@ -1146,9 +1146,9 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
1146
1146
|
// "id": "fUSTF0",
|
|
1147
1147
|
// "code": "USTF0",
|
|
1148
1148
|
// "info": [ 'USTF0', [], [], [], [ "USTF0", "UST" ] ],
|
|
1149
|
-
const info = this.
|
|
1149
|
+
const info = this.safeList(currency, 'info');
|
|
1150
1150
|
const transferId = this.safeString(info, 0);
|
|
1151
|
-
const underlying = this.
|
|
1151
|
+
const underlying = this.safeList(info, 4, []);
|
|
1152
1152
|
let currencyId = undefined;
|
|
1153
1153
|
if (type === 'derivatives') {
|
|
1154
1154
|
currencyId = this.safeString(underlying, 0, transferId);
|
|
@@ -1654,7 +1654,7 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
1654
1654
|
// '16384': 'OCO', // The one cancels other order option allows you to place a pair of orders stipulating that if one order is executed fully or partially, then the other is automatically canceled.
|
|
1655
1655
|
// '524288': 'No Var Rates' // Excludes variable rate funding offers from matching against this order, if on margin
|
|
1656
1656
|
};
|
|
1657
|
-
return this.
|
|
1657
|
+
return this.safeList(flagValues, flags, undefined);
|
|
1658
1658
|
}
|
|
1659
1659
|
parseTimeInForce(orderType) {
|
|
1660
1660
|
const orderTypes = {
|
|
@@ -1678,7 +1678,7 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
1678
1678
|
const amount = Precise["default"].stringAbs(signedAmount);
|
|
1679
1679
|
const side = Precise["default"].stringLt(signedAmount, '0') ? 'sell' : 'buy';
|
|
1680
1680
|
const orderType = this.safeString(orderList, 8);
|
|
1681
|
-
const type = this.safeString(this.
|
|
1681
|
+
const type = this.safeString(this.safeDict(this.options, 'exchangeTypes'), orderType);
|
|
1682
1682
|
const timeInForce = this.parseTimeInForce(orderType);
|
|
1683
1683
|
const rawFlags = this.safeString(orderList, 12);
|
|
1684
1684
|
const flags = this.parseOrderFlags(rawFlags);
|
|
@@ -2440,8 +2440,8 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
2440
2440
|
const currency = this.currency(code);
|
|
2441
2441
|
// if not provided explicitly we will try to match using the currency name
|
|
2442
2442
|
const network = this.safeString(params, 'network', code);
|
|
2443
|
-
const currencyNetworks = this.
|
|
2444
|
-
const currencyNetwork = this.
|
|
2443
|
+
const currencyNetworks = this.safeDict(currency, 'networks', {});
|
|
2444
|
+
const currencyNetwork = this.safeDict(currencyNetworks, network);
|
|
2445
2445
|
const networkId = this.safeString(currencyNetwork, 'id');
|
|
2446
2446
|
if (networkId === undefined) {
|
|
2447
2447
|
throw new errors.ArgumentsRequired(this.id + " fetchDepositAddress() could not find a network for '" + code + "'. You can specify it by providing the 'network' value inside params");
|
|
@@ -2473,7 +2473,7 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
2473
2473
|
// "success", // TEXT Text of the notification
|
|
2474
2474
|
// ]
|
|
2475
2475
|
//
|
|
2476
|
-
const result = this.
|
|
2476
|
+
const result = this.safeList(response, 4, []);
|
|
2477
2477
|
const poolAddress = this.safeString(result, 5);
|
|
2478
2478
|
const address = (poolAddress === undefined) ? this.safeString(result, 4) : poolAddress;
|
|
2479
2479
|
const tag = (poolAddress === undefined) ? undefined : this.safeString(result, 4);
|
|
@@ -2569,7 +2569,7 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
2569
2569
|
let network = undefined;
|
|
2570
2570
|
let comment = undefined;
|
|
2571
2571
|
if (transactionLength === 8) {
|
|
2572
|
-
const data = this.
|
|
2572
|
+
const data = this.safeList(transaction, 4, []);
|
|
2573
2573
|
timestamp = this.safeInteger(transaction, 0);
|
|
2574
2574
|
if (currency !== undefined) {
|
|
2575
2575
|
code = currency['code'];
|
|
@@ -2726,9 +2726,9 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
2726
2726
|
//
|
|
2727
2727
|
const result = {};
|
|
2728
2728
|
const fiat = this.safeDict(this.options, 'fiat', {});
|
|
2729
|
-
const feeData = this.
|
|
2730
|
-
const makerData = this.
|
|
2731
|
-
const takerData = this.
|
|
2729
|
+
const feeData = this.safeList(response, 4, []);
|
|
2730
|
+
const makerData = this.safeList(feeData, 0, []);
|
|
2731
|
+
const takerData = this.safeList(feeData, 1, []);
|
|
2732
2732
|
const makerFee = this.safeNumber(makerData, 0);
|
|
2733
2733
|
const makerFeeFiat = this.safeNumber(makerData, 2);
|
|
2734
2734
|
const makerFeeDeriv = this.safeNumber(makerData, 5);
|
|
@@ -2846,8 +2846,8 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
2846
2846
|
// if not provided explicitly we will try to match using the currency name
|
|
2847
2847
|
const network = this.safeString(params, 'network', code);
|
|
2848
2848
|
params = this.omit(params, 'network');
|
|
2849
|
-
const currencyNetworks = this.
|
|
2850
|
-
const currencyNetwork = this.
|
|
2849
|
+
const currencyNetworks = this.safeDict(currency, 'networks', {});
|
|
2850
|
+
const currencyNetwork = this.safeDict(currencyNetworks, network);
|
|
2851
2851
|
const networkId = this.safeString(currencyNetwork, 'id');
|
|
2852
2852
|
if (networkId === undefined) {
|
|
2853
2853
|
throw new errors.ArgumentsRequired(this.id + " withdraw() could not find a network for '" + code + "'. You can specify it by providing the 'network' value inside params");
|
|
@@ -2863,7 +2863,7 @@ class bitfinex extends bitfinex$1["default"] {
|
|
|
2863
2863
|
if (tag !== undefined) {
|
|
2864
2864
|
request['payment_id'] = tag;
|
|
2865
2865
|
}
|
|
2866
|
-
const withdrawOptions = this.
|
|
2866
|
+
const withdrawOptions = this.safeDict(this.options, 'withdraw', {});
|
|
2867
2867
|
const includeFee = this.safeBool(withdrawOptions, 'includeFee', false);
|
|
2868
2868
|
if (includeFee === true) {
|
|
2869
2869
|
request['fee_deduct'] = 1;
|