2026-02-21 07:43:33 +01:00
|
|
|
# exceptions
|
2023-10-11 09:49:06 +01:00
|
|
|
|
2026-02-21 07:43:33 +01:00
|
|
|
`aiomql.core.exceptions` — Custom exception hierarchy for the aiomql package.
|
2023-10-11 09:49:06 +01:00
|
|
|
|
2026-02-21 07:43:33 +01:00
|
|
|
## Overview
|
2023-10-11 09:49:06 +01:00
|
|
|
|
2026-02-21 07:43:33 +01:00
|
|
|
Defines domain-specific exceptions used throughout the library to signal
|
|
|
|
|
trading and connection errors.
|
2024-11-15 21:13:19 +01:00
|
|
|
|
2026-02-21 07:43:33 +01:00
|
|
|
## Exceptions
|
2023-10-11 09:49:06 +01:00
|
|
|
|
2026-02-21 07:43:33 +01:00
|
|
|
| Exception | Base | Description |
|
|
|
|
|
|-----------|------|-------------|
|
|
|
|
|
| `LoginError` | `Exception` | Raised when a login attempt fails |
|
|
|
|
|
| `VolumeError` | `Exception` | Raised when a volume is invalid or out of range for a symbol |
|
|
|
|
|
| `SymbolError` | `Exception` | Raised when a required symbol is missing or not in Market Watch |
|
|
|
|
|
| `OrderError` | `Exception` | Raised when an error occurs while working with the `Order` class |
|
|
|
|
|
| `StopTrading` | `Exception` | Raised to signal that trading should stop |
|
|
|
|
|
| `InvalidRequest` | `Exception` | Raised when a market query fails |
|