Adjust a date by business-day convention
roll_dateApply a business-day convention (following, modified following, preceding, modified preceding) to a date on a country or market calendar — payment dates, coupon dates, settlement, SLA due dates. Example: date '2026-05-31', convention 'modified_following', market 'XLON'. Calendar selection: country (ISO 3166-1 alpha-2, e.g. 'SA', 'DE', 'US') or market (MIC, e.g. 'XNYS', 'XLON'); optional subdivision (state/province/emirate code from list_calendars), categories (e.g. ['public','bank']), weekend override (['FRI','SAT']), extra_holidays (company/contract dates). Weekend defaults to the country's legal weekend. Response: result plus data_confidence (high = fixed-date calendar; medium = a lunar/moon-sighted or projected holiday is involved, or the caller overrode the weekend), estimated_items[] naming each projected date, sources[] (public references behind the calendar), data_version and warnings[].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO date to adjust. | |
| market | No | Financial market MIC (XNYS, XLON, XETR, XHKG, XJPX, XSAU…) — trading/settlement calendar instead of a country. | |
| country | No | ISO 3166-1 alpha-2 country code. Required unless market is given. | |
| weekend | No | Override the weekend, e.g. ['FRI','SAT'] or ['SUN']. Default: the country's legal weekend. | |
| language | No | Language for holiday names where available (e.g. 'ar', 'de', 'en_US'). Default: the country's own. | |
| categories | No | Holiday categories to count as non-working; default ['public']. Others per country: bank, government, school, optional, half_day, catholic… | |
| convention | No | Business-day convention: following | modified_following (ISDA: forward unless it crosses month end, then back) | preceding | modified_preceding. | following |
| subdivision | No | Sub-national code (US 'CA', DE 'BY', AE 'DU', CA 'ON', AU 'NSW', IN 'KA'…). See list_calendars. | |
| extra_holidays | No | Additional non-working ISO dates (company closures, contract-specific days). | |
| include_estimated_holidays | No | Count projected lunar/moon-sighted holidays as non-working (true) or ignore them until announced (false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||