paft-market
Market data models and request builders for the paft ecosystem.
- Unified market models:
Quote,Candle,HistoryResponse,OptionChain,NewsArticle - Validated builders:
HistoryRequest,SearchRequest - Canonical, serde-stable string forms; optional DataFrame export
- Integrates with
paft-domainandpaft-money
Install
Prefer the facade crate for most applications:
[]
= "0.7.1"
Advanced (direct dependency, minimal):
[]
= { = "0.7.1", = false }
Alternate decimal backend:
[]
= { = "0.7.1", = false, = ["bigdecimal"] }
With DataFrame integration:
[]
= { = "0.7.1", = false, = ["dataframe"] }
Features
bigdecimal: change money backend fromrust_decimaltobigdecimalviapaft-moneydataframe: Polars integration (ToDataFrame/ToDataFrameVec)
Quickstart
use ;
// 1 month of daily candles
let req = try_from_range.unwrap;
assert_eq!;
// Validated instrument search
let search = new.unwrap;
assert_eq!;
Links
- API docs: https://docs.rs/paft-market
- Workspace overview: https://github.com/paft-rs/paft/blob/main/README.md
- License: https://github.com/paft-rs/paft/blob/main/LICENSE