Releases: TA-Lib/ta-lib-python
Release list
v0.8.1
-
[CHANGE]:
talib.streamis now the real streaming API of TA-Lib C 0.8.1:stream.SMA(close)returns a handle, not a value.handle.valueis the value at the last history bar,handle.update(bar)costs O(1) and returns that bar's value,handle.peek(bar)evaluates a forming bar without committing it, andhandle.copy()forks it.stream.SMA.open_and_fill()returns the handle and the Function API's series in one pass. A multi-output function answers with the same tuple the Function API returns. The old last-value functions --talib.stream.SMA,talib.stream_SMA, and their_ta_lib.pyistubs -- are gone;talib/stream.pyitypes the handles instead.Migrating is
stream.X(...)->stream.X(...).value, and the compiler cannot find the sites for you:if stream.CDLDOJI(o, h, l, c):used to test the pattern and now tests a handle, which is always true. -
[NEW]:
talib.InsufficientHistory, raised when a stream is opened with too little history. It is the library's one recoverable error, so it is catchable on its own rather than as a bareException. -
[FIX]:
help(talib.SUPERTREND)and theabstractstub named the outputsrealandinteger; they aresupertrendandtrend, the namesabstract.Function('SUPERTREND').output_namesalready reported. -
[FIX]: An empty array given to a function whose lookback is zero, such as
talib.ACOSortalib.MA(x, timeperiod=1), made TA-Lib read and write one element outside the buffers, which could crash the interpreter later or corrupt memory silently. An empty input now returns empty outputs without calling TA-Lib, whatever the function and its parameters. The bug dates from 0.4.27.
v0.8.0
-
[NEW]: Support TA-Lib C 0.8.1, which is now the minimum required version.
-
[NEW]: The 40 functions TA-Lib C added since 0.7.1: AC, ADR, AO, CMF, CMOU, COPPOCK, CUMSUM, CVI, DONCHIAN, DPO, EFI, ER, ERI, FOSC, FRACTAL, HA, HMA, KC, KDJ, MARKETFI, MASSI, NVI, PERCENTILE, PERCENTRANK, PVI, PVO, PVT, QSTICK, RMA, RVI, RVOL, SMI, SUPERTREND, TSI, VHF, VORTEX, VWAP, VWMA, WAD, ZLEMA.
-
[NEW]: New moving averages:
MA_Type.HMA,MA_Type.DISABLED,MA_Type.DEFAULT,MA_Type.ZLEMAandMA_Type.RMA. -
[NEW]:
set_unstable_period()andget_unstable_period()accept'RMA','HA'and'RVI'. -
[FIX]:
abstractraisedKeyErroron function and output flags added after this wrapper was written; unknown flag bits are now ignored. -
[FIX]: A moving-average parameter not spelled exactly
matype--KDJ'sslowk_matype-- defaulted to SMA rather than to the function's own documented default. -
[FIX]: An
integeroutput is documented as the candlestick -100/0/100 convention only for candlestick functions;SUPERTREND's is a trend direction. -
[CHANGE]:
APOandPPOnow defaultmatypeto EMA, andBBANDSdefaultstimeperiodto 20, following TA-Lib C 0.8.1. -
[FIX]:
set_unstable_period()targeted the wrong function for every id afterIMI(e.g.'RSI'setPLUS_DM); ids now come from the C header.'ADXR','MFI'and'STOCHRSI'are no-ops that emit aDeprecationWarning. -
[CHANGE]: Remove the unnecessary
buildruntime dependency andwheelbuild dependency. -
[NEW]: Upgrade to Cython 3.3.0
v0.7.1
v0.7.0
-
[NEW]: Upgrade to latest TA-Lib upstream C library v0.7.1 release
-
[NEW]: Upgrade to Cython 3.2.8
-
[FIX]: Adding ACCBANDS, AVGDEV, IMI to get_func_groups()
-
[FIX]: Adding ACCBANDS, AVGDEV, IMI to docs pages
-
[NEW]: Adding an
abstract.pyifor typing