mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-17 22:08:06 +00:00
v4.0.5
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user