Add weekend open skip, expiry force-close, and Chinese trade labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-25 10:28:33 +08:00
parent 826362b556
commit b50c134f5b
19 changed files with 525 additions and 52 deletions
+6
View File
@@ -65,3 +65,9 @@ class Ledger:
if v is None or v == "":
return default
return str(v)
def get_setting_bool(self, key: str, default: bool) -> bool:
v = self.db.get_setting(key)
if v is None or v == "":
return default
return str(v).strip().lower() in ("1", "true", "yes", "on")