diff --git a/piker/brokers/deribit/api.py b/piker/brokers/deribit/api.py index d7d888a9..98e854a9 100644 --- a/piker/brokers/deribit/api.py +++ b/piker/brokers/deribit/api.py @@ -466,7 +466,7 @@ class Client: # repack in name-keyed table return { - pair['instrument_name'].lower(): pair + pair.instrument_name.lower(): pair for pair in matches.values() } @@ -481,7 +481,7 @@ class Client: as_np: bool = True, ) -> list[tuple] | np.ndarray: - instrument: str = mkt.bs_fqme + instrument: str = mkt.bs_mktid if end_dt is None: end_dt = now('UTC') diff --git a/piker/data/_web_bs.py b/piker/data/_web_bs.py index a401588d..aaca7b41 100644 --- a/piker/data/_web_bs.py +++ b/piker/data/_web_bs.py @@ -483,7 +483,7 @@ async def open_jsonrpc_session( # response in original "result" msg, # THEN FINALLY set the event to signal caller # to raise the error in the parent task. - req_id: int = error['id'] + req_id: int = msg['id'] req_msg: dict = req_msgs[req_id] result: dict = rpc_results[req_id] result['error'] = error