Skip to content

feat(markets): add shared exchange market-open helpers - #807

Merged
Pigbibi merged 1 commit into
mainfrom
feat/shared-market-open-helpers
Nov 22, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
feat/shared-market-open-helpers

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

AI assistance

  • Authored with AI assistance and verified locally via pytest.

What changed

  • Added is_market_open_now and is_market_open_today to quant_platform_kit.markets.sessions and re-exported them from quant_platform_kit.markets.
  • Kept core package dependencies zero by using stdlib zoneinfo.ZoneInfo and lazy-importing pandas_market_calendars only when no custom calendar_factory is provided.
  • Included the not covered by the schedule ValueError guard so downstream broker Cloud Run entrypoints (CharlesSchwabPlatform, FirstradePlatform) can share a single hardened implementation.

How verified

  • PYTHONPATH=src python3 -m pytest tests/test_market_open_helpers.py -v -> 5 passed.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 22, 2026
@Pigbibi

Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@Pigbibi
Pigbibi enabled auto-merge (squash) November 22, 2026 09:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T09:24:21.300036Z 2121c37 Manual request
🔒 Security Review ✅ Completed 2026-11-22T09:25:28.354798Z 2121c37 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 2121c3725e

ℹ️ 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".

@Pigbibi
Pigbibi merged commit 00168a6 into main Nov 22, 2026
14 of 16 checks passed
@Pigbibi
Pigbibi deleted the feat/shared-market-open-helpers branch November 22, 2026 09:24
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 2121c3725e

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

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

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant