Skip to content

v0.7.0

Choose a tag to compare

@deepentropy deepentropy released this 15 Oct 07:27
· 6 commits to main since this release

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 category
    • IndexScreener (#67): stock indices, CFDs and crypto market-cap indices
    • GovernmentBondScreener and get_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() and where() raise a DeprecationWarning, and select_all() leaves them out. Full lists: Field Changes.
  • with_history() now accepts 26 more indicators (#65).

Changes to note

  • StockField.DIVIDEND_YIELD_FY pointed to a field with no data; it now points to DIVIDENDS_YIELD_FY.
  • StockScreener.set_markets() returns the screener, so it can be chained.
  • Filters on the same field are only merged into one in_range for the original comparison operations.

Also

  • MCP server: new asset types (etf, economics, index, government_bond), a preset option, and get_calendar, yield_curve and symbol_data tools.
  • 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.