value-metrics 0.1.1

Equity valuation ratios: P/E, P/B, earnings yield, EV/EBIT, dividend yield.
Documentation
  • Coverage
  • 100%
    6 out of 6 items documented1 out of 6 items with examples
  • Size
  • Source code size: 4.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 133.09 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • theluckystrike

value-metrics

Core equity valuation ratios used to screen for deep-value stocks: price-to-earnings, price-to-book, earnings yield, EV/EBIT, and dividend yield. Pure Rust, no deps.

The same signals behind the DeepValueRadar value screener.

use value_metrics::*;
let pe = price_to_earnings(100.0, 5.0);   // 20
let ey = earnings_yield(5.0, 100.0);      // 0.05 (1/pe)
let pb = price_to_book(50.0, 25.0);       // 2.0

License: MIT