Crate paft

Crate paft 

Source
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 need
  • bigdecimal: Change the money backend from rust_decimal to bigdecimal
  • dataframe: enable DataFrame export via Polars helpers
  • panicking-money-ops: opt‑in operator overloading for Money that 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§

pub use error::Error;
pub use error::Result;

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 paft facade crate.
fundamentals
Namespaced access to paft-fundamentals (feature-gated).
market
Namespaced access to paft-market (feature-gated).
money
Namespaced access to paft-money types.
prelude
Frequently used types for convenient imports. Commonly used types for convenient glob import.