Implement P1 local matcher/ledger and P2 strategy engine.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-24 17:03:46 +08:00
parent 0fca5f025e
commit 51b8bb8f8a
30 changed files with 2086 additions and 150 deletions
+9
View File
@@ -0,0 +1,9 @@
from __future__ import annotations
from .clock import group_date_ymd
def next_group_id(existing_count: int, now=None) -> str:
ymd = group_date_ymd(now)
n = int(existing_count) + 1
return f"G-{ymd}-{n:02d}"