Fetch and analyze financial announcements from the Colombo Stock Exchange (CSE). Downloads PDFs, extracts financial data, and generates comprehensive investment analysis reports as PDFs. Use when user wants to analyze Sri Lankan stocks, CSE filings, or financial announcements.
Analyze financial filings from the Colombo Stock Exchange and generate investment analysis PDF reports.
$ARGUMENTS may contain a stock symbol (e.g., SAMP, SLFL) or be emptyFetch the latest financial announcements from CSE:
curl -s -X POST https://www.cse.lk/api/getFinancialAnnouncement -H "Content-Type: application/json" -d '{}' > /tmp/cse_announcements.json
Parse the JSON response. The key is reqFinancialAnnouncemnets (note the typo — that's the actual API field name).
Filter for relevant filings only:
If $ARGUMENTS contains a symbol, filter to only that symbol. Otherwise list all and ask the user which to process.
Download the PDF from CDN. The URL pattern is: