pub type Error = DukascopyError;Expand description
Convenient alias for DukascopyError
Aliased Type§
pub enum Error {
Show 14 variants
HttpError(String),
LzmaError(String),
InvalidTickData,
InvalidCurrencyCode {
code: String,
reason: String,
},
MarketClosed(String),
DataNotFoundFor {
pair: String,
timestamp: String,
},
DataNotFound,
RateLimitExceeded,
Unauthorized,
Forbidden,
InvalidRequest(String),
Timeout(u64),
CacheError(String),
Unknown(String),
}Variants§
HttpError(String)
HTTP request failed
LzmaError(String)
LZMA decompression failed
InvalidTickData
Tick data is malformed or invalid
InvalidCurrencyCode
Invalid currency code provided
MarketClosed(String)
Attempted to access market during closed hours
DataNotFoundFor
No data available for the requested time/pair
DataNotFound
Generic data not found (for backward compatibility)
RateLimitExceeded
API rate limit exceeded
Unauthorized access (HTTP 401)
Forbidden
Forbidden access (HTTP 403)
InvalidRequest(String)
Invalid request (HTTP 400)
Timeout(u64)
Request timeout
CacheError(String)
Cache error
Unknown(String)
Unknown error with context