From b25a7699ab5ded049d6c0d262dedb6558dd5b1fc Mon Sep 17 00:00:00 2001 From: Nelson Torres Date: Fri, 8 Nov 2024 21:45:27 +0000 Subject: [PATCH] formatting --- piker/brokers/deribit/api.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/piker/brokers/deribit/api.py b/piker/brokers/deribit/api.py index 235a49d3..84a7e06d 100644 --- a/piker/brokers/deribit/api.py +++ b/piker/brokers/deribit/api.py @@ -623,14 +623,26 @@ async def aio_price_feed_relay( 'symbol': cb_sym_to_deribit_inst( str_to_cb_sym(data.symbol)).lower(), 'ticks': [ - {'type': 'bid', - 'price': float(data.bid_price), 'size': float(data.bid_size)}, - {'type': 'bsize', - 'price': float(data.bid_price), 'size': float(data.bid_size)}, - {'type': 'ask', - 'price': float(data.ask_price), 'size': float(data.ask_size)}, - {'type': 'asize', - 'price': float(data.ask_price), 'size': float(data.ask_size)} + { + 'type': 'bid', + 'price': float(data.bid_price), + 'size': float(data.bid_size) + }, + { + 'type': 'bsize', + 'price': float(data.bid_price), + 'size': float(data.bid_size) + }, + { + 'type': 'ask', + 'price': float(data.ask_price), + 'size': float(data.ask_size) + }, + { + 'type': 'asize', + 'price': float(data.ask_price), + 'size': float(data.ask_size) + } ] })) sym: Symbol = piker_sym_to_cb_sym(instrument)