pub type Error = FinanceError;Expand description
Type alias for Error (for consistency with common Rust patterns)
Aliased Type§
pub enum Error {
Show 17 variants
AuthenticationFailed {
context: String,
},
SymbolNotFound {
symbol: Option<String>,
context: String,
},
RateLimited {
retry_after: Option<u64>,
},
HttpError(Error),
JsonParseError(Error),
ResponseStructureError {
field: String,
context: String,
},
InvalidParameter {
param: String,
reason: String,
},
Timeout {
timeout_ms: u64,
},
ServerError {
status: u16,
context: String,
},
UnexpectedResponse(String),
InternalError(String),
ApiError(String),
RuntimeError(Error),
IndicatorError(IndicatorError),
ExternalApiError {
api: String,
status: u16,
},
MacroDataError {
provider: String,
context: String,
},
FeedParseError {
url: String,
context: String,
},
}Variants§
AuthenticationFailed
Authentication failed (Yahoo Finance, SEC EDGAR, etc.)
SymbolNotFound
The requested symbol was not found
RateLimited
Rate limit exceeded
HttpError(Error)
HTTP request error
JsonParseError(Error)
Failed to parse JSON response
ResponseStructureError
Response structure error - missing or malformed fields
InvalidParameter
Invalid parameter provided
Timeout
Network timeout
ServerError
Server error (5xx status codes)
UnexpectedResponse(String)
Unexpected API response
InternalError(String)
Internal error
ApiError(String)
General API error
RuntimeError(Error)
Tokio runtime error
IndicatorError(IndicatorError)
Indicator calculation error
ExternalApiError
Error from an external (non-Yahoo) data API
Fields
MacroDataError
Error fetching or parsing macro-economic data (FRED, Treasury, BLS)
FeedParseError
Error parsing an RSS/Atom feed