Repository navigation
feat(twse): add current cash-dividend calendar as a bounded roadmap slice - #1758
Draft
luokerenx4 wants to merge 1 commit into
Draft
luokerenx4 wants to merge 1 commit into
luokerenx4 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Taiwan data callers can query prices and valuation metrics but cannot use the existing dividend calendar model with the TWSE provider. #406 contains a much larger roadmap. This Draft proposes one bounded slice: current TWSE listed-security cash-dividend announcements through the existing SDK and compatibility router.
Reuses
CalendarDividend, the existing provider registry/router, Taiwan symbol/date/number helpers and standard request transport. No provider framework, MCP bridge, new model, cache, AI tool set or board is added. The only new implementation is the missing provider adapter; discovery describes its bounded coverage.Call the existing
SDKEquityClient.getCalendarDividend({ provider: 'twse', start_date: '2026-10-01', end_date: '2026-10-31' }), or/api/market-data-v1/equity/calendar/dividend?provider=twse&start_date=2026-10-01&end_date=2026-10-31.Source: official TWSE announcement data and official OpenAPI schema. Cash events (
息) and combined events (權息) enter the existing dividend model. Pure rights issues (權) do not. The adapter normalizes.TWidentities and ROC dates, applies inclusive date bounds, rejects invalid windows, omits unusable date/symbol records and leaves undisclosed cash amounts and unavailable payment/record dates null.Tradeoff and deferred roadmap:
.TWOcoverage. An empty historical window does not prove there were no dividends.Validation:
git diff --checkpassed.Based on dev
4813c1b89d8c151a7853f717e31629f3ec1f3b4c, independent of the other issue PRs. No merge or issue closure requested. Includes four files: provider registration/description, adapter, tests and the existing owner guide.Pushed head
fc566cd5a342f366ad0f92fe3a4e7e5d56db582bverified against the remote branch; GitHub clean-build passed on this SHA.