feat: auto-clamp buy orders to fit within position limits instead of hard-rejecting

This commit is contained in:
Celes Renata
2026-04-28 14:20:44 +00:00
parent e360b66c3e
commit 226d799eb2
3 changed files with 123 additions and 0 deletions
+5
View File
@@ -251,6 +251,11 @@ RISK_CHECK_FAILURES = Counter(
["check_name"],
)
ORDERS_CLAMPED = Counter(
"stonks_orders_clamped_total",
"Orders auto-clamped to fit within position limits",
)
POSITIONS_SYNCED = Counter(
"stonks_positions_synced_total",
"Position sync operations completed",