This commit is contained in:
Ichinga Samuel
2024-02-12 21:09:28 +01:00
parent 3f53df8375
commit b01e58ee08
68 changed files with 2986 additions and 6869 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ from aiomql import ForexSymbol, Account, Positions, History, SimpleTrader as Tra
logging.basicConfig(level=logging.INFO)
async def main():
# Account details are in the aiomql.json file
async with Account():
@@ -36,7 +37,7 @@ async def main():
# get the number of open positions
total = await pos.positions_total()
print(f'{total} Open positions') # 2
print(f'{total} Open positions') # 2
# close all open positions
await pos.close_all()
@@ -59,4 +60,4 @@ async def main():
# print(f'{total_deals} Deals')
asyncio.run(main())
asyncio.run(main())