mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-16 21:38:06 +00:00
v4.0.17 no-backtest
This commit is contained in:
+14
-44
@@ -1,49 +1,19 @@
|
||||
# Exceptions
|
||||
Exceptions for the aiomql package.
|
||||
# exceptions
|
||||
|
||||
## Table of Contents
|
||||
- [LoginError](#exceptions.login_error)
|
||||
- [VolumeError](#exceptions.volume_error)
|
||||
- [SymbolError](#exceptions.symbol_error)
|
||||
- [OrderError](#exceptions.order_error)
|
||||
- [StopTradingError](#exceptions.stop_trading_error)
|
||||
`aiomql.core.exceptions` — Custom exception hierarchy for the aiomql package.
|
||||
|
||||
|
||||
<a id="exceptions.login_error"></a>
|
||||
### LoginError
|
||||
```python
|
||||
class LoginError(Exception)
|
||||
```
|
||||
Raised when an error occurs when logging in.
|
||||
## Overview
|
||||
|
||||
Defines domain-specific exceptions used throughout the library to signal
|
||||
trading and connection errors.
|
||||
|
||||
<a id="exceptions.volume_error"></a>
|
||||
### VolumeError
|
||||
```python
|
||||
class VolumeError(Exception)
|
||||
```
|
||||
Raised when a volume is not valid or out of range for a symbol.
|
||||
## Exceptions
|
||||
|
||||
|
||||
<a id="exceptions.symbol_error"></a>
|
||||
### SymbolError
|
||||
```python
|
||||
class SymbolError(Exception)
|
||||
```
|
||||
Raised when a symbol is not provided where required or not available in the Market Watch.
|
||||
|
||||
|
||||
<a id="exceptions.order_error"></a>
|
||||
### OrderError
|
||||
```python
|
||||
class OrderError(Exception)
|
||||
```
|
||||
Raised when an error occurs when working with the order class.
|
||||
|
||||
|
||||
<a id="exceptions.Stop_trading_error"></a>
|
||||
### StopTradingError
|
||||
```python
|
||||
class StopTradingError(Exception)
|
||||
```
|
||||
Raised when an error occurs when trying to stop trading.
|
||||
| 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 |
|
||||
|
||||
Reference in New Issue
Block a user