You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d6076e5
Browse filesBrowse the repository at this point in the historyBrowse files
Stefan Jansen
committed
fix: consolidate calendar gap inspection and source-backed recovery
Keep read-only reports, removal of synthetic filling, and exact Databento recovery in one maintainer-directed workflow. Preserve each reviewed source commit and its regression evidence. Include the source guide batching policy without creating a policy-only PR.
`fetch_ohlcv_range()` requests one series between timezone-aware instants, including `start` and
152
+
excluding `end`. Unlike the date-based API, it never rounds to dates or applies
153
+
`adjust_session_dates`. The wrapper supports native minute, hourly and daily OHLCV schemas and
154
+
rejects unsupported frequencies, parent expansion and `ALL_SYMBOLS` before a request.
155
+
156
+
```python
157
+
from datetime importUTC, datetime
158
+
159
+
with DataBentoProvider(stype_in="continuous") as provider:
160
+
rows = provider.fetch_ohlcv_range(
161
+
"BTC.c.0",
162
+
datetime(2026, 9, 5, 12, 1, tzinfo=UTC),
163
+
datetime(2026, 9, 5, 12, 2, tzinfo=UTC),
164
+
"minute",
165
+
)
166
+
```
167
+
168
+
The returned `symbol` identifies the requested series; `contract` retains the resolved contract
169
+
when the SDK supplies it. Select the same dataset, continuous roll rule and price convention used
170
+
for the stored series. This method does not reconstruct adjusted continuous prices or select another
171
+
contract to fill an absence. Databento timestamps identify interval starts, and no-trade intervals
172
+
can have no OHLCV record. A download may therefore leave gaps unresolved.
173
+
174
+
For a stored report, see [targeted source recovery](../user-guide/incremental-updates.md#download-real-observations-for-a-selected-report).
175
+
For raw Parquet files, this method returns a frame for explicit review and merging; it does not
176
+
rewrite those files. Requests are metered. Use the native client's cost estimate before broad
177
+
requests. The endpoint and bar semantics follow the [historical range API](https://databento.com/docs/api-reference-historical/timeseries/timeseries-get-range)
178
+
and [OHLCV specification](https://databento.com/docs/schemas-and-data-formats/ohlcv).
0 commit comments