This commit is contained in:
Ichinga Samuel
2024-11-30 23:10:31 +01:00
parent bd2139dd64
commit 01f8c4af7d
22 changed files with 431 additions and 58 deletions
+14
View File
@@ -0,0 +1,14 @@
{
"login": 31288540,
"password": "nwa0#anaEze",
"server": "Deriv-Demo",
"path": "./terminals/deriv/terminal64.exe",
"default-password": "nwa0#anaEze",
"demo": 5463204,
"fin": 24251812,
"deriv-demo": 5463204,
"deriv-demo2": 31288540,
"test-demo": 5400820,
"test-password": "Gr@ndE1f",
"mode": "live"
}
+3 -1
View File
@@ -5,7 +5,8 @@ from aiomql.contrib.strategies import Chaos
from aiomql.contrib.symbols import ForexSymbol
async def test_bot():
async def test_bot(capsys):
print('testing')
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
syms = ["BTCUSD", "SOLUSD", "ETHUSD"]
symbols = [ForexSymbol(name=sym) for sym in syms]
@@ -14,6 +15,7 @@ async def test_bot():
bot.config.task_queue.worker_timeout = 2
bot.executor.timeout = 10
bot.add_strategies(strategies=strategies)
print(bot.executor.strategy_runners)
await bot.initialize()
bot.executor.execute()
assert len(bot.executor.coroutines) == 1
+14
View File
@@ -0,0 +1,14 @@
{
"login": 31288540,
"password": "nwa0#anaEze",
"server": "Deriv-Demo",
"path": "./terminals/deriv/terminal64.exe",
"default-password": "nwa0#anaEze",
"demo": 5463204,
"fin": 24251812,
"deriv-demo": 5463204,
"deriv-demo2": 31288540,
"test-demo": 5400820,
"test-password": "Gr@ndE1f",
"mode": "live"
}