Enrich sim option positions with public index and mark prices.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -340,7 +340,7 @@ def _patch_okx_options_lib(app_module: Any) -> None:
|
||||
def fetch_option_positions(ex):
|
||||
try:
|
||||
if _GET_DB is not None and is_sim_mode(_GET_DB):
|
||||
return broker().option_positions_okx_rows()
|
||||
return broker().option_positions_okx_rows(ex)
|
||||
except Exception:
|
||||
pass
|
||||
return _orig_fetch_pos(ex)
|
||||
|
||||
Reference in New Issue
Block a user