Skip to content

Commit 26f2a9c

Browse files
committed
FIX: Fix DBNStore.request_symbology end date logic
1 parent 11ffe69 commit 26f2a9c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#### Bug fixes
1010
- Fixed an issue where validating the checksum of a batch file loaded the entire file into memory
11+
- Fixed an issue where `DBNStore.request_symbology` could request the wrong end date
1112

1213
## 0.43.0 - 2024-10-09
1314

databento/common/dbnstore.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,8 @@ def request_symbology(self, client: Historical) -> dict[str, Any]:
771771
"""
772772
if self.end is None:
773773
end_date = None
774-
elif self.start.date() == self.end.date():
775-
end_date = (self.start + pd.Timedelta(days=1)).date()
776774
else:
777-
end_date = self.end
775+
end_date = self.end.ceil(freq="D").date()
778776

779777
return client.symbology.resolve(
780778
dataset=self.dataset,

0 commit comments

Comments
 (0)