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