Files
aiomql/docs/core/exceptions.md
T

50 lines
1.1 KiB
Markdown
Raw Normal View History

2024-02-12 21:09:28 +01:00
# Exceptions
2023-10-11 09:49:06 +01:00
Exceptions for the aiomql package.
2024-02-12 21:09:28 +01:00
## Table of Contents
2024-11-15 21:13:19 +01:00
- [LoginError](#exceptions.login_error)
- [VolumeError](#exceptions.volume_error)
- [SymbolError](#exceptions.symbol_error)
- [OrderError](#exceptions.order_error)
- [StopTradingError](#exceptions.stop_trading_error)
2023-10-11 09:49:06 +01:00
2024-02-12 21:09:28 +01:00
2024-11-15 21:13:19 +01:00
<a id="exceptions.login_error"></a>
2024-02-12 21:09:28 +01:00
### LoginError
2023-10-11 09:49:06 +01:00
```python
class LoginError(Exception)
```
Raised when an error occurs when logging in.
2024-11-15 21:13:19 +01:00
<a id="exceptions.volume_error"></a>
2024-02-12 21:09:28 +01:00
### VolumeError
2023-10-11 09:49:06 +01:00
```python
class VolumeError(Exception)
```
Raised when a volume is not valid or out of range for a symbol.
2024-11-15 21:13:19 +01:00
<a id="exceptions.symbol_error"></a>
2024-02-12 21:09:28 +01:00
### SymbolError
2023-10-11 09:49:06 +01:00
```python
class SymbolError(Exception)
```
Raised when a symbol is not provided where required or not available in the Market Watch.
2024-11-15 21:13:19 +01:00
<a id="exceptions.order_error"></a>
2024-02-12 21:09:28 +01:00
### OrderError
2023-10-11 09:49:06 +01:00
```python
class OrderError(Exception)
```
2024-11-15 21:13:19 +01:00
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.