@@ -162,7 +162,7 @@ def list_unit_prices(
162162 schema : Optional [Union [Schema , str ]] = None ,
163163 ) -> Union [float , Dict [str , Any ]]:
164164 """
165- List unit prices for each data schema in dollars per gigabyte.
165+ List unit prices for each data schema in US dollars per gigabyte.
166166
167167 Makes a `GET /metadata.list_unit_prices` HTTP request.
168168
@@ -273,7 +273,7 @@ def get_record_count(
273273 self ,
274274 dataset : Union [Dataset , str ],
275275 start : Union [pd .Timestamp , date , str , int ],
276- end : Union [pd .Timestamp , date , str , int ],
276+ end : Optional [ Union [pd .Timestamp , date , str , int ]] = None ,
277277 symbols : Optional [Union [List [str ], str ]] = None ,
278278 schema : Union [Schema , str ] = "trades" ,
279279 stype_in : Optional [Union [SType , str ]] = "native" ,
@@ -289,11 +289,15 @@ def get_record_count(
289289 dataset : Dataset or str
290290 The dataset code for the request.
291291 start : pd.Timestamp or date or str or int
292- The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
292+ The start datetime for the request range (inclusive).
293+ Assumes UTC as timezone unless otherwise specified.
293294 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
294- end : pd.Timestamp or date or str or int
295- The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
295+ end : pd.Timestamp or date or str or int, optional
296+ The end datetime for the request range (exclusive).
297+ Assumes UTC as timezone unless otherwise specified.
296298 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
299+ Values are forward filled based on the resolution provided.
300+ Defaults to the same value as `start`.
297301 symbols : List[Union[str, int]] or str, optional
298302 The product symbols to filter for. Takes up to 2,000 symbols per request.
299303 If 'ALL_SYMBOLS' or `None` then will be for **all** symbols.
@@ -337,7 +341,7 @@ def get_billable_size(
337341 self ,
338342 dataset : Union [Dataset , str ],
339343 start : Union [pd .Timestamp , date , str , int ],
340- end : Union [pd .Timestamp , date , str , int ],
344+ end : Optional [ Union [pd .Timestamp , date , str , int ]] = None ,
341345 symbols : Optional [Union [List [str ], str ]] = None ,
342346 schema : Union [Schema , str ] = "trades" ,
343347 stype_in : Optional [Union [SType , str ]] = "native" ,
@@ -353,12 +357,16 @@ def get_billable_size(
353357 ----------
354358 dataset : Dataset or str
355359 The dataset code for the request.
356- start : pd.Timestamp or date or str or int, optional
357- The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
360+ start : pd.Timestamp or date or str or int
361+ The start datetime for the request range (inclusive).
362+ Assumes UTC as timezone unless otherwise specified.
358363 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
359364 end : pd.Timestamp or date or str or int, optional
360- The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
365+ The end datetime for the request range (exclusive).
366+ Assumes UTC as timezone unless otherwise specified.
361367 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
368+ Values are forward filled based on the resolution provided.
369+ Defaults to the same value as `start`.
362370 symbols : List[Union[str, int]] or str, optional
363371 The product symbols to filter for. Takes up to 2,000 symbols per request.
364372 If 'ALL_SYMBOLS' or `None` then will be for **all** symbols.
@@ -380,7 +388,7 @@ def get_billable_size(
380388 params : List [Tuple [str , Optional [str ]]] = [
381389 ("dataset" , validate_semantic_string (dataset , "dataset" )),
382390 ("start" , datetime_to_string (start )),
383- ("end" , datetime_to_string (end )),
391+ ("end" , optional_datetime_to_string (end )),
384392 ("symbols" , symbols_list ),
385393 ("schema" , str (validate_enum (schema , Schema , "schema" ))),
386394 ("stype_in" , str (stype_in_valid )),
@@ -402,15 +410,15 @@ def get_cost(
402410 self ,
403411 dataset : Union [Dataset , str ],
404412 start : Union [pd .Timestamp , date , str , int ],
405- end : Union [pd .Timestamp , date , str , int ],
413+ end : Optional [ Union [pd .Timestamp , date , str , int ]] = None ,
406414 mode : Union [FeedMode , str ] = "historical-streaming" ,
407415 symbols : Optional [Union [List [str ], str ]] = None ,
408416 schema : Union [Schema , str ] = "trades" ,
409417 stype_in : Optional [Union [SType , str ]] = "native" ,
410418 limit : Optional [int ] = None ,
411419 ) -> float :
412420 """
413- Request the cost in US Dollars for historical streaming or batched files
421+ Request the cost in US dollars for historical streaming or batched files
414422 from Databento.
415423
416424 Makes a `GET /metadata.get_cost` HTTP request.
@@ -420,11 +428,15 @@ def get_cost(
420428 dataset : Dataset or str
421429 The dataset code for the request.
422430 start : pd.Timestamp or date or str or int
423- The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
431+ The start datetime for the request range (inclusive).
432+ Assumes UTC as timezone unless otherwise specified.
424433 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
425- end : pd.Timestamp or date or str or int
426- The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
434+ end : pd.Timestamp or date or str or int, optional
435+ The end datetime for the request range (exclusive).
436+ Assumes UTC as timezone unless otherwise specified.
427437 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
438+ Values are forward filled based on the resolution provided.
439+ Defaults to the same value as `start`.
428440 mode : FeedMode or str {'live', 'historical-streaming', 'historical'}, default 'historical-streaming'
429441 The data feed mode for the request.
430442 symbols : List[Union[str, int]] or str, optional
@@ -440,15 +452,15 @@ def get_cost(
440452 Returns
441453 -------
442454 float
443- The cost in US Dollars .
455+ The cost in US dollars .
444456
445457 """
446458 stype_in_valid = validate_enum (stype_in , SType , "stype_in" )
447459 symbols_list = optional_symbols_list_to_string (symbols , stype_in_valid )
448- params : List [Tuple [str , str ]] = [
460+ params : List [Tuple [str , Optional [ str ] ]] = [
449461 ("dataset" , validate_semantic_string (dataset , "dataset" )),
450462 ("start" , datetime_to_string (start )),
451- ("end" , datetime_to_string (end )),
463+ ("end" , optional_datetime_to_string (end )),
452464 ("symbols" , symbols_list ),
453465 ("schema" , str (validate_enum (schema , Schema , "schema" ))),
454466 ("stype_in" , str (stype_in_valid )),
0 commit comments