Normalize fullwidth punctuation to ASCII across codebase.
Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Gate 平仓历史匹配(fetch_positions_history),供 reconcile / 中控全平同步共用。"""
|
||||
"""Gate 平仓历史匹配(fetch_positions_history),供 reconcile / 中控全平同步共用."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -21,8 +21,8 @@ def pick_gate_position_close(
|
||||
max_close_delta_ms: int = 25 * 60 * 1000,
|
||||
) -> dict | None:
|
||||
"""
|
||||
从 Gate 平仓历史列表中选取与 symbol/direction/开仓时间最匹配的一条。
|
||||
返回 normalize 后的 dict(含 close_ms、pnl、sync_key 等),无匹配则 None。
|
||||
从 Gate 平仓历史列表中选取与 symbol/direction/开仓时间最匹配的一条.
|
||||
返回 normalize 后的 dict(含 close_ms,pnl,sync_key 等),无匹配则 None.
|
||||
"""
|
||||
if not hist:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user