mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-29 21:27:43 +00:00
31 lines
766 B
Markdown
31 lines
766 B
Markdown
# terminal
|
|
|
|
`aiomql.lib.terminal` — Terminal information retrieval.
|
|
|
|
## Overview
|
|
|
|
The `Terminal` class retrieves information about the MetaTrader 5 terminal, such as its
|
|
version, connection status, and data paths.
|
|
|
|
Inherits from [`_Base`](../core/base.md).
|
|
|
|
## Classes
|
|
|
|
### `Terminal`
|
|
|
|
> Retrieves MetaTrader 5 terminal details.
|
|
|
|
All `TerminalInfo` fields (e.g. `connected`, `trade_allowed`, `name`, `path`, `build`)
|
|
are available as instance attributes after initialisation.
|
|
|
|
#### Methods
|
|
|
|
| Method | Returns | Description |
|
|
|--------|---------|-------------|
|
|
| `info()` | `TerminalInfo \| None` | Fetches and caches terminal info |
|
|
| `version()` | `tuple[int, int, str] \| None` | Terminal version |
|
|
|
|
## Synchronous API
|
|
|
|
Available in `aiomql.lib.sync.terminal`.
|