@@ -244,10 +244,10 @@ def list_unit_prices(
244244 def get_shape (
245245 self ,
246246 dataset : Union [Dataset , str ],
247+ start : Union [pd .Timestamp , date , str , int ],
248+ end : Union [pd .Timestamp , date , str , int ],
247249 symbols : Optional [Union [List [str ], str ]] = None ,
248250 schema : Union [Schema , str ] = "trades" ,
249- start : Optional [Union [pd .Timestamp , date , str , int ]] = None ,
250- end : Optional [Union [pd .Timestamp , date , str , int ]] = None ,
251251 encoding : Union [Encoding , str ] = "dbz" ,
252252 stype_in : Optional [Union [SType , str ]] = "native" ,
253253 limit : Optional [int ] = None ,
@@ -261,17 +261,17 @@ def get_shape(
261261 ----------
262262 dataset : Dataset or str
263263 The dataset code for the request.
264+ start : pd.Timestamp or date or str or int
265+ The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
266+ If an integer is passed, then this represents nanoseconds since UNIX epoch.
267+ end : pd.Timestamp or date or str or int
268+ The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
269+ If an integer is passed, then this represents nanoseconds since UNIX epoch.
264270 symbols : List[Union[str, int]] or str, optional
265271 The product symbols to filter for. Takes up to 2,000 symbols per request.
266272 If `*` or ``None`` then will be for **all** symbols.
267273 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
268274 The data record schema for the request.
269- start : pd.Timestamp or date or str or int, optional
270- The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
271- If an integer is passed, then this represents nanoseconds since UNIX epoch.
272- end : pd.Timestamp or date or str or int, optional
273- The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
274- If an integer is passed, then this represents nanoseconds since UNIX epoch.
275275 encoding : Encoding or str {'dbz', 'csv', 'json'}, optional
276276 The data encoding.
277277 stype_in : SType or str, default 'native'
@@ -313,10 +313,10 @@ def get_shape(
313313 def get_billable_size (
314314 self ,
315315 dataset : Union [Dataset , str ],
316+ start : Union [pd .Timestamp , date , str , int ],
317+ end : Union [pd .Timestamp , date , str , int ],
316318 symbols : Optional [Union [List [str ], str ]] = None ,
317319 schema : Union [Schema , str ] = "trades" ,
318- start : Optional [Union [pd .Timestamp , date , str , int ]] = None ,
319- end : Optional [Union [pd .Timestamp , date , str , int ]] = None ,
320320 stype_in : Optional [Union [SType , str ]] = "native" ,
321321 limit : Optional [int ] = None ,
322322 ) -> int :
@@ -330,17 +330,17 @@ def get_billable_size(
330330 ----------
331331 dataset : Dataset or str
332332 The dataset code for the request.
333- symbols : List[Union[str, int]] or str, optional
334- The product symbols to filter for. Takes up to 2,000 symbols per request.
335- If `*` or ``None`` then will be for **all** symbols.
336- 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
337- The data record schema for the request.
338333 start : pd.Timestamp or date or str or int, optional
339334 The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
340335 If an integer is passed, then this represents nanoseconds since UNIX epoch.
341336 end : pd.Timestamp or date or str or int, optional
342337 The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
343338 If an integer is passed, then this represents nanoseconds since UNIX epoch.
339+ symbols : List[Union[str, int]] or str, optional
340+ The product symbols to filter for. Takes up to 2,000 symbols per request.
341+ If `*` or ``None`` then will be for **all** symbols.
342+ 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
343+ The data record schema for the request.
344344 stype_in : SType or str, default 'native'
345345 The input symbology type to resolve from.
346346 limit : int, optional
@@ -357,10 +357,10 @@ def get_billable_size(
357357
358358 params : List [Tuple [str , str ]] = super ()._timeseries_params (
359359 dataset = dataset ,
360- symbols = symbols ,
361- schema = Schema (schema ),
362360 start = start ,
363361 end = end ,
362+ symbols = symbols ,
363+ schema = Schema (schema ),
364364 stype_in = SType (stype_in ),
365365 limit = limit ,
366366 )
@@ -376,11 +376,11 @@ def get_billable_size(
376376 def get_cost (
377377 self ,
378378 dataset : Union [Dataset , str ],
379+ start : Union [pd .Timestamp , date , str , int ],
380+ end : Union [pd .Timestamp , date , str , int ],
379381 mode : Union [FeedMode , str ] = "historical-streaming" ,
380382 symbols : Optional [Union [List [str ], str ]] = None ,
381383 schema : Union [Schema , str ] = "trades" ,
382- start : Optional [Union [pd .Timestamp , date , str , int ]] = None ,
383- end : Optional [Union [pd .Timestamp , date , str , int ]] = None ,
384384 stype_in : Optional [Union [SType , str ]] = "native" ,
385385 limit : Optional [int ] = None ,
386386 ) -> float :
@@ -394,19 +394,19 @@ def get_cost(
394394 ----------
395395 dataset : Dataset or str
396396 The dataset code for the request.
397+ start : pd.Timestamp or date or str or int
398+ The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
399+ If an integer is passed, then this represents nanoseconds since UNIX epoch.
400+ end : pd.Timestamp or date or str or int
401+ The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
402+ If an integer is passed, then this represents nanoseconds since UNIX epoch.
397403 mode : FeedMode or str {'live', 'historical-streaming', 'historical'}, default 'historical-streaming'
398404 The data feed mode for the request.
399405 symbols : List[Union[str, int]] or str, optional
400406 The product symbols to filter for. Takes up to 2,000 symbols per request.
401407 If `*` or ``None`` then will be for **all** symbols.
402408 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
403409 The data record schema for the request.
404- start : pd.Timestamp or date or str or int, optional
405- The start datetime for the request range. Assumes UTC as timezone unless otherwise specified.
406- If an integer is passed, then this represents nanoseconds since UNIX epoch.
407- end : pd.Timestamp or date or str or int, optional
408- The end datetime for the request range. Assumes UTC as timezone unless otherwise specified.
409- If an integer is passed, then this represents nanoseconds since UNIX epoch.
410410 stype_in : SType or str, default 'native'
411411 The input symbology type to resolve from.
412412 limit : int, optional
@@ -424,10 +424,10 @@ def get_cost(
424424
425425 params : List [Tuple [str , str ]] = super ()._timeseries_params (
426426 dataset = dataset ,
427- symbols = symbols ,
428- schema = Schema (schema ),
429427 start = start ,
430428 end = end ,
429+ symbols = symbols ,
430+ schema = Schema (schema ),
431431 stype_in = SType (stype_in ),
432432 limit = limit ,
433433 )
0 commit comments