22
33from collections .abc import Iterable
44from datetime import date
5+ from datetime import datetime
56from typing import Any
67
78import pandas as pd
@@ -261,8 +262,8 @@ def get_dataset_range(
261262 def get_record_count (
262263 self ,
263264 dataset : Dataset | str ,
264- start : pd .Timestamp | date | str | int ,
265- end : pd .Timestamp | date | str | int | None = None ,
265+ start : pd .Timestamp | datetime | date | str | int ,
266+ end : pd .Timestamp | datetime | date | str | int | None = None ,
266267 symbols : Iterable [str | int ] | str | int | None = None ,
267268 schema : Schema | str = "trades" ,
268269 stype_in : SType | str = "raw_symbol" ,
@@ -277,11 +278,11 @@ def get_record_count(
277278 ----------
278279 dataset : Dataset or str
279280 The dataset code for the request.
280- start : pd.Timestamp or date or str or int
281+ start : pd.Timestamp, datetime, date, str, or int
281282 The start datetime for the request range (inclusive).
282283 Assumes UTC as timezone unless otherwise specified.
283284 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
284- end : pd.Timestamp or date or str or int, optional
285+ end : pd.Timestamp, datetime, date, str, or int, optional
285286 The end datetime for the request range (exclusive).
286287 Assumes UTC as timezone unless otherwise specified.
287288 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
@@ -329,8 +330,8 @@ def get_record_count(
329330 def get_billable_size (
330331 self ,
331332 dataset : Dataset | str ,
332- start : pd .Timestamp | date | str | int ,
333- end : pd .Timestamp | date | str | int | None = None ,
333+ start : pd .Timestamp | datetime | date | str | int ,
334+ end : pd .Timestamp | datetime | date | str | int | None = None ,
334335 symbols : Iterable [str | int ] | str | int | None = None ,
335336 schema : Schema | str = "trades" ,
336337 stype_in : SType | str = "raw_symbol" ,
@@ -346,17 +347,17 @@ def get_billable_size(
346347 ----------
347348 dataset : Dataset or str
348349 The dataset code for the request.
349- start : pd.Timestamp or date or str or int
350+ start : pd.Timestamp, datetime, date, str, or int
350351 The start datetime for the request range (inclusive).
351352 Assumes UTC as timezone unless otherwise specified.
352353 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
353- end : pd.Timestamp or date or str or int, optional
354+ end : pd.Timestamp, datetime, date, str, or int, optional
354355 The end datetime for the request range (exclusive).
355356 Assumes UTC as timezone unless otherwise specified.
356357 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
357358 Values are forward filled based on the resolution provided.
358359 Defaults to the same value as `start`.
359- symbols : Iterable[str | int] or str or int, optional
360+ symbols : Iterable[str | int] or str, or int, optional
360361 The instrument symbols to filter for. Takes up to 2,000 symbols per request.
361362 If 'ALL_SYMBOLS' or `None` then will select **all** symbols.
362363 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
@@ -398,8 +399,8 @@ def get_billable_size(
398399 def get_cost (
399400 self ,
400401 dataset : Dataset | str ,
401- start : pd .Timestamp | date | str | int ,
402- end : pd .Timestamp | date | str | int | None = None ,
402+ start : pd .Timestamp | datetime | date | str | int ,
403+ end : pd .Timestamp | datetime | date | str | int | None = None ,
403404 mode : FeedMode | str = "historical-streaming" ,
404405 symbols : Iterable [str | int ] | str | int | None = None ,
405406 schema : Schema | str = "trades" ,
@@ -416,11 +417,11 @@ def get_cost(
416417 ----------
417418 dataset : Dataset or str
418419 The dataset code for the request.
419- start : pd.Timestamp or date or str or int
420+ start : pd.Timestamp, datetime, date, str, or int
420421 The start datetime for the request range (inclusive).
421422 Assumes UTC as timezone unless otherwise specified.
422423 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
423- end : pd.Timestamp or date or str or int, optional
424+ end : pd.Timestamp, datetime, date, str, or int, optional
424425 The end datetime for the request range (exclusive).
425426 Assumes UTC as timezone unless otherwise specified.
426427 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
0 commit comments