[codex] Unify chart standards and add B3 monthly index data#16
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request establishes a comprehensive standard for financial chart generation within the project, introducing the 'Chart Lab' as the canonical reference for visual and informational structure. It updates documentation to mandate a 'minimum information contract'—including extraction timestamps, audit data paths, and specific color tokens—to ensure all charts are reproducible and auditable. On the implementation side, a new API endpoint and CLI command have been added to fetch monthly closing levels for B3 indices (e.g., IBOV) using the IndexStatisticsProxy. The web-based chart explorer was also updated with new presets and enhanced technical metadata in the footer. Feedback was provided regarding a potential edge-case crash in the date calculation logic for historical windows.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Summary
Root cause / context
Agents had conflicting guidance between
AGENTS.md,docs/CHART_STANDARDS.md, and the live Chart Lab implementation: old chart docs used different colors, incomplete mandatory metadata, and ambiguous renderer guidance. Also, simple Selic vs Ibovespa prompts lacked a repo-exposed B3 monthly index wrapper.Validation
.venv/bin/ruff format --check src/ tests/ scripts/.venv/bin/ruff check src/ tests/ scripts/.venv/bin/python -m mypy src/findata.venv/bin/python -m pytest tests/ -q(230 passed, 16 deselected).venv/bin/findata b3 index-monthly IBOV --start 2026-01-01 --end 2026-05-11