Show option expiry countdown and widen settings for ultrawide/tablet.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -507,6 +507,14 @@ class Matcher:
|
||||
)
|
||||
strike = float(g["strike"]) if g and g["strike"] is not None else None
|
||||
expiry_ymd = str(g["expiry_ymd"]) if g and g["expiry_ymd"] else None
|
||||
expiry_ms = None
|
||||
if expiry_ymd and len(expiry_ymd) == 6:
|
||||
try:
|
||||
from ..exchange.okx.parse import expiry_ms_from_ymd
|
||||
|
||||
expiry_ms = expiry_ms_from_ymd(expiry_ymd)
|
||||
except Exception:
|
||||
expiry_ms = None
|
||||
perp_inst_id = (
|
||||
str(g["perp_inst_id"])
|
||||
if g and g["perp_inst_id"]
|
||||
@@ -532,6 +540,7 @@ class Matcher:
|
||||
"option_mark_px": float(opt_mark) if opt_mark is not None else None,
|
||||
"strike": strike,
|
||||
"expiry_ymd": expiry_ymd,
|
||||
"expiry_ms": expiry_ms,
|
||||
"perp_upl": perp_upl,
|
||||
"option_upl": option_upl,
|
||||
"est_close_fees": est_close_fees,
|
||||
|
||||
Reference in New Issue
Block a user