diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 18:06:25 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 18:06:25 +0900 |
| commit | 7c05359bccfa0ca50a8f55c1a99cfadd731c8e89 (patch) | |
| tree | e6d182f6ce6c32b6d53aefa5d2cd7677e154e3eb /shared/src | |
| parent | 1270e5edfa8e00ec6306e0921c54d5c130a01b54 (diff) | |
fix: resolve final 3 issues for production readiness
- Fix API strategies endpoint path resolution (use STRATEGIES_DIR env var)
- Add DATABASE_URL env var override in alembic env.py
- Move risk config fields to shared Settings base class
- Remove duplicate fields from ExecutorConfig
Diffstat (limited to 'shared/src')
| -rw-r--r-- | shared/src/shared/config.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/src/shared/config.py b/shared/src/shared/config.py index 867702b..ab0331c 100644 --- a/shared/src/shared/config.py +++ b/shared/src/shared/config.py @@ -14,6 +14,10 @@ class Settings(BaseSettings): risk_max_position_size: float = 0.1 risk_stop_loss_pct: float = 5.0 risk_daily_loss_limit_pct: float = 10.0 + risk_trailing_stop_pct: float = 0.0 + risk_max_open_positions: int = 10 + risk_volatility_lookback: int = 20 + risk_volatility_scale: bool = False dry_run: bool = True telegram_bot_token: str = "" telegram_chat_id: str = "" |
