From 960298514c9760066e6f7a26652d013a30473dad Mon Sep 17 00:00:00 2001 From: Nelson Torres Date: Fri, 8 Nov 2024 21:47:24 +0000 Subject: [PATCH] add get_mkt_pairs method --- piker/brokers/deribit/api.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/piker/brokers/deribit/api.py b/piker/brokers/deribit/api.py index 03757879..3237540c 100644 --- a/piker/brokers/deribit/api.py +++ b/piker/brokers/deribit/api.py @@ -328,6 +328,13 @@ class Client: tx_tick=tx_tick) return assets + async def get_mkt_pairs(self) -> dict[str, Pair]: + flat: dict[str, Pair] = {} + for key in self._pairs: + item = self._pairs.get(key) + flat[item.bs_fqme] = item + + return flat async def submit_limit( self,