Files
aiomql/docs/lib/account.md
T
Ichinga Samuel 2e7aa73aec v4
2024-11-15 21:13:19 +01:00

28 lines
805 B
Markdown

# Account
## Table of Contents
- [Account](#account.account)
- [refresh](#account.refresh)
<a id="account.account"></a>
### Account
```python
class Account(_Base, AccountInfo)
```
A singleton class for managing a trading account. A subclass of _Base and AccountInfo. It supports asynchronous context
management protocol.
#### Attributes:
| Name | Type | Description | Default |
|-------------|-------------------|------------------------------------------------------|---------|
| `connected` | `bool` | Status of connection to MetaTrader 5 Terminal | False |
<a id="account.refresh"></a>
### refresh
```python
async def refresh()
```
Refreshes the account instance with the latest data from the MetaTrader 5 terminal