#[non_exhaustive]pub enum Operation {
Show 72 variants
Quote,
Chart,
ChartRange,
Financials,
News,
Recommendations,
Options,
Events,
QuotesBatch,
Spark,
CryptoQuote,
CryptoNews,
EconomicSeries,
ForexQuote,
ForexNews,
IndicesQuote,
FuturesQuote,
CommoditiesQuote,
Filings,
SymbolSearch,
SymbolDetails,
Exchanges,
Screener,
EarningsCalendar,
IpoCalendar,
DividendCalendar,
SplitCalendar,
EconomicCalendar,
SectorPerformance,
MarketMovers,
SectorPerformanceHistory,
HolidayCalendar,
MarketStatus,
IndexConstituents,
IndexConstituentChanges,
ShortInterest,
ShortVolume,
ShareFloat,
FilingSections,
RiskFactors,
PressReleases,
EarningsTranscript,
ProtocolTvl,
ProtocolTvlHistory,
CommitmentsOfTraders,
PriceTargetConsensus,
PriceTargetSummary,
RatingConsensus,
KeyMetricsTtm,
RatiosTtm,
ExecutiveCompensation,
EmployeeCount,
CompanyProfile,
UnifiedSnapshot,
FilingSearch,
InsiderTrades,
InstitutionalHoldings,
CongressionalTrades,
FailsToDeliver,
EconomicSeriesAsOf,
EconomicSearch,
EconomicCategories,
EconomicReleases,
EtfProfile,
EarningsSurprises,
GradingHistory,
ListingStatus,
GroupedDaily,
CryptoGroupedDaily,
ForexGroupedDaily,
CryptoTrending,
CryptoGlobal,
}Expand description
A single provider-adapter operation — finer-grained than Capability
(e.g. Chart, ChartRange, and Spark all fall under Capability::CHART).
Used in crate::FinanceError::NotSupported to say exactly which method a
provider doesn’t implement; Operation::capability recovers the coarser
bit for computing which other providers could satisfy it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Quote
Single-symbol quote.
Chart
Historical OHLCV chart over an interval/range.
ChartRange
Historical OHLCV chart over a custom timestamp range.
Financials
Financial statements (income/balance/cash flow).
News
Symbol news.
Recommendations
Similar-symbol recommendations.
Options
Options chain.
Events
Corporate calendar events (earnings, dividends, splits).
QuotesBatch
Batch quotes for multiple symbols in one request.
Spark
Lightweight sparkline data for multiple symbols in one request.
CryptoQuote
Cryptocurrency quote.
CryptoNews
Market-wide crypto news.
EconomicSeries
Macro-economic data series.
ForexQuote
Foreign exchange currency pair quote.
ForexNews
Market-wide forex news.
IndicesQuote
Stock market index quote.
FuturesQuote
Futures contract quote.
CommoditiesQuote
Commodity price quote.
Filings
SEC EDGAR filing data.
SymbolSearch
Symbol search by free-text query.
SymbolDetails
Detailed reference data for one symbol.
Exchanges
Tradable exchange listing.
Screener
Screener query over the provider’s universe.
EarningsCalendar
Market-wide earnings calendar.
IpoCalendar
Market-wide IPO calendar.
DividendCalendar
Market-wide dividend calendar.
SplitCalendar
Market-wide stock split calendar.
EconomicCalendar
Market-wide economic event calendar.
SectorPerformance
Sector and industry performance statistics.
MarketMovers
Market movers — gainers, losers, most active.
SectorPerformanceHistory
Historical sector performance.
HolidayCalendar
Market-wide holiday calendar.
MarketStatus
Live exchange open/closed status.
IndexConstituents
Current constituents of a major index.
IndexConstituentChanges
Historical constituent changes of a major index.
ShortInterest
Short interest (settlement-date positions).
ShortVolume
Daily short volume.
Share float and shares outstanding.
FilingSections
Sectioned text of an SEC filing.
RiskFactors
Risk factors extracted from SEC filings.
PressReleases
Company press releases.
EarningsTranscript
Earnings call transcript, provider-neutral shape.
ProtocolTvl
Total value locked in a DeFi protocol.
ProtocolTvlHistory
Historical total value locked in a DeFi protocol.
CommitmentsOfTraders
Weekly CFTC Commitments of Traders futures positioning.
PriceTargetConsensus
Aggregated analyst price-target consensus.
PriceTargetSummary
Price-target publication activity over trailing windows.
RatingConsensus
Aggregated analyst rating consensus.
KeyMetricsTtm
Trailing-twelve-month key-metrics snapshot.
RatiosTtm
Trailing-twelve-month ratios snapshot.
ExecutiveCompensation
Reported executive compensation.
EmployeeCount
Reported employee headcount.
CompanyProfile
Company identity/classification profile.
UnifiedSnapshot
Cross-market snapshot for symbols spanning several asset classes.
FilingSearch
Full-text search over filing content.
InsiderTrades
Insider transactions reported on Forms 3/4/5.
InstitutionalHoldings
Institutional holdings reported on Form 13F-HR.
CongressionalTrades
Congressional (senate) stock-trade disclosures.
FailsToDeliver
SEC fails-to-deliver data.
EconomicSeriesAsOf
A macro series as it stood on a past date (vintage/ALFRED view).
EconomicSearch
Free-text search over the macro series catalog.
EconomicCategories
Macro series category browsing.
EconomicReleases
Scheduled macro data releases.
EtfProfile
ETF profile and portfolio holdings.
EarningsSurprises
Earnings-surprise history.
GradingHistory
Raw per-analyst grade-action history.
ListingStatus
The provider’s whole listed-security universe.
GroupedDaily
Grouped daily OHLCV bars for every stock ticker on one date.
CryptoGroupedDaily
Grouped daily OHLCV bars for every crypto ticker on one date.
ForexGroupedDaily
Grouped daily OHLCV bars for every forex ticker on one date.
CryptoTrending
Coins/nfts/categories trending in the last 24h.
CryptoGlobal
Aggregate global cryptocurrency market statistics.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Short lowercase identifier (e.g. "chart_range", "crypto_quote").
Sourcepub fn capability(self) -> Capability
pub fn capability(self) -> Capability
The coarser Capability bit this operation falls under.
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
impl<T> PlanCallbackArgs for T
impl<T> PlanCallbackOut for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more