bs_mktid instead bs_fqme for deribits options

deribit_fix
Nelson Torres 2024-11-12 12:22:28 -03:00
parent a3ab8dd8fe
commit f037f851d8
1 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class Pair(Struct, frozen=True, kw_only=True):
@property @property
def bs_mktid(self) -> str: def bs_mktid(self) -> str:
return f'{self.symbol}.{self.venue}' return f'{self.symbol}'
class OptionPair(Pair, frozen=True, kw_only=True): class OptionPair(Pair, frozen=True, kw_only=True):
@ -122,7 +122,7 @@ class OptionPair(Pair, frozen=True, kw_only=True):
@property @property
def bs_fqme(self) -> str: def bs_fqme(self) -> str:
return f'{self.symbol}.OPTION' return f'{self.symbol}'
@property @property
def bs_src_asset(self) -> str: def bs_src_asset(self) -> str:
@ -134,7 +134,7 @@ class OptionPair(Pair, frozen=True, kw_only=True):
@property @property
def bs_mktid(self) -> str: def bs_mktid(self) -> str:
return f'{self.symbol}.{self.venue}' return f'{self.symbol}'
PAIRTYPES: dict[MarketType, Pair] = { PAIRTYPES: dict[MarketType, Pair] = {