Expand description
Unified public API for the paft workspace.
This facade crate aggregates the paft ecosystem into a single dependency
with coherent feature flags and a convenient prelude for common imports.
Features
domain,market,fundamentals: opt into domain areas you needbigdecimal: Change the money backend fromrust_decimaltobigdecimaldataframe: enableDataFrameexport via Polars helperspanicking-money-ops: opt‑in operator overloading forMoneythat panics on invalid input
§Quickstart
use paft::prelude::*;
// Construct an instrument with identifiers
let aapl = Instrument::try_new(
"AAPL",
AssetKind::Equity,
Some("BBG000B9XRY4"),
Some("US0378331005"),
Some(Exchange::NASDAQ),
).unwrap();
assert!(aapl.is_globally_identified());
// Build a validated history request
let req = HistoryRequest::try_from_range(Range::M1, Interval::D1).unwrap();
assert_eq!(req.interval(), Interval::D1);See the crate README for installation instructions and feature details.
Re-exports§
Modules§
- aggregates
- Namespaced access to
paft-aggregates(feature-gated). - core
- Namespaced access to
paft-core. - domain
- Namespaced access to
paft-domain(feature-gated). - error
- Unified error types for the
paftfacade crate. - fundamentals
- Namespaced access to
paft-fundamentals(feature-gated). - market
- Namespaced access to
paft-market(feature-gated). - money
- Namespaced access to
paft-moneytypes. - prelude
- Frequently used types for convenient imports. Commonly used types for convenient glob import.