Use compact async with tuple syntax from py3.9
parent
efd93d058a
commit
319eacd8c1
|
@ -319,14 +319,10 @@ async def start_order_mode(
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
||||||
# spawn EMS actor-service
|
# spawn EMS actor-service
|
||||||
async with open_ems(
|
async with (
|
||||||
brokername,
|
open_ems(brokername, symbol) as (book, trades_stream),
|
||||||
symbol,
|
open_order_mode(symbol, chart, book) as order_mode
|
||||||
) as (book, trades_stream), open_order_mode(
|
):
|
||||||
symbol,
|
|
||||||
chart,
|
|
||||||
book,
|
|
||||||
) as order_mode:
|
|
||||||
|
|
||||||
def get_index(time: float):
|
def get_index(time: float):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue