You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2e1b336
Browse filesBrowse the repository at this point in the historyBrowse files
feat(stream): handles over TA-Lib C 0.8.1's streaming API (#757)
talib.stream.SMA(close) returns a handle, not a value: .value is the value at
the last history bar, .update(bar) is O(1) and returns that bar's, .peek(bar)
evaluates a forming bar without committing, .copy() forks it, and
.open_and_fill() returns the handle plus the Function API's series in one pass.
Multi-output functions answer with a named tuple; .out_range and .advance()
carry the C contract's bar range.
BREAKING: talib.stream_X and the old value-returning talib.stream.X are gone,
along with the stream_* stubs in _ta_lib.pyi -- talib/stream.pyi types the
handles instead. Migrating is stream.X(...) -> stream.X(...).value, and the
compiler will not find the sites: `if stream.CDLDOJI(o, h, l, c):` used to test
the pattern and now tests a handle, which is always true.
Adds talib.InsufficientHistory, raised when an open gets too little history.
talib/_stream.pxi and talib/stream.pyi are generated by
tools/generate_stream.py (--stub for the second).
0 commit comments