Files
eth_hedge_sim/backend/app/strategy/group.py
T
2026-07-24 17:03:46 +08:00

10 lines
221 B
Python

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}"