2024-02-12 21:09:28 +01:00
|
|
|
# Account
|
2023-10-11 09:49:06 +01:00
|
|
|
|
2024-02-12 21:09:28 +01:00
|
|
|
## Table of Contents
|
2024-11-15 21:13:19 +01:00
|
|
|
- [Account](#account.account)
|
2024-02-12 21:09:28 +01:00
|
|
|
- [refresh](#account.refresh)
|
2024-01-18 02:26:27 +01:00
|
|
|
|
2024-11-08 05:41:23 +01:00
|
|
|
|
2024-11-15 21:13:19 +01:00
|
|
|
<a id="account.account"></a>
|
2024-01-18 02:26:27 +01:00
|
|
|
### Account
|
2023-10-11 09:49:06 +01:00
|
|
|
```python
|
2024-11-08 05:41:23 +01:00
|
|
|
class Account(_Base, AccountInfo)
|
2023-10-11 09:49:06 +01:00
|
|
|
```
|
2024-11-08 05:41:23 +01:00
|
|
|
A singleton class for managing a trading account. A subclass of _Base and AccountInfo. It supports asynchronous context
|
|
|
|
|
management protocol.
|
|
|
|
|
|
2024-11-15 21:13:19 +01:00
|
|
|
#### Attributes:
|
2024-02-12 21:09:28 +01:00
|
|
|
| Name | Type | Description | Default |
|
|
|
|
|
|-------------|-------------------|------------------------------------------------------|---------|
|
|
|
|
|
| `connected` | `bool` | Status of connection to MetaTrader 5 Terminal | False |
|
2023-10-11 09:49:06 +01:00
|
|
|
|
2024-11-15 21:13:19 +01:00
|
|
|
|
2024-02-12 21:09:28 +01:00
|
|
|
<a id="account.refresh"></a>
|
|
|
|
|
### refresh
|
2024-01-18 02:26:27 +01:00
|
|
|
```python
|
|
|
|
|
async def refresh()
|
|
|
|
|
```
|
|
|
|
|
Refreshes the account instance with the latest data from the MetaTrader 5 terminal
|