GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — adding support for locale change in get_grouped_daily_aggs (#367) · riddopic/client-python@20d7c33

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • polygon/rest
    • aggs.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎polygon/rest/aggs.py‎

Copy file name to clipboardExpand all lines: polygon/rest/aggs.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def get_grouped_daily_aggs(
6262
adjusted: Optional[bool] = None,
6363
params: Optional[Dict[str, Any]] = None,
6464
raw: bool = False,
65+
locale: str = "us",
6566
market_type: str = "stocks",
6667
include_otc: bool = False,
6768
options: Optional[RequestOptionBuilder] = None,
@@ -75,7 +76,7 @@ def get_grouped_daily_aggs(
7576
:param raw: Return raw object instead of results object
7677
:return: List of grouped daily aggregates
7778
"""
78-
url = f"/v2/aggs/grouped/locale/us/market/{market_type}/{date}"
79+
url = f"/v2/aggs/grouped/locale/{locale}/market/{market_type}/{date}"
7980

8081
return self._get(
8182
path=url,

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.