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/bitfinex.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export default class bitfinex extends Exchange {
|
|
|
18
18
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
19
19
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
20
20
|
*/
|
|
21
|
-
fetchStatus(params?:
|
|
21
|
+
fetchStatus(params?: Dict): Promise<Status>;
|
|
22
22
|
/**
|
|
23
23
|
* @method
|
|
24
24
|
* @name bitfinex#fetchMarkets
|
|
@@ -27,7 +27,7 @@ export default class bitfinex extends Exchange {
|
|
|
27
27
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
28
28
|
* @returns {object[]} an array of objects representing market data
|
|
29
29
|
*/
|
|
30
|
-
fetchMarkets(params?:
|
|
30
|
+
fetchMarkets(params?: Dict): Promise<Market[]>;
|
|
31
31
|
/**
|
|
32
32
|
* @method
|
|
33
33
|
* @name bitfinex#fetchCurrencies
|
|
@@ -36,9 +36,9 @@ export default class bitfinex extends Exchange {
|
|
|
36
36
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
37
37
|
* @returns {object} an associative dictionary of currencies
|
|
38
38
|
*/
|
|
39
|
-
fetchCurrencies(params?:
|
|
40
|
-
parseCurrenciesCustom(ids: any, indexed:
|
|
41
|
-
parseCurrencyCustom(id: any, indexed:
|
|
39
|
+
fetchCurrencies(params?: Dict): Promise<Currencies>;
|
|
40
|
+
parseCurrenciesCustom(ids: any[], indexed: Dict, indexedNetworks: Dict): Dict;
|
|
41
|
+
parseCurrencyCustom(id: any, indexed: Dict, indexedNetworks: Dict): Currency;
|
|
42
42
|
/**
|
|
43
43
|
* @method
|
|
44
44
|
* @name bitfinex#fetchBalance
|
|
@@ -47,7 +47,7 @@ export default class bitfinex extends Exchange {
|
|
|
47
47
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
48
48
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
49
49
|
*/
|
|
50
|
-
fetchBalance(params?:
|
|
50
|
+
fetchBalance(params?: Dict): Promise<Balances>;
|
|
51
51
|
/**
|
|
52
52
|
* @method
|
|
53
53
|
* @name bitfinex#transfer
|
|
@@ -60,10 +60,10 @@ export default class bitfinex extends Exchange {
|
|
|
60
60
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
61
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
62
62
|
*/
|
|
63
|
-
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?:
|
|
63
|
+
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: Dict): Promise<TransferEntry>;
|
|
64
64
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
65
65
|
parseTransferStatus(status: Str): Str;
|
|
66
|
-
convertDerivativesId(currency:
|
|
66
|
+
convertDerivativesId(currency: Dict, type: string): Str;
|
|
67
67
|
/**
|
|
68
68
|
* @method
|
|
69
69
|
* @name bitfinex#fetchOrderBook
|
|
@@ -74,7 +74,7 @@ export default class bitfinex extends Exchange {
|
|
|
74
74
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
75
75
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
76
76
|
*/
|
|
77
|
-
fetchOrderBook(symbol: string, limit?: Int, params?:
|
|
77
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
|
|
78
78
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
79
79
|
/**
|
|
80
80
|
* @method
|
|
@@ -85,7 +85,7 @@ export default class bitfinex extends Exchange {
|
|
|
85
85
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
86
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
87
87
|
*/
|
|
88
|
-
fetchTickers(symbols?: Strings, params?:
|
|
88
|
+
fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
|
|
89
89
|
/**
|
|
90
90
|
* @method
|
|
91
91
|
* @name bitfinex#fetchTicker
|
|
@@ -95,7 +95,7 @@ export default class bitfinex extends Exchange {
|
|
|
95
95
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
96
96
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
97
97
|
*/
|
|
98
|
-
fetchTicker(symbol: string, params?:
|
|
98
|
+
fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
|
|
99
99
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
100
100
|
/**
|
|
101
101
|
* @method
|
|
@@ -110,7 +110,7 @@ export default class bitfinex extends Exchange {
|
|
|
110
110
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
111
111
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
112
112
|
*/
|
|
113
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?:
|
|
113
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
114
114
|
/**
|
|
115
115
|
* @method
|
|
116
116
|
* @name bitfinex#fetchOHLCV
|
|
@@ -125,13 +125,13 @@ export default class bitfinex extends Exchange {
|
|
|
125
125
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
126
126
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
127
127
|
*/
|
|
128
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
128
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
|
|
129
129
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
130
130
|
parseOrderStatus(status: Str): string | undefined;
|
|
131
|
-
parseOrderFlags(flags:
|
|
132
|
-
parseTimeInForce(orderType:
|
|
131
|
+
parseOrderFlags(flags: Str): any[] | undefined;
|
|
132
|
+
parseTimeInForce(orderType: Str): string;
|
|
133
133
|
parseOrder(order: Dict, market?: Market): Order;
|
|
134
|
-
createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?:
|
|
134
|
+
createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): Dict;
|
|
135
135
|
/**
|
|
136
136
|
* @method
|
|
137
137
|
* @name bitfinex#createOrder
|
|
@@ -154,7 +154,7 @@ export default class bitfinex extends Exchange {
|
|
|
154
154
|
* @param {string} [params.trailingAmount] *swap only* the quote amount to trail away from the current market price
|
|
155
155
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
156
156
|
*/
|
|
157
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
157
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
|
|
158
158
|
/**
|
|
159
159
|
* @method
|
|
160
160
|
* @name bitfinex#createOrders
|
|
@@ -164,7 +164,7 @@ export default class bitfinex extends Exchange {
|
|
|
164
164
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
165
165
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
166
166
|
*/
|
|
167
|
-
createOrders(orders: OrderRequest[], params?:
|
|
167
|
+
createOrders(orders: OrderRequest[], params?: Dict): Promise<Order[]>;
|
|
168
168
|
/**
|
|
169
169
|
* @method
|
|
170
170
|
* @name bitfinex#cancelAllOrders
|
|
@@ -174,7 +174,7 @@ export default class bitfinex extends Exchange {
|
|
|
174
174
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
175
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
176
176
|
*/
|
|
177
|
-
cancelAllOrders(symbol?: Str, params?:
|
|
177
|
+
cancelAllOrders(symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
178
178
|
/**
|
|
179
179
|
* @method
|
|
180
180
|
* @name bitfinex#cancelOrder
|
|
@@ -185,7 +185,7 @@ export default class bitfinex extends Exchange {
|
|
|
185
185
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
186
186
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
187
187
|
*/
|
|
188
|
-
cancelOrder(id: string, symbol?: Str, params?:
|
|
188
|
+
cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
189
189
|
/**
|
|
190
190
|
* @method
|
|
191
191
|
* @name bitfinex#cancelOrders
|
|
@@ -196,7 +196,7 @@ export default class bitfinex extends Exchange {
|
|
|
196
196
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
197
197
|
* @returns {object} an array of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
198
198
|
*/
|
|
199
|
-
cancelOrders(ids: string[], symbol?: Str, params?:
|
|
199
|
+
cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
200
200
|
/**
|
|
201
201
|
* @method
|
|
202
202
|
* @name bitfinex#fetchOpenOrder
|
|
@@ -208,7 +208,7 @@ export default class bitfinex extends Exchange {
|
|
|
208
208
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
209
209
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
210
210
|
*/
|
|
211
|
-
fetchOpenOrder(id: string, symbol?: Str, params?:
|
|
211
|
+
fetchOpenOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
212
212
|
/**
|
|
213
213
|
* @method
|
|
214
214
|
* @name bitfinex#fetchClosedOrder
|
|
@@ -220,7 +220,7 @@ export default class bitfinex extends Exchange {
|
|
|
220
220
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
221
221
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
222
222
|
*/
|
|
223
|
-
fetchClosedOrder(id: string, symbol?: Str, params?:
|
|
223
|
+
fetchClosedOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
224
224
|
/**
|
|
225
225
|
* @method
|
|
226
226
|
* @name bitfinex#fetchOpenOrders
|
|
@@ -233,7 +233,7 @@ export default class bitfinex extends Exchange {
|
|
|
233
233
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
234
234
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
235
235
|
*/
|
|
236
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
236
|
+
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
237
237
|
/**
|
|
238
238
|
* @method
|
|
239
239
|
* @name bitfinex#fetchClosedOrders
|
|
@@ -248,7 +248,7 @@ export default class bitfinex extends Exchange {
|
|
|
248
248
|
* @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)
|
|
249
249
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
250
250
|
*/
|
|
251
|
-
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
251
|
+
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
252
252
|
/**
|
|
253
253
|
* @method
|
|
254
254
|
* @name bitfinex#fetchOrderTrades
|
|
@@ -261,7 +261,7 @@ export default class bitfinex extends Exchange {
|
|
|
261
261
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
262
262
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
263
263
|
*/
|
|
264
|
-
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?:
|
|
264
|
+
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
265
265
|
/**
|
|
266
266
|
* @method
|
|
267
267
|
* @name bitfinex#fetchMyTrades
|
|
@@ -274,7 +274,7 @@ export default class bitfinex extends Exchange {
|
|
|
274
274
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
275
275
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
276
276
|
*/
|
|
277
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
277
|
+
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
278
278
|
/**
|
|
279
279
|
* @method
|
|
280
280
|
* @name bitfinex#createDepositAddress
|
|
@@ -284,7 +284,7 @@ export default class bitfinex extends Exchange {
|
|
|
284
284
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
285
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
286
286
|
*/
|
|
287
|
-
createDepositAddress(code: string, params?:
|
|
287
|
+
createDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
288
288
|
/**
|
|
289
289
|
* @method
|
|
290
290
|
* @name bitfinex#fetchDepositAddress
|
|
@@ -294,7 +294,7 @@ export default class bitfinex extends Exchange {
|
|
|
294
294
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
295
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
296
296
|
*/
|
|
297
|
-
fetchDepositAddress(code: string, params?:
|
|
297
|
+
fetchDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
298
298
|
parseTransactionStatus(status: Str): Str;
|
|
299
299
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
300
300
|
/**
|
|
@@ -305,7 +305,7 @@ export default class bitfinex extends Exchange {
|
|
|
305
305
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
306
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
307
307
|
*/
|
|
308
|
-
fetchTradingFees(params?:
|
|
308
|
+
fetchTradingFees(params?: Dict): Promise<TradingFees>;
|
|
309
309
|
/**
|
|
310
310
|
* @method
|
|
311
311
|
* @name bitfinex#fetchDepositsWithdrawals
|
|
@@ -318,7 +318,7 @@ export default class bitfinex extends Exchange {
|
|
|
318
318
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
319
319
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
320
320
|
*/
|
|
321
|
-
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
321
|
+
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
322
322
|
/**
|
|
323
323
|
* @method
|
|
324
324
|
* @name bitfinex#withdraw
|
|
@@ -331,7 +331,7 @@ export default class bitfinex extends Exchange {
|
|
|
331
331
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
332
332
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
333
333
|
*/
|
|
334
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?:
|
|
334
|
+
withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
|
|
335
335
|
/**
|
|
336
336
|
* @method
|
|
337
337
|
* @name bitfinex#fetchPositions
|
|
@@ -341,16 +341,11 @@ export default class bitfinex extends Exchange {
|
|
|
341
341
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
342
342
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
343
343
|
*/
|
|
344
|
-
fetchPositions(symbols?: Strings, params?:
|
|
344
|
+
fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
|
|
345
345
|
parsePosition(position: Dict, market?: Market): Position;
|
|
346
346
|
nonce(): number;
|
|
347
|
-
sign(path: any, api?:
|
|
348
|
-
|
|
349
|
-
method: string;
|
|
350
|
-
body: Str;
|
|
351
|
-
headers: NullableDict;
|
|
352
|
-
};
|
|
353
|
-
handleErrors(statusCode: int, statusText: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
|
|
347
|
+
sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
|
|
348
|
+
handleErrors(statusCode: int, statusText: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
|
|
354
349
|
parseLedgerEntryType(type: Str): string | undefined;
|
|
355
350
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
356
351
|
/**
|
|
@@ -366,7 +361,7 @@ export default class bitfinex extends Exchange {
|
|
|
366
361
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
367
362
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
|
|
368
363
|
*/
|
|
369
|
-
fetchLedger(code?: Str, since?: Int, limit?: Int, params?:
|
|
364
|
+
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<LedgerEntry[]>;
|
|
370
365
|
/**
|
|
371
366
|
* @method
|
|
372
367
|
* @name bitfinex#fetchFundingRates
|
|
@@ -376,7 +371,7 @@ export default class bitfinex extends Exchange {
|
|
|
376
371
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
377
372
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
378
373
|
*/
|
|
379
|
-
fetchFundingRates(symbols?: Strings, params?:
|
|
374
|
+
fetchFundingRates(symbols?: Strings, params?: Dict): Promise<FundingRates>;
|
|
380
375
|
/**
|
|
381
376
|
* @method
|
|
382
377
|
* @name bitfinex#fetchFundingRateHistory
|
|
@@ -390,7 +385,7 @@ export default class bitfinex extends Exchange {
|
|
|
390
385
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
391
386
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
392
387
|
*/
|
|
393
|
-
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
388
|
+
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingRateHistory[]>;
|
|
394
389
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
395
390
|
parseFundingRateHistory(contract: any, market?: Market): {
|
|
396
391
|
info: any;
|
|
@@ -420,7 +415,7 @@ export default class bitfinex extends Exchange {
|
|
|
420
415
|
* @param {object} [params] exchange specific parameters
|
|
421
416
|
* @returns {object[]} a list of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
422
417
|
*/
|
|
423
|
-
fetchOpenInterests(symbols?: Strings, params?:
|
|
418
|
+
fetchOpenInterests(symbols?: Strings, params?: Dict): Promise<OpenInterests>;
|
|
424
419
|
/**
|
|
425
420
|
* @method
|
|
426
421
|
* @name bitfinex#fetchOpenInterest
|
|
@@ -430,7 +425,7 @@ export default class bitfinex extends Exchange {
|
|
|
430
425
|
* @param {object} [params] exchange specific parameters
|
|
431
426
|
* @returns {object} an [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
432
427
|
*/
|
|
433
|
-
fetchOpenInterest(symbol: string, params?:
|
|
428
|
+
fetchOpenInterest(symbol: string, params?: Dict): Promise<OpenInterest>;
|
|
434
429
|
/**
|
|
435
430
|
* @method
|
|
436
431
|
* @name bitfinex#fetchOpenInterestHistory
|
|
@@ -445,7 +440,7 @@ export default class bitfinex extends Exchange {
|
|
|
445
440
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
446
441
|
* @returns An array of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
447
442
|
*/
|
|
448
|
-
fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
443
|
+
fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OpenInterest[]>;
|
|
449
444
|
parseOpenInterest(interest: any, market?: Market): OpenInterest;
|
|
450
445
|
/**
|
|
451
446
|
* @method
|
|
@@ -460,7 +455,7 @@ export default class bitfinex extends Exchange {
|
|
|
460
455
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
461
456
|
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
462
457
|
*/
|
|
463
|
-
fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?:
|
|
458
|
+
fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Liquidation[]>;
|
|
464
459
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|
|
465
460
|
/**
|
|
466
461
|
* @method
|
|
@@ -472,8 +467,8 @@ export default class bitfinex extends Exchange {
|
|
|
472
467
|
* @param {object} [params] parameters specific to the exchange API endpoint
|
|
473
468
|
* @returns {object} A [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
474
469
|
*/
|
|
475
|
-
setMargin(symbol: string, amount: number, params?:
|
|
476
|
-
parseMarginModification(data:
|
|
470
|
+
setMargin(symbol: string, amount: number, params?: Dict): Promise<MarginModification>;
|
|
471
|
+
parseMarginModification(data: Dict, market?: Market): MarginModification;
|
|
477
472
|
/**
|
|
478
473
|
* @method
|
|
479
474
|
* @name bitfinex#fetchOrder
|
|
@@ -485,7 +480,7 @@ export default class bitfinex extends Exchange {
|
|
|
485
480
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
486
481
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
487
482
|
*/
|
|
488
|
-
fetchOrder(id: string, symbol?: Str, params?:
|
|
483
|
+
fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
489
484
|
/**
|
|
490
485
|
* @method
|
|
491
486
|
* @name bitfinex#editOrder
|
|
@@ -507,5 +502,5 @@ export default class bitfinex extends Exchange {
|
|
|
507
502
|
* @param {float} [params.trailingAmount] *swap only* the quote amount to trail away from the current market price
|
|
508
503
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
509
504
|
*/
|
|
510
|
-
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?:
|
|
505
|
+
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: Dict): Promise<Order>;
|
|
511
506
|
}
|
package/js/src/bitfinex.js
CHANGED
|
@@ -1116,7 +1116,7 @@ export default class bitfinex extends Exchange {
|
|
|
1116
1116
|
//
|
|
1117
1117
|
const result = this.safeList(transfer, 'result');
|
|
1118
1118
|
const timestamp = this.safeInteger(result, 0);
|
|
1119
|
-
const info = this.
|
|
1119
|
+
const info = this.safeList(result, 4);
|
|
1120
1120
|
const fromAccount = this.safeString(info, 1);
|
|
1121
1121
|
const toAccount = this.safeString(info, 2);
|
|
1122
1122
|
const currencyId = this.safeString(info, 5);
|
|
@@ -1147,9 +1147,9 @@ export default class bitfinex extends Exchange {
|
|
|
1147
1147
|
// "id": "fUSTF0",
|
|
1148
1148
|
// "code": "USTF0",
|
|
1149
1149
|
// "info": [ 'USTF0', [], [], [], [ "USTF0", "UST" ] ],
|
|
1150
|
-
const info = this.
|
|
1150
|
+
const info = this.safeList(currency, 'info');
|
|
1151
1151
|
const transferId = this.safeString(info, 0);
|
|
1152
|
-
const underlying = this.
|
|
1152
|
+
const underlying = this.safeList(info, 4, []);
|
|
1153
1153
|
let currencyId = undefined;
|
|
1154
1154
|
if (type === 'derivatives') {
|
|
1155
1155
|
currencyId = this.safeString(underlying, 0, transferId);
|
|
@@ -1655,7 +1655,7 @@ export default class bitfinex extends Exchange {
|
|
|
1655
1655
|
// '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.
|
|
1656
1656
|
// '524288': 'No Var Rates' // Excludes variable rate funding offers from matching against this order, if on margin
|
|
1657
1657
|
};
|
|
1658
|
-
return this.
|
|
1658
|
+
return this.safeList(flagValues, flags, undefined);
|
|
1659
1659
|
}
|
|
1660
1660
|
parseTimeInForce(orderType) {
|
|
1661
1661
|
const orderTypes = {
|
|
@@ -1679,7 +1679,7 @@ export default class bitfinex extends Exchange {
|
|
|
1679
1679
|
const amount = Precise.stringAbs(signedAmount);
|
|
1680
1680
|
const side = Precise.stringLt(signedAmount, '0') ? 'sell' : 'buy';
|
|
1681
1681
|
const orderType = this.safeString(orderList, 8);
|
|
1682
|
-
const type = this.safeString(this.
|
|
1682
|
+
const type = this.safeString(this.safeDict(this.options, 'exchangeTypes'), orderType);
|
|
1683
1683
|
const timeInForce = this.parseTimeInForce(orderType);
|
|
1684
1684
|
const rawFlags = this.safeString(orderList, 12);
|
|
1685
1685
|
const flags = this.parseOrderFlags(rawFlags);
|
|
@@ -2441,8 +2441,8 @@ export default class bitfinex extends Exchange {
|
|
|
2441
2441
|
const currency = this.currency(code);
|
|
2442
2442
|
// if not provided explicitly we will try to match using the currency name
|
|
2443
2443
|
const network = this.safeString(params, 'network', code);
|
|
2444
|
-
const currencyNetworks = this.
|
|
2445
|
-
const currencyNetwork = this.
|
|
2444
|
+
const currencyNetworks = this.safeDict(currency, 'networks', {});
|
|
2445
|
+
const currencyNetwork = this.safeDict(currencyNetworks, network);
|
|
2446
2446
|
const networkId = this.safeString(currencyNetwork, 'id');
|
|
2447
2447
|
if (networkId === undefined) {
|
|
2448
2448
|
throw new ArgumentsRequired(this.id + " fetchDepositAddress() could not find a network for '" + code + "'. You can specify it by providing the 'network' value inside params");
|
|
@@ -2474,7 +2474,7 @@ export default class bitfinex extends Exchange {
|
|
|
2474
2474
|
// "success", // TEXT Text of the notification
|
|
2475
2475
|
// ]
|
|
2476
2476
|
//
|
|
2477
|
-
const result = this.
|
|
2477
|
+
const result = this.safeList(response, 4, []);
|
|
2478
2478
|
const poolAddress = this.safeString(result, 5);
|
|
2479
2479
|
const address = (poolAddress === undefined) ? this.safeString(result, 4) : poolAddress;
|
|
2480
2480
|
const tag = (poolAddress === undefined) ? undefined : this.safeString(result, 4);
|
|
@@ -2570,7 +2570,7 @@ export default class bitfinex extends Exchange {
|
|
|
2570
2570
|
let network = undefined;
|
|
2571
2571
|
let comment = undefined;
|
|
2572
2572
|
if (transactionLength === 8) {
|
|
2573
|
-
const data = this.
|
|
2573
|
+
const data = this.safeList(transaction, 4, []);
|
|
2574
2574
|
timestamp = this.safeInteger(transaction, 0);
|
|
2575
2575
|
if (currency !== undefined) {
|
|
2576
2576
|
code = currency['code'];
|
|
@@ -2727,9 +2727,9 @@ export default class bitfinex extends Exchange {
|
|
|
2727
2727
|
//
|
|
2728
2728
|
const result = {};
|
|
2729
2729
|
const fiat = this.safeDict(this.options, 'fiat', {});
|
|
2730
|
-
const feeData = this.
|
|
2731
|
-
const makerData = this.
|
|
2732
|
-
const takerData = this.
|
|
2730
|
+
const feeData = this.safeList(response, 4, []);
|
|
2731
|
+
const makerData = this.safeList(feeData, 0, []);
|
|
2732
|
+
const takerData = this.safeList(feeData, 1, []);
|
|
2733
2733
|
const makerFee = this.safeNumber(makerData, 0);
|
|
2734
2734
|
const makerFeeFiat = this.safeNumber(makerData, 2);
|
|
2735
2735
|
const makerFeeDeriv = this.safeNumber(makerData, 5);
|
|
@@ -2847,8 +2847,8 @@ export default class bitfinex extends Exchange {
|
|
|
2847
2847
|
// if not provided explicitly we will try to match using the currency name
|
|
2848
2848
|
const network = this.safeString(params, 'network', code);
|
|
2849
2849
|
params = this.omit(params, 'network');
|
|
2850
|
-
const currencyNetworks = this.
|
|
2851
|
-
const currencyNetwork = this.
|
|
2850
|
+
const currencyNetworks = this.safeDict(currency, 'networks', {});
|
|
2851
|
+
const currencyNetwork = this.safeDict(currencyNetworks, network);
|
|
2852
2852
|
const networkId = this.safeString(currencyNetwork, 'id');
|
|
2853
2853
|
if (networkId === undefined) {
|
|
2854
2854
|
throw new ArgumentsRequired(this.id + " withdraw() could not find a network for '" + code + "'. You can specify it by providing the 'network' value inside params");
|
|
@@ -2864,7 +2864,7 @@ export default class bitfinex extends Exchange {
|
|
|
2864
2864
|
if (tag !== undefined) {
|
|
2865
2865
|
request['payment_id'] = tag;
|
|
2866
2866
|
}
|
|
2867
|
-
const withdrawOptions = this.
|
|
2867
|
+
const withdrawOptions = this.safeDict(this.options, 'withdraw', {});
|
|
2868
2868
|
const includeFee = this.safeBool(withdrawOptions, 'includeFee', false);
|
|
2869
2869
|
if (includeFee === true) {
|
|
2870
2870
|
request['fee_deduct'] = 1;
|
package/js/src/bitflyer.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export default class bitflyer extends Exchange {
|
|
|
16
16
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
17
17
|
* @returns {object[]} an array of objects representing market data
|
|
18
18
|
*/
|
|
19
|
-
fetchMarkets(params?:
|
|
19
|
+
fetchMarkets(params?: Dict): Promise<Market[]>;
|
|
20
20
|
parseBalance(response: any): Balances;
|
|
21
21
|
/**
|
|
22
22
|
* @method
|
|
@@ -26,7 +26,7 @@ export default class bitflyer extends Exchange {
|
|
|
26
26
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
27
27
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
28
28
|
*/
|
|
29
|
-
fetchBalance(params?:
|
|
29
|
+
fetchBalance(params?: Dict): Promise<Balances>;
|
|
30
30
|
/**
|
|
31
31
|
* @method
|
|
32
32
|
* @name bitflyer#fetchOrderBook
|
|
@@ -37,7 +37,7 @@ export default class bitflyer extends Exchange {
|
|
|
37
37
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
38
38
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
39
39
|
*/
|
|
40
|
-
fetchOrderBook(symbol: string, limit?: Int, params?:
|
|
40
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
|
|
41
41
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
42
42
|
/**
|
|
43
43
|
* @method
|
|
@@ -48,7 +48,7 @@ export default class bitflyer extends Exchange {
|
|
|
48
48
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
49
49
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
50
50
|
*/
|
|
51
|
-
fetchTicker(symbol: string, params?:
|
|
51
|
+
fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
|
|
52
52
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
53
53
|
/**
|
|
54
54
|
* @method
|
|
@@ -61,7 +61,7 @@ export default class bitflyer extends Exchange {
|
|
|
61
61
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
62
62
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
63
63
|
*/
|
|
64
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?:
|
|
64
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
65
65
|
/**
|
|
66
66
|
* @method
|
|
67
67
|
* @name bitflyer#fetchTradingFee
|
|
@@ -71,7 +71,7 @@ export default class bitflyer extends Exchange {
|
|
|
71
71
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
72
72
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
73
73
|
*/
|
|
74
|
-
fetchTradingFee(symbol: string, params?:
|
|
74
|
+
fetchTradingFee(symbol: string, params?: Dict): Promise<TradingFeeInterface>;
|
|
75
75
|
/**
|
|
76
76
|
* @method
|
|
77
77
|
* @name bitflyer#createOrder
|
|
@@ -85,7 +85,7 @@ export default class bitflyer extends Exchange {
|
|
|
85
85
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
86
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
87
87
|
*/
|
|
88
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
88
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
|
|
89
89
|
/**
|
|
90
90
|
* @method
|
|
91
91
|
* @name bitflyer#cancelOrder
|
|
@@ -96,7 +96,7 @@ export default class bitflyer extends Exchange {
|
|
|
96
96
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
97
97
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
98
98
|
*/
|
|
99
|
-
cancelOrder(id: string, symbol?: Str, params?:
|
|
99
|
+
cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
100
100
|
parseOrderStatus(status: Str): Str;
|
|
101
101
|
parseOrder(order: Dict, market?: Market): Order;
|
|
102
102
|
/**
|
|
@@ -110,7 +110,7 @@ export default class bitflyer extends Exchange {
|
|
|
110
110
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111
111
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
112
112
|
*/
|
|
113
|
-
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
113
|
+
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
114
114
|
/**
|
|
115
115
|
* @method
|
|
116
116
|
* @name bitflyer#fetchOpenOrders
|
|
@@ -122,7 +122,7 @@ export default class bitflyer extends Exchange {
|
|
|
122
122
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123
123
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
124
124
|
*/
|
|
125
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
125
|
+
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
126
126
|
/**
|
|
127
127
|
* @method
|
|
128
128
|
* @name bitflyer#fetchClosedOrders
|
|
@@ -134,7 +134,7 @@ export default class bitflyer extends Exchange {
|
|
|
134
134
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
135
135
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
136
136
|
*/
|
|
137
|
-
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
137
|
+
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
138
138
|
/**
|
|
139
139
|
* @method
|
|
140
140
|
* @name bitflyer#fetchOrder
|
|
@@ -145,7 +145,7 @@ export default class bitflyer extends Exchange {
|
|
|
145
145
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
146
146
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
147
147
|
*/
|
|
148
|
-
fetchOrder(id: string, symbol?: Str, params?:
|
|
148
|
+
fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
149
149
|
/**
|
|
150
150
|
* @method
|
|
151
151
|
* @name bitflyer#fetchMyTrades
|
|
@@ -157,7 +157,7 @@ export default class bitflyer extends Exchange {
|
|
|
157
157
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
158
158
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
159
159
|
*/
|
|
160
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
160
|
+
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
161
161
|
/**
|
|
162
162
|
* @method
|
|
163
163
|
* @name bitflyer#fetchPositions
|
|
@@ -167,7 +167,7 @@ export default class bitflyer extends Exchange {
|
|
|
167
167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
168
168
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
169
169
|
*/
|
|
170
|
-
fetchPositions(symbols?: Strings, params?:
|
|
170
|
+
fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
|
|
171
171
|
/**
|
|
172
172
|
* @method
|
|
173
173
|
* @name bitflyer#withdraw
|
|
@@ -180,7 +180,7 @@ export default class bitflyer extends Exchange {
|
|
|
180
180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
181
181
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
182
182
|
*/
|
|
183
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?:
|
|
183
|
+
withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
|
|
184
184
|
/**
|
|
185
185
|
* @method
|
|
186
186
|
* @name bitflyer#fetchDeposits
|
|
@@ -192,7 +192,7 @@ export default class bitflyer extends Exchange {
|
|
|
192
192
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
193
193
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
194
194
|
*/
|
|
195
|
-
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?:
|
|
195
|
+
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
196
196
|
/**
|
|
197
197
|
* @method
|
|
198
198
|
* @name bitflyer#fetchWithdrawals
|
|
@@ -204,9 +204,9 @@ export default class bitflyer extends Exchange {
|
|
|
204
204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
205
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
206
206
|
*/
|
|
207
|
-
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
208
|
-
parseDepositStatus(status:
|
|
209
|
-
parseWithdrawalStatus(status:
|
|
207
|
+
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
208
|
+
parseDepositStatus(status: Str): Str;
|
|
209
|
+
parseWithdrawalStatus(status: Str): Str;
|
|
210
210
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
211
211
|
/**
|
|
212
212
|
* @method
|
|
@@ -219,11 +219,6 @@ export default class bitflyer extends Exchange {
|
|
|
219
219
|
*/
|
|
220
220
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
221
221
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
222
|
-
sign(path: any, api?:
|
|
223
|
-
url: string;
|
|
224
|
-
method: string;
|
|
225
|
-
body: Str;
|
|
226
|
-
headers: NullableDict;
|
|
227
|
-
};
|
|
222
|
+
sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
|
|
228
223
|
handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
|
|
229
224
|
}
|