Positions
A position (finance) definition with some good algebraic properties.
Example
Add positions as a dependency of your project.
[]
= "0.1"
# `rust_decimal` is added to make the example code work,
# but optional for using `positions`.
= "1.17.0"
= "1.17.0"
And then, you can try these codes.
use normal;
use dec;
let h1 = normal;
let h2 = normal;
let h3 = normal;
assert_eq!;