This commit is contained in:
Ichinga Samuel
2024-12-01 11:47:42 +01:00
parent 01f8c4af7d
commit 9043d42704
13 changed files with 60 additions and 225 deletions
-14
View File
@@ -1,14 +0,0 @@
{
"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"
}
+2 -5
View File
@@ -5,17 +5,14 @@ from aiomql.contrib.strategies import Chaos
from aiomql.contrib.symbols import ForexSymbol
async def test_bot(capsys):
print('testing')
async def test_bot():
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]
strategies = [Chaos(symbol=symbol, name="test_chaos") for symbol in symbols]
bot = Bot()
bot.config.task_queue.worker_timeout = 2
bot.executor.timeout = 10
bot.executor.timeout = 5
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
@@ -1,14 +0,0 @@
{
"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"
}