Skip to content

Configure Firstrade execution window retries#19

Merged
Pigbibi merged 1 commit into
mainfrom
codex/firstrade-execution-window-config
May 24, 2026
Merged

Configure Firstrade execution window retries#19
Pigbibi merged 1 commit into
mainfrom
codex/firstrade-execution-window-config

Conversation

@Pigbibi

@Pigbibi Pigbibi commented May 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a generic Firstrade runtime execution-window override and pass it through to supported profiles
  • keep the legacy tech execution-window variable as a fallback
  • persist pure insufficient-cash execution blocks as terminal funding blocks so scheduler retries do not repeat the same monthly run

Tests

  • .venv/bin/python -m pytest -q

@Pigbibi Pigbibi merged commit 16fb300 into main May 24, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/firstrade-execution-window-config branch May 24, 2026 09:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0dcb23feb3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread runtime_config_support.py
raw_value = os.getenv("FIRSTRADE_TECH_RUNTIME_EXECUTION_WINDOW_TRADING_DAYS")
raw_value = os.getenv("FIRSTRADE_RUNTIME_EXECUTION_WINDOW_TRADING_DAYS")
env_name = "FIRSTRADE_RUNTIME_EXECUTION_WINDOW_TRADING_DAYS"
if raw_value is None and strategy_profile == "tech_communication_pullback_enhancement":

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Treat empty generic env as missing before legacy fallback

For tech_communication_pullback_enhancement, the legacy fallback is only used when FIRSTRADE_RUNTIME_EXECUTION_WINDOW_TRADING_DAYS is None, not when it is present-but-empty. With the new .env.example line, teams commonly end up with FIRSTRADE_RUNTIME_EXECUTION_WINDOW_TRADING_DAYS= in local/env files; in that case this branch is skipped, FIRSTRADE_TECH_RUNTIME_EXECUTION_WINDOW_TRADING_DAYS is ignored, and the runtime window override silently disappears. This breaks the intended backward-compatible fallback path for existing tech deployments.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant