Resolve Settlement Date
resolve_settlement_dateResolve a relative time period (tenor) to a valid business settlement date for a currency pair. Use this when a user says '3 months', '6 months', '1 year', etc. instead of an exact date. The tenor format is: 1D (days), 1W (weeks), 1M (months), 1Y (years). Examples: '3M' = 3 months, '6M' = 6 months, '1Y' = 1 year. The returned date accounts for weekends and public holidays in both currencies' financial centres. Use the returned settlementDate as the exact date parameter for price_guard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenor | Yes | Tenor string, e.g. 3M, 6M, 1Y | |
| currencyPair | Yes | Currency pair, e.g. GBPUSD |