Skip to content

Commit 60920c7

Browse files
committed
MOD: Improve dataset condition endpoint
1 parent a652fc8 commit 60920c7

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

databento/historical/api/metadata.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ def list_datasets(
6161
----------
6262
start_date : date or str, optional
6363
The start date (UTC) for the request range.
64+
If `None` then first date available.
6465
end_date : date or str, optional
6566
The end date (UTC) for the request range.
67+
If `None` then last date available.
6668
6769
Returns
6870
-------
@@ -98,8 +100,10 @@ def list_schemas(
98100
The dataset code (string identifier) for the request.
99101
start_date : date or str, optional
100102
The start date (UTC) for the request range.
103+
If `None` then first date available.
101104
end_date : date or str, optional
102105
The end date (UTC) for the request range.
106+
If `None` then last date available.
103107
104108
Returns
105109
-------
@@ -238,24 +242,26 @@ def list_unit_prices(
238242
def get_dataset_condition(
239243
self,
240244
dataset: Union[Dataset, str],
241-
start_date: Union[date, str],
242-
end_date: Union[date, str],
245+
start_date: Union[date, str] = None,
246+
end_date: Union[date, str] = None,
243247
) -> Dict[str, Any]:
244248
"""
245249
Get the dataset condition from Databento.
246250
247251
Makes a `GET /metadata.get_dataset_condition` HTTP request.
248252
249-
Use this method to discover data availability and qualility.
253+
Use this method to discover data availability and quality.
250254
251255
Parameters
252256
----------
253257
dataset : Dataset or str
254258
The dataset code (string identifier) for the request.
255-
start_date : date or str
259+
start_date : date or str, optional
256260
The start date (UTC) for the request range.
257-
end_date : date or str
261+
If `None` then first date available.
262+
end_date : date or str, optional
258263
The end date (UTC) for the request range.
264+
If `None` then last date available.
259265
260266
Returns
261267
-------

0 commit comments

Comments
 (0)