mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-13 11:58:04 +00:00
Merge branch 'dev'
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "aiomql"
|
name = "aiomql"
|
||||||
version = "4.0.3"
|
version = "4.0.4"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
|
|||||||
@@ -37,8 +37,9 @@ class Account(_Base, AccountInfo):
|
|||||||
"""
|
"""
|
||||||
await self.mt5.initialize()
|
await self.mt5.initialize()
|
||||||
self.connected = await self.mt5.login()
|
self.connected = await self.mt5.login()
|
||||||
if not self:
|
if not self.connected:
|
||||||
raise LoginError("Login failed")
|
raise LoginError("Login failed")
|
||||||
|
await self.refresh()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
||||||
|
|||||||
Reference in New Issue
Block a user