From 8be3359437b0a21b70824736bc1dba26f3e09f1d Mon Sep 17 00:00:00 2001 From: Gourav Kumar Date: Tue, 22 Mar 2022 21:30:28 +0530 Subject: [PATCH] Added get_closest attribute to FincalOptions --- fincal/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fincal/utils.py b/fincal/utils.py index bc2f02d..dc2584c 100644 --- a/fincal/utils.py +++ b/fincal/utils.py @@ -10,6 +10,7 @@ class FincalOptions: date_format: str = "%Y-%m-%d" closest: str = "before" # after traded_days: int = 365 + get_closest: str = "exact" def _parse_date(date: str, date_format: str = None):