Expand description
Error types for ExecutionClient operations.
§Retry Semantics
Use ClientError::is_transient to determine if an operation should be retried.
Transient errors (connectivity issues, rate limits) may succeed on retry with
appropriate backoff. Non-transient errors (invalid instrument, insufficient
balance) will fail identically on retry — the caller must change the request.
The is_transient() method is the stable contract for retry decisions. Prefer
it over pattern matching on specific variants, as the internal taxonomy may
evolve while is_transient() semantics remain stable.
Structs§
- Account
Reinit Failure - A failed attempt to re-initialise an account stream after it ended.
- Borrow
Reject - Why a venue refused to lend for an order, as carried by
ApiError::BorrowRejected. - Bounds
Violation - A value in an order request that is below a venue minimum or above a venue maximum.
- Precision
Violation - A value in an order request with more precision than the venue accepts, or that is not positive.
Enums§
- Account
Stream Init Error - Why an attempt to initialise an account stream, its snapshot and its updates, failed.
- ApiError
- Represents all API errors generated by an exchange.
- Borrow
Reject Reason - The kind of borrow refusal carried by a
BorrowReject. - Bound
- Which end of a range a
BoundsViolationbroke. - Client
Error - Represents all errors produced by an
ExecutionClient. - Connectivity
Error - Represents all connectivity-centric errors.
- KeyError
- Represents errors related to exchange, asset and instrument identifier key lookups.
- NotPlaced
Reason - How an order is known not to have been placed.
- Order
Error - Represents all errors that can be generated when cancelling or opening orders.
- Order
Field - A value of an order request, as named by a
PrecisionViolationorBoundsViolation. - Precision
Limit - A venue’s precision rule, as broken by a
PrecisionViolation. - Stream
Termination Reason - Why an account event stream ended.
Type Aliases§
- Unindexed
Account Stream Init Error - Type alias for an
AccountStreamInitErrorthat is keyed onAssetNameExchangeandInstrumentNameExchange(yet to be indexed). - Unindexed
ApiError - Type alias for a
ApiErrorthat is keyed onAssetNameExchangeandInstrumentNameExchange(yet to be indexed). - Unindexed
Client Error - Type alias for a
ClientErrorthat is keyed onAssetNameExchangeandInstrumentNameExchange(yet to be indexed). - Unindexed
Order Error - Type alias for a
OrderErrorthat is keyed onAssetNameExchangeandInstrumentNameExchange(yet to be indexed).