'Fix `Optional` and use `'linear/reverse'` in `OptionPair.venue`'
parent
bdc3bc9219
commit
be84d0dae1
|
@ -22,6 +22,7 @@ from __future__ import annotations
|
||||||
import pendulum
|
import pendulum
|
||||||
from typing import (
|
from typing import (
|
||||||
Literal,
|
Literal,
|
||||||
|
Optional,
|
||||||
)
|
)
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
|
@ -111,7 +112,6 @@ class OptionPair(Pair, frozen=True):
|
||||||
block_trade_min_trade_amount: int # '25'
|
block_trade_min_trade_amount: int # '25'
|
||||||
block_trade_commission: float # '0.003'
|
block_trade_commission: float # '0.003'
|
||||||
|
|
||||||
|
|
||||||
# NOTE: see `.data._symcache.SymbologyCache.load()` for why
|
# NOTE: see `.data._symcache.SymbologyCache.load()` for why
|
||||||
ns_path: str = 'piker.brokers.deribit:OptionPair'
|
ns_path: str = 'piker.brokers.deribit:OptionPair'
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ class OptionPair(Pair, frozen=True):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def venue(self) -> str:
|
def venue(self) -> str:
|
||||||
return 'option'
|
return f'{self.instrument_type}_option'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def bs_fqme(self) -> str:
|
def bs_fqme(self) -> str:
|
||||||
|
|
Loading…
Reference in New Issue