Skip to content

Commit c6d8de5

Browse files
committed
DOC: Update wording around request range
1 parent 6807649 commit c6d8de5

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

databento/historical/api/batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ def submit_job(
9696
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
9797
The data record schema for the request.
9898
start : pd.Timestamp, datetime, date, str, or int
99-
The start of the request time range (inclusive).
99+
The inclusive start of the request range.
100100
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
101101
Assumes UTC as timezone unless passed a tz-aware object.
102102
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
103103
end : pd.Timestamp, datetime, date, str, or int, optional
104-
The end of the request time range (exclusive).
104+
The exclusive end of the request range.
105105
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
106106
Assumes UTC as timezone unless passed a tz-aware object.
107107
If an integer is passed, then this represents nanoseconds since the UNIX epoch.

databento/historical/api/metadata.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def list_datasets(
6767
Parameters
6868
----------
6969
start_date : date or str, optional
70-
The start date (UTC) for the request range.
70+
The inclusive UTC start date of the request range.
7171
If `None` then first date available.
7272
end_date : date or str, optional
73-
The end date (UTC) for the request range.
73+
The exclusive UTC end date of the request range.
7474
If `None` then last date available.
7575
7676
Returns
@@ -202,10 +202,10 @@ def get_dataset_condition(
202202
dataset : Dataset or str
203203
The dataset code (string identifier) for the request.
204204
start_date : date or str, optional
205-
The start date (UTC) for the request range.
205+
The inclusive UTC start date of the request range.
206206
If `None` then first date available.
207207
end_date : date or str, optional
208-
The end date (UTC) for the request range.
208+
The inclusive UTC end date of the request range.
209209
If `None` then last date available.
210210
211211
Returns
@@ -279,11 +279,11 @@ def get_record_count(
279279
dataset : Dataset or str
280280
The dataset code for the request.
281281
start : pd.Timestamp, datetime, date, str, or int
282-
The start datetime for the request range (inclusive).
282+
The inclusive start of the request range.
283283
Assumes UTC as timezone unless otherwise specified.
284284
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
285285
end : pd.Timestamp, datetime, date, str, or int, optional
286-
The end datetime for the request range (exclusive).
286+
The exclusive end of the request range.
287287
Assumes UTC as timezone unless otherwise specified.
288288
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
289289
Defaults to the forward filled value of `start` based on the resolution provided.
@@ -347,11 +347,11 @@ def get_billable_size(
347347
dataset : Dataset or str
348348
The dataset code for the request.
349349
start : pd.Timestamp, datetime, date, str, or int
350-
The start datetime for the request range (inclusive).
350+
The inclusive start of the request range.
351351
Assumes UTC as timezone unless otherwise specified.
352352
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
353353
end : pd.Timestamp, datetime, date, str, or int, optional
354-
The end datetime for the request range (exclusive).
354+
The exclusive end of the request range.
355355
Assumes UTC as timezone unless otherwise specified.
356356
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
357357
Defaults to the forward filled value of `start` based on the resolution provided.
@@ -417,11 +417,11 @@ def get_cost(
417417
dataset : Dataset or str
418418
The dataset code for the request.
419419
start : pd.Timestamp, datetime, date, str, or int
420-
The start datetime for the request range (inclusive).
420+
The inclusive start of the request range.
421421
Assumes UTC as timezone unless otherwise specified.
422422
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
423423
end : pd.Timestamp, datetime, date, str, or int, optional
424-
The end datetime for the request range (exclusive).
424+
The exclusive end of the request range.
425425
Assumes UTC as timezone unless otherwise specified.
426426
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
427427
Defaults to the forward filled value of `start` based on the resolution provided.

databento/historical/api/symbology.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ def resolve(
5151
stype_out : SType or str, default 'instrument_id'
5252
The output symbology type to resolve to.
5353
start_date : date or str
54-
The start date (UTC) of the request time range (inclusive).
54+
The inclusive UTC start date of the request range.
5555
end_date : date or str, optional
56-
The end date (UTC) of the request time range (exclusive).
56+
The exclusive UTC end date of the request range.
57+
Defaults to the forward filled value of `start` based on the resolution provided.
5758
5859
Returns
5960
-------

databento/historical/api/timeseries.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ def get_range(
6060
dataset : Dataset or str
6161
The dataset code (string identifier) for the request.
6262
start : pd.Timestamp, datetime, date, str, or int
63-
The start datetime of the request time range (inclusive).
63+
The inclusive start of the request range.
6464
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
6565
Assumes UTC as timezone unless passed a tz-aware object.
6666
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
6767
end : pd.Timestamp, datetime, date, str, or int, optional
68-
The end datetime of the request time range (exclusive).
68+
The exclusive end of the request range.
6969
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
7070
Assumes UTC as timezone unless passed a tz-aware object.
7171
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
@@ -158,12 +158,12 @@ async def get_range_async(
158158
dataset : Dataset or str
159159
The dataset code (string identifier) for the request.
160160
start : pd.Timestamp, datetime, date, str, or int
161-
The start of the request time range (inclusive).
161+
The inclusive start of the request range.
162162
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
163163
Assumes UTC as timezone unless passed a tz-aware object.
164164
If an integer is passed, then this represents nanoseconds since the UNIX epoch.
165165
end : pd.Timestamp, datetime, date, str, or int, optional
166-
The end of the request time range (exclusive).
166+
The exclusive end of the request range.
167167
Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
168168
Assumes UTC as timezone unless passed a tz-aware object.
169169
If an integer is passed, then this represents nanoseconds since the UNIX epoch.

0 commit comments

Comments
 (0)