Repository navigation
v0.7.0
Highlights
- OR and nested filters (#62):
ss.where((StockField.SECTOR == 'Finance') | (StockField.SECTOR == 'Utilities')) - New filter operations (#63):
has(),has_none_of(),is_empty(),not_empty(),in_day_range(),above_pct(),below_pct(),within_pct(),not_within_pct(),match() - 4 new screeners:
ETFScreener(#69): ETFs and ETNs sorted by AUM, with readable classification fields (ASSET_CLASS_NAME,FOCUS_NAME...)EconomicsScreener(#66): 15,000+ economic indicators by country and categoryIndexScreener(#67): stock indices, CFDs and crypto market-cap indicesGovernmentBondScreenerandget_yield_curve("US")(#68)
- Presets and calendars (#70):
StockScreener().set_preset(Preset.GAINERS),get_earnings_calendar(),get_dividends_calendar(),get_ipo_calendar() set_currency("eur")(#71): fundamentals in one currency- Scanner helpers (#72):
get_symbol(),get_enum_values(),get_metainfo()/Screener.metainfo()
Fields (#64)
The field enums were regenerated from TradingView's field catalogue by scripts/generate_fields.py. A field is only added when it returns data on real symbols.
- Added:
- Stocks: analyst estimates (FQ/FY/FH/NTM), forward multiples, IPO data, earnings and revenue history
- Coin: funding rate, open interest and liquidations
- Bonds: duration, convexity, spreads, YTM/YTW and Moody's/Fitch ratings
- All price markets: 17 candlestick patterns and absolute performance
- Deprecated: fields that return no data. They still work, but
select()andwhere()raise aDeprecationWarning, andselect_all()leaves them out. Full lists: Field Changes. with_history()now accepts 26 more indicators (#65).
Changes to note
StockField.DIVIDEND_YIELD_FYpointed to a field with no data; it now points toDIVIDENDS_YIELD_FY.StockScreener.set_markets()returns the screener, so it can be chained.- Filters on the same field are only merged into one
in_rangefor the original comparison operations.
Also
- MCP server: new asset types (etf, economics, index, government_bond), a
presetoption, andget_calendar,yield_curveandsymbol_datatools. - Code Generator: 10 screener tabs, the new operators, and AND/OR between filters.
- Docs: fixed examples that used non-existent field names or wrong column labels.
Full suite: 290 tests and 2 subtests passed.