Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Anny26022/chartsmaze_clone/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Announcements API retrieves live corporate announcements and events for stocks. This endpoint provides real-time information about upcoming and recent corporate events including AGMs, dividends, and other material announcements. Source File:fetch_new_announcements.py
Endpoint Details
https://ow-static-scanx.dhan.co/staticscanx/announcementsPOSTapplication/jsonRequest Headers
Request Payload
ISIN code of the company
Example Payload
Example Request
Response Structure
Array of announcement objects
Announcement Object Fields
Event name or announcement title
Event date in YYYY-MM-DD format
Announcement type/category
Example Response
Implementation Details
Configuration
Concurrent threads for parallel processing (higher than filings due to smaller payloads)
Request timeout in seconds
master_isin_map.jsonall_company_announcements.jsonProcessing Flow
- Load Master Map: Read ISINs from master_isin_map.json
- Parallel Fetch: Use ThreadPoolExecutor with 40 workers
- Enrich Data: Add Symbol and Name to each announcement
- Consolidate: Merge all results into single array
- Sort: Order by date descending (latest first)
- Save: Write to all_company_announcements.json
Code Implementation
Output Structure
The output file contains a flat array of enriched announcements:Performance Metrics
- Total Stocks: ~2,775
- Threads: 40 concurrent requests
- Time per Stock: ~1-2 seconds
- Total Time: ~2-4 minutes for full market
- Avg Announcements per Stock: 3-5 (varies significantly)
- Total Announcements: ~8,000-12,000
- Success Rate: >98%
Progress Tracking
Announcement Types
Common announcement types:- AGM: Annual General Meeting
- EGM: Extraordinary General Meeting
- Dividend: Dividend announcements
- Board Meeting: Board meeting schedules
- Record Date: Record date for corporate actions
- Book Closure: Book closure dates
- Interest Payment: Interest payment dates (for bonds)
- Redemption: Redemption announcements
Error Handling
Timeout Management
Empty Response Handling
- Stocks without announcements return
None - These are skipped in the consolidation phase
- No error is logged for stocks without announcements
Use Cases
- Event Calendar: Build upcoming corporate events calendar
- Dividend Tracking: Monitor dividend announcements
- AGM/EGM Alerts: Track shareholder meetings
- Record Date Tracking: Identify ex-dates for corporate actions
- Investor Relations: Aggregate event data for portfolio stocks
Data Freshness
- Announcements are updated in real-time as companies file with exchanges
- Typically includes events from past 3 months to future 6 months
- Historical announcements beyond 3 months may not be available
- Run daily for up-to-date announcement tracking
Filtering Examples
Filter by Type
Filter by Date Range
Filter by Symbol
Notes
- This endpoint returns live/upcoming announcements, not historical filings
- For historical regulatory filings, use the Company Filings API
- Some stocks may have no upcoming announcements (returns empty array)
- The API does not require authentication
- Rate limiting is lenient due to small payload size
- Announcements are sourced from exchange filings (BSE/NSE)
- Event names may vary in format across companies