From be84d0dae1c528b2aa1b959a1892267b19b5d8e8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 19 Nov 2024 17:05:13 -0500 Subject: [PATCH] 'Fix `Optional` and use `'linear/reverse'` in `OptionPair.venue`' --- piker/brokers/deribit/venues.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/brokers/deribit/venues.py b/piker/brokers/deribit/venues.py index 91a1583f..f74c970e 100644 --- a/piker/brokers/deribit/venues.py +++ b/piker/brokers/deribit/venues.py @@ -22,6 +22,7 @@ from __future__ import annotations import pendulum from typing import ( Literal, + Optional, ) from decimal import Decimal @@ -111,7 +112,6 @@ class OptionPair(Pair, frozen=True): block_trade_min_trade_amount: int # '25' block_trade_commission: float # '0.003' - # NOTE: see `.data._symcache.SymbologyCache.load()` for why ns_path: str = 'piker.brokers.deribit:OptionPair' @@ -122,7 +122,7 @@ class OptionPair(Pair, frozen=True): @property def venue(self) -> str: - return 'option' + return f'{self.instrument_type}_option' @property def bs_fqme(self) -> str: