#![forbid(unsafe_code)]
#![warn(missing_docs)]
pub mod error;
pub use error::{Error, Result};
pub use paft_utils::MAX_CANONICAL_TOKEN_LEN;
pub mod core {
pub use paft_core::PaftError;
#[cfg(feature = "dataframe")]
pub use paft_utils::dataframe;
}
#[cfg(feature = "domain")]
pub mod domain {
pub use paft_domain::{
AssetKind, CalendarPeriod, Canonical, CanonicalError, DomainError, Exchange, Figi, Horizon,
Instrument, Isin, MAX_CANONICAL_TOKEN_LEN, MarketState, OtherAssetKind, OtherExchange,
OtherHorizon, OtherMarketState, OtherPeriod, PeriodDate, PeriodYear, QuarterOfYear,
ReportingPeriod, StringCode, Symbol, canonicalize,
};
#[cfg(feature = "dataframe")]
pub use paft_domain::{Decimal128Encode, ToDataFrame, ToDataFrameVec};
}
#[cfg(feature = "market")]
pub mod market {
pub use paft_market::error::{self, MarketError};
pub use paft_market::market::{action, news, options, orderbook, quote};
pub use paft_market::requests;
pub use paft_market::responses;
pub use paft_market::{
Action, AdjustmentAnchor, AdjustmentMethod, BookLevel, Candle, CandleUpdate,
CorporateActionAdjustmentCause, CorporateActionAdjustmentCauses, DownloadEntry,
DownloadResponse, GenericBookLevel, GenericCandle, GenericCandleUpdate,
GenericDownloadEntry, GenericDownloadResponse, GenericHistoryResponse, GenericNewsArticle,
GenericOptionChain, GenericOptionContract, GenericOptionUpdate, GenericOrderBook,
GenericQuote, GenericQuoteUpdate, GenericSearchResponse, GenericSearchResult, HistoryFlags,
HistoryMeta, HistoryRequest, HistoryRequestBuilder, HistoryResponse,
HistoryValidationError, Interval, NewsArticle, NewsRequest, NewsTab, Ohlc, OhlcPriceBasis,
OptionChain, OptionChainRequest, OptionContract, OptionContractKey,
OptionExpirationsRequest, OptionExpirationsResponse, OptionGreeks, OptionSide,
OptionUpdate, OrderBook, PriceBasis, Quote, QuoteUpdate, Range, SearchRequest,
SearchRequestBuilder, SearchResponse, SearchResult, TimeSpec,
};
}
pub mod money {
#[cfg(feature = "money-formatting")]
pub use paft_money::LocalizedMoney;
pub use paft_money::{
Currency, CurrencyMetadata, ExchangeRate, IsoCurrency, Locale, MAX_DECIMAL_PRECISION,
MAX_MINOR_UNIT_DECIMALS, MinorUnitError, MonetaryAmount, Money, MoneyError,
MoneyParseError, OtherCurrency, Price, PriceAmount, QuantityAmount,
clear_currency_metadata, currency_metadata, override_currency_metadata,
set_currency_metadata, try_normalize_currency_code,
};
pub use paft_utils::MAX_CANONICAL_TOKEN_LEN;
}
pub use paft_decimal::{
Decimal, DecimalConstraintError, NonNegativeDecimal, PositiveDecimal, Ratio, RoundingStrategy,
};
#[cfg(feature = "dataframe")]
pub use paft_utils::dataframe;
#[cfg(feature = "fundamentals")]
pub mod fundamentals {
pub use paft_fundamentals::{
Address, AnalysisSummary, BalanceSheetRow, Calendar, CashflowRow, CompanyProfile, Earnings,
EarningsEstimate, EarningsQuarter, EarningsQuarterEps, EarningsTrendRow, EarningsYear,
EpsRevisions, EpsTrend, EsgInvolvement, EsgScores, EsgSummary, FundKind, FundProfile,
FundamentalsError, IncomeStatementRow, InsiderPosition, InsiderRosterHolder,
InsiderTransaction, InstitutionalHolder, KeyStatistics, MajorHolder,
NetSharePurchaseActivity, OtherFundKind, OtherInsiderPosition, OtherRecommendationAction,
OtherRecommendationGrade, OtherTransactionType, PriceTarget, Profile, RecommendationAction,
RecommendationGrade, RecommendationRow, RecommendationSummary, RevenueEstimate,
RevisionPoint, ShareCount, TransactionType, TrendPoint, UpgradeDowngradeRow,
};
pub use paft_fundamentals::{analysis, esg, holders, profile, statements, statistics};
}
#[cfg(feature = "aggregates")]
pub mod aggregates {
pub use paft_aggregates::{GenericSnapshot, Snapshot};
}
#[cfg(feature = "prediction")]
pub mod prediction {
pub use paft_prediction::*;
}
pub mod prelude;