pub type UnindexedClientError = ClientError<AssetNameExchange, InstrumentNameExchange>;Expand description
Type alias for a ClientError that is keyed on AssetNameExchange and
InstrumentNameExchange (yet to be indexed).
Aliased Type§
pub enum UnindexedClientError {
Connectivity(ConnectivityError),
Api(ApiError<AssetNameExchange, InstrumentNameExchange>),
TaskFailed(String),
Internal(String),
Truncated {
fills_read: usize,
},
TruncatedSnapshot {
limit: usize,
},
}Variants§
Connectivity(ConnectivityError)
Connectivity based error.
eg/ Timeout.
Api(ApiError<AssetNameExchange, InstrumentNameExchange>)
API based error.
eg/ RateLimit.
TaskFailed(String)
A background task panicked or was cancelled during an operation.
This indicates a bug or unexpected runtime condition (e.g., a tokio
spawn_blocking task panicked). The operation was not retried and
the caller should treat this as non-recoverable, requiring operator
attention.
Internal(String)
An opaque error from an upstream library that cannot be further classified.
This is a catch-all for errors that don’t fit into Self::Connectivity or
Self::Api categories — typically because the upstream library (e.g., ibapi,
binance-sdk) returns unstructured errors.
Conservatively treated as non-transient. If you encounter this error frequently, consider filing an issue to improve error classification.
Truncated
A bounded read of fills could not advance past its start: more fills share the span’s first moment than one call can read, so a read from the same start would stop at the same place.
ExecutionClient::fetch_trades returns it
rather than a TradesRead whose resume could only loop. The
fills it read are not returned. Callers should alert operators and reconcile the span
another way.
TruncatedSnapshot
Open orders snapshot was truncated at the API’s row limit.
Unlike Self::Truncated (which applies to paginated fill reads), this
error indicates a single-request endpoint hit its maximum row count.
Alpaca’s /v2/orders endpoint caps results at 500; accounts with more
concurrent open orders will have an incomplete snapshot.
Callers should alert operators — an incomplete order snapshot can cause duplicate submissions, missed cancellations, or incorrect position sizing.