11from __future__ import annotations
22
3+ from collections .abc import Iterable
34from datetime import date
45from typing import Any
56
@@ -261,7 +262,7 @@ def get_record_count(
261262 dataset : Dataset | str ,
262263 start : pd .Timestamp | date | str | int ,
263264 end : pd .Timestamp | date | str | int | None = None ,
264- symbols : list [str ] | str | None = None ,
265+ symbols : Iterable [str | int ] | str | int | None = None ,
265266 schema : Schema | str = "trades" ,
266267 stype_in : SType | str = "raw_symbol" ,
267268 limit : int | None = None ,
@@ -285,7 +286,7 @@ def get_record_count(
285286 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
286287 Values are forward filled based on the resolution provided.
287288 Defaults to the same value as `start`.
288- symbols : list [str | int] or str, optional
289+ symbols : Iterable [str | int] or str or int , optional
289290 The instrument symbols to filter for. Takes up to 2,000 symbols per request.
290291 If 'ALL_SYMBOLS' or `None` then will be for **all** symbols.
291292 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
@@ -329,7 +330,7 @@ def get_billable_size(
329330 dataset : Dataset | str ,
330331 start : pd .Timestamp | date | str | int ,
331332 end : pd .Timestamp | date | str | int | None = None ,
332- symbols : list [str ] | str | None = None ,
333+ symbols : Iterable [str | int ] | str | int | None = None ,
333334 schema : Schema | str = "trades" ,
334335 stype_in : SType | str = "raw_symbol" ,
335336 limit : int | None = None ,
@@ -354,7 +355,7 @@ def get_billable_size(
354355 If an integer is passed, then this represents nanoseconds since the UNIX epoch.
355356 Values are forward filled based on the resolution provided.
356357 Defaults to the same value as `start`.
357- symbols : list [str | int] or str, optional
358+ symbols : Iterable [str | int] or str or int , optional
358359 The instrument symbols to filter for. Takes up to 2,000 symbols per request.
359360 If 'ALL_SYMBOLS' or `None` then will be for **all** symbols.
360361 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
@@ -399,7 +400,7 @@ def get_cost(
399400 start : pd .Timestamp | date | str | int ,
400401 end : pd .Timestamp | date | str | int | None = None ,
401402 mode : FeedMode | str = "historical-streaming" ,
402- symbols : list [str ] | str | None = None ,
403+ symbols : Iterable [str | int ] | str | int | None = None ,
403404 schema : Schema | str = "trades" ,
404405 stype_in : SType | str = "raw_symbol" ,
405406 limit : int | None = None ,
@@ -426,7 +427,7 @@ def get_cost(
426427 Defaults to the same value as `start`.
427428 mode : FeedMode or str {'live', 'historical-streaming', 'historical'}, default 'historical-streaming'
428429 The data feed mode for the request.
429- symbols : list [str | int] or str, optional
430+ symbols : Iterable [str | int] or str or int , optional
430431 The instrument symbols to filter for. Takes up to 2,000 symbols per request.
431432 If 'ALL_SYMBOLS' or `None` then will be for **all** symbols.
432433 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
0 commit comments