use-return
Primitive quantitative return vocabulary for RustUse.
use-return stores finite f64 return values and provides tiny helpers for simple and log returns from start/end prices.
Example
use ;
let simple = from_prices?;
let log = from_prices?;
let kind: ReturnKind = "simple".parse?;
assert!;
assert!;
assert_eq!;
# Ok::
Scope
Use this crate for return values and obvious price-to-return calculations. It does not implement performance analytics, fee/tax accounting, advice, or strategy logic.
License
Licensed under either MIT or Apache-2.0.