Add Binance SIM market adapter and exchange switch in settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-25 12:02:36 +08:00
parent 5dcec0fde0
commit 78fd046fb6
25 changed files with 879 additions and 45 deletions
+6
View File
@@ -154,6 +154,7 @@ class Database:
"net_profit_target": str(s.net_profit_target),
"premium_exit_multiple": str(s.premium_exit_multiple),
"rest_seconds": str(s.rest_seconds),
"skip_weekends": str(s.skip_weekends),
"max_rounds": str(s.max_rounds),
"leverage": str(s.leverage),
"min_option_hours": str(s.min_option_hours),
@@ -161,6 +162,11 @@ class Database:
"close_bid_mark_max_pct": str(s.close_bid_mark_max_pct),
"perp_qty_eth": str(s.perp_qty_eth),
"option_qty_eth": str(s.option_qty_eth),
"exchange": str(s.exchange),
"perp_inst_id": str(s.perp_inst_id),
"option_inst_family": str(s.option_inst_family),
"index_inst_id": str(s.index_inst_id),
"option_ct_mult_default": str(s.option_ct_mult_default),
}
for k, v in defaults.items():
exists = self._conn.execute(