From f037f851d8851171f3e8d38d355310849d2fb9c2 Mon Sep 17 00:00:00 2001 From: Nelson Torres Date: Tue, 12 Nov 2024 12:22:28 -0300 Subject: [PATCH] bs_mktid instead bs_fqme for deribits options --- piker/brokers/deribit/venues.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/brokers/deribit/venues.py b/piker/brokers/deribit/venues.py index b814a068..ef3d5497 100644 --- a/piker/brokers/deribit/venues.py +++ b/piker/brokers/deribit/venues.py @@ -85,7 +85,7 @@ class Pair(Struct, frozen=True, kw_only=True): @property def bs_mktid(self) -> str: - return f'{self.symbol}.{self.venue}' + return f'{self.symbol}' class OptionPair(Pair, frozen=True, kw_only=True): @@ -122,7 +122,7 @@ class OptionPair(Pair, frozen=True, kw_only=True): @property def bs_fqme(self) -> str: - return f'{self.symbol}.OPTION' + return f'{self.symbol}' @property def bs_src_asset(self) -> str: @@ -134,7 +134,7 @@ class OptionPair(Pair, frozen=True, kw_only=True): @property def bs_mktid(self) -> str: - return f'{self.symbol}.{self.venue}' + return f'{self.symbol}' PAIRTYPES: dict[MarketType, Pair] = {