{"library":"stockstats","title":"stockstats","type":"library","description":"A Python library that provides a DataFrame subclass with inline stock statistics support, including common technical indicators (e.g., SMA, EMA, RSI, MACD, Bollinger Bands) and more advanced indicators like Supertrend, Ichimoku Cloud, KST, and PVO. The current version is 0.6.8, with active development on GitHub. Release cadence is irregular, roughly a few releases per year.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install stockstats"],"cli":null},"imports":["from stockstats import StockDataFrame"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/jealous/stockstats","docs":null,"changelog":null,"pypi":"https://pypi.org/project/stockstats/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import yfinance as yf\nfrom stockstats import StockDataFrame\n\n# Download historical data for AAPL\ndf = yf.download('AAPL', start='2023-01-01', end='2023-12-31')\n# Convert to StockDataFrame\nstock = StockDataFrame.retype(df)\n\n# Access RSI (14-day) and MACD\nprint(stock['rsi_14'].tail())\nprint(stock['macd'].tail())","lang":"python","description":"Download stock data with yfinance, convert to StockDataFrame, and compute technical indicators.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}