mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-24 01:08:07 +00:00
4.0.15b
This commit is contained in:
+7
-2
@@ -7,6 +7,11 @@ def btc_usd():
|
||||
return Symbol(name="BTCUSD")
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def eth_usd():
|
||||
return Symbol(name="ETHUSD")
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
async def buy_order(btc_usd):
|
||||
sym = btc_usd
|
||||
@@ -26,8 +31,8 @@ async def buy_order(btc_usd):
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
async def sell_order(btc_usd):
|
||||
sym = btc_usd
|
||||
async def sell_order(eth_usd):
|
||||
sym = eth_usd
|
||||
sym_info = await sym.mt5.symbol_info(sym.name)
|
||||
return {
|
||||
"action": sym.mt5.TRADE_ACTION_DEAL,
|
||||
|
||||
Reference in New Issue
Block a user