Enrich sim option positions with public index and mark prices.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-14 21:04:00 +08:00
parent 7b1fd91ab1
commit b9544e53ee
2 changed files with 81 additions and 16 deletions
+1 -1
View File
@@ -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)