/v1/is_valid_settlement_date
Checks if a date is a valid settlement date.
This endpoint verifies whether a given date is a valid settlement date for a specified financial calendar. A date is considered a valid settlement date if it is not a weekend and not a full-close holiday, and generally, if it is not in the past relative to today.
GET https://fincalapi.com/v1/is_valid_settlement_date
Name | Type | Required | Description |
---|---|---|---|
date |
string | ✅ Yes | Date to check in `YYYY-MM-DD` format (e.g., `2025-07-04`). |
calendar |
string | ✅ Yes | Holiday calendar to use (e.g., `SIFMA-US`, `NYSE`). |
format |
string | No (Default: `json`) | Response format: `json`, `text`, `plain`, `html`, `csv`. |
Check if a date in cell `A2` is a valid settlement date for `SIFMA-US`:
=WEBSERVICE("https://fincalapi.com/v1/is_valid_settlement_date?date="&TEXT(A2,"YYYY-MM-DD")&"&calendar=SIFMA-US")
Automate validation of settlement dates:
Function IsValidSettlementDateAPI(targetDate As String, calendarName As String) As String
Dim http As Object
Set http = CreateObject("MSXML2.XMLHTTP")
Dim url As String
url = "https://fincalapi.com/v1/is_valid_settlement_date?date=" & targetDate & "&calendar=" & calendarName
http.Open "GET", url, False
http.Send
IsValidSettlementDateAPI = http.responseText
End Function
' Example: MsgBox IsValidSettlementDateAPI("2025-07-04", "NYSE")
Import the validation result into your Google Sheet:
=IMPORTDATA("https://fincalapi.com/v1/is_valid_settlement_date?date=2025-07-07&calendar=SIFMA-US")
Check settlement date validity programmatically:
import requests
import json
base_url = "https://fincalapi.com/v1/is_valid_settlement_date"
params = {
"date": "2025-07-04", # US Independence Day (Friday)
"calendar": "SIFMA-US"
}
response = requests.get(base_url, params=params)
if response.status_code == 200:
data = response.json()
print(json.dumps(data, indent=2))
# Expected output:
# {
# "input_date": "2025-07-04",
# "calendar": "SIFMA-US",
# "is_valid_settlement_date": false # Because it's a holiday
# }
else:
print(f"Error: {response.status_code} - {response.text}")
Check validity from the command line:
curl "https://fincalapi.com/v1/is_valid_settlement_date?date=2025-07-06&calendar=NYSE"
View the result directly in your browser:
https://fincalapi.com/v1/is_valid_settlement_date?date=2025-07-07&calendar=SIFMA-US