Codal (کدال) Disclosures
v0.2.3Read-only codal.ir: search disclosures of Iranian listed companies, read letters and statements.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cd_search_letters Search Codal disclosures
Search codal.ir disclosures (letters) of Iranian listed companies, newest first, 20 per page. No filters lists the newest letters of all companies. `total` = matches, `pages` = page count. Pass a letter's `tracing_no` to cd_letter to read it. No results: check the symbol with cd_company or widen filters.
| Parameter | Type | Description |
|---|---|---|
category | Letter group: 1 financial statements, dividend schedules; 2 material info, clarifications; 3 monthly activity, portfolios; 4 articles, prospectuses; 5 board, audit committee; 6 shareholder meetings; 7… | |
from_date | Sent on/after this Jalali date, e.g. 1405/07/01. | |
letter_type | Letter type id from cd_letter_types, e.g. 6 financial statements, 58 monthly activity, 20 AGM decisions, 30 dividend schedule. | |
page | integer | Result page (20 letters). |
period_months | Report period in months: 12 annual, 6 half-year, 3 quarterly, 1 monthly. | |
symbol | Exact Persian trading symbol, e.g. فولاد (find with cd_company). | |
title | Persian words in the letter title, e.g. افزایش سرمایه. | |
to_date | Sent on/before this Jalali date. | |
tracing_no | Tracing number (شماره پیگیری) of one letter. |
cd_letter Read one Codal letter
Read one codal.ir letter: its text or tables, plus links to its page, PDF, Excel and attachments. Structured reports come back as `tables` (one line per row, cells joined by ' | ', usually million Rial; see `unit_note`), one sheet at a time: `sheets` lists them, call again with `sheet` for another. Other letters give `text`. `attachments` are the company's files. Cut at 16,000 characters (`truncated`); the PDF has all.
| Parameter | Type | Description |
|---|---|---|
tracing_no * | integer | Tracing number (شماره پیگیری) from cd_search_letters. |
sheet | Sheet id from the `sheets` list of a previous call; omit for the first sheet. |
cd_company Find a company on Codal
Find companies and funds on codal.ir by symbol or name, with their market, industry and type. Use it to get the exact `symbol` for cd_search_letters and cd_financial_years. Exact matches first, then prefix, then name contains; listed before unlisted. `matched` is the total number of hits.
| Parameter | Type | Description |
|---|---|---|
query * | string | Persian symbol or part of the name, e.g. فولاد. |
limit | integer | Max companies. |
cd_letter_types List Codal letter types
List codal.ir letter groups, or the letter types of one group with the ids cd_search_letters takes. No argument: the 11 groups. With `category`: its types; use a type `id` as `letter_type` in cd_search_letters.
| Parameter | Type | Description |
|---|---|---|
category | Group code to list its letter types; omit to list the groups. |
cd_financial_years Fiscal years of a company
List the fiscal year-end dates codal.ir knows for one company, newest first (Jalali). Use it before searching annual statements with cd_search_letters (period_months 12). An empty list usually means a wrong symbol: check cd_company.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Exact Persian trading symbol, e.g. فولاد. |