File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,15 @@ def get_aggs(
50
50
raw = raw ,
51
51
)
52
52
53
+ # TODO: next breaking change release move "market_type" to be 2nd mandatory
54
+ # param
53
55
def get_grouped_daily_aggs (
54
56
self ,
55
57
date : str ,
56
58
adjusted : Optional [bool ] = None ,
57
59
params : Optional [Dict [str , Any ]] = None ,
58
60
raw : bool = False ,
61
+ market_type : str = "stocks" ,
59
62
) -> Union [GroupedDailyAgg , HTTPResponse ]:
60
63
"""
61
64
Get the daily open, high, low, and close (OHLC) for the entire market.
@@ -66,7 +69,7 @@ def get_grouped_daily_aggs(
66
69
:param raw: Return raw object instead of results object
67
70
:return: List of grouped daily aggregates
68
71
"""
69
- url = f"/v2/aggs/grouped/locale/us/market/stocks /{ date } "
72
+ url = f"/v2/aggs/grouped/locale/us/market/{ market_type } /{ date } "
70
73
71
74
return self ._get (
72
75
path = url ,
You can’t perform that action at this time.
0 commit comments