pub type Error = FinanceError;Expand description
Type alias for Error (for consistency with common Rust patterns)
Aliased Type§
pub enum Error {
Show 14 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),
}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