Skip to content

Commit b372473

Browse files
committed
DOC: Clarify filtering behavior in Historical API
1 parent 4babf5f commit b372473

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

databento/historical/api/batch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ def submit_job(
9595
schema : Schema or str {'mbo', 'mbp-1', 'mbp-10', 'trades', 'tbbo', 'ohlcv-1s', 'ohlcv-1m', 'ohlcv-1h', 'ohlcv-1d', 'definition', 'statistics', 'status'}, default 'trades' # noqa
9696
The data record schema for the request.
9797
start : pd.Timestamp, datetime, date, str, or int
98-
The start datetime of the request time range (inclusive).
98+
The start of the request time range (inclusive).
99+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
99100
Assumes UTC as timezone unless passed a tz-aware object.
100101
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
101102
end : pd.Timestamp, datetime, date, str, or int, optional
102-
The end datetime of the request time range (exclusive).
103+
The end of the request time range (exclusive).
104+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
103105
Assumes UTC as timezone unless passed a tz-aware object.
104106
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
105107
Defaults to the forward filled value of `start` based on the resolution provided.

databento/historical/api/timeseries.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ def get_range(
6161
The dataset code (string identifier) for the request.
6262
start : pd.Timestamp, datetime, date, str, or int
6363
The start datetime of the request time range (inclusive).
64+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
6465
Assumes UTC as timezone unless passed a tz-aware object.
6566
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
6667
end : pd.Timestamp, datetime, date, str, or int, optional
6768
The end datetime of the request time range (exclusive).
69+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
6870
Assumes UTC as timezone unless passed a tz-aware object.
6971
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
7072
Defaults to the forward filled value of `start` based on the resolution provided.
@@ -156,11 +158,13 @@ async def get_range_async(
156158
dataset : Dataset or str
157159
The dataset code (string identifier) for the request.
158160
start : pd.Timestamp, datetime, date, str, or int
159-
The start datetime of the request time range (inclusive).
161+
The start of the request time range (inclusive).
162+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
160163
Assumes UTC as timezone unless passed a tz-aware object.
161164
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
162165
end : pd.Timestamp, datetime, date, str, or int, optional
163-
The end datetime of the request time range (exclusive).
166+
The end of the request time range (exclusive).
167+
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
164168
Assumes UTC as timezone unless passed a tz-aware object.
165169
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
166170
Defaults to the forward filled value of `start` based on the resolution provided.

0 commit comments

Comments
 (0)