ta-lib-python
ta-lib-python copied to clipboard
The results obtained by streaming and api are very different
import talib as ta
from talib import stream as ta_stream
close = np.random.random(100)
output = ta.RSI(close, timeperiod=period)
latest = ta_stream.RSI(close, timeperiod=period)
print(output)
print(latest)
print(output[-1] - latest)