René's URL Explorer Experiment


Title: KeyError: after_hours with Rest example in readme · Issue #69 · massive-com/client-python · GitHub

Open Graph Title: KeyError: after_hours with Rest example in readme · Issue #69 · massive-com/client-python

X Title: KeyError: after_hours with Rest example in readme · Issue #69 · massive-com/client-python

Description: from polygon import RESTClient def main(): key = "your api key" # RESTClient can be used as a context manager to facilitate closing the underlying http session # https://requests.readthedocs.io/en/master/user/advanced/#session-objects wi...

Open Graph Description: from polygon import RESTClient def main(): key = "your api key" # RESTClient can be used as a context manager to facilitate closing the underlying http session # https://requests.readthedocs.io/en/...

X Description: from polygon import RESTClient def main(): key = "your api key" # RESTClient can be used as a context manager to facilitate closing the underlying http session # https://requests.readthed...

Opengraph URL: https://github.com/massive-com/client-python/issues/69

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"KeyError: after_hours with Rest example in readme","articleBody":"from polygon import RESTClient\r\n\r\ndef main():\r\n    key = \"your api key\"\r\n\r\n    # RESTClient can be used as a context manager to facilitate closing the underlying http session\r\n    # https://requests.readthedocs.io/en/master/user/advanced/#session-objects\r\n    with RESTClient(key) as client:\r\n        resp = client.stocks_equities_daily_open_close(\"AAPL\", \"2018-03-02\")\r\n        print(f\"On: {resp.from_} Apple opened at {resp.open} and closed at {resp.close}\")\r\n\r\n\r\nif __name__ == '__main__':\r\n    main()\r\n\r\n---------------------------------------------------------------------------\r\nKeyError                                  Traceback (most recent call last)\r\n\u003cipython-input-13-c5e08e084552\u003e in \u003cmodule\u003e\r\n     13 \r\n     14 if __name__ == '__main__':\r\n---\u003e 15     main()\r\n\r\n\u003cipython-input-13-c5e08e084552\u003e in main()\r\n      8     # https://requests.readthedocs.io/en/master/user/advanced/#session-objects\r\n      9     with RESTClient(POLYGON_API_KEY) as client:\r\n---\u003e 10         resp = client.stocks_equities_daily_open_close(\"AAPL\", \"2018-03-02\")\r\n     11         print(f\"On: {resp.from_} Apple opened at {resp.open} and closed at {resp.close}\")\r\n     12 \r\n\r\n~/anaconda3/envs/test/lib/python3.8/site-packages/polygon/rest/client.py in stocks_equities_daily_open_close(self, symbol, date, **query_params)\r\n    126                                          **query_params) -\u003e models.StocksEquitiesDailyOpenCloseApiResponse:\r\n    127         endpoint = f\"{self.url}/v1/open-close/{symbol}/{date}\"\r\n--\u003e 128         return self._handle_response(\"StocksEquitiesDailyOpenCloseApiResponse\", endpoint, query_params)\r\n    129 \r\n    130     def stocks_equities_condition_mappings(self, ticktype,\r\n\r\n~/anaconda3/envs/test/lib/python3.8/site-packages/polygon/rest/client.py in _handle_response(self, response_type, endpoint, params)\r\n     31         resp: requests.Response = self._session.get(endpoint, params=params, timeout=self.timeout)\r\n     32         if resp.status_code == 200:\r\n---\u003e 33             return unmarshal.unmarshal_json(response_type, resp.json())\r\n     34         else:\r\n     35             resp.raise_for_status()\r\n\r\n~/anaconda3/envs/test/lib/python3.8/site-packages/polygon/rest/models/unmarshal.py in unmarshal_json(response_type, resp_json)\r\n      6 def unmarshal_json(response_type, resp_json) -\u003e Type[models.AnyDefinition]:\r\n      7     obj = models.name_to_class[response_type]()\r\n----\u003e 8     obj.unmarshal_json(resp_json)\r\n      9     return obj\r\n\r\n~/anaconda3/envs/test/lib/python3.8/site-packages/polygon/rest/models/definitions.py in unmarshal_json(self, input_json)\r\n     22             return self\r\n     23         elif isinstance(input_json, dict):\r\n---\u003e 24             self._unmarshal_json_object(input_json)\r\n     25             return self\r\n     26         elif isinstance(input_json, float) or isinstance(input_json, int):\r\n\r\n~/anaconda3/envs/test/lib/python3.8/site-packages/polygon/rest/models/definitions.py in _unmarshal_json_object(self, input_json)\r\n     40             if key in self._swagger_name_to_python:\r\n     41                 attribute_name = self._swagger_name_to_python[key]\r\n---\u003e 42                 if not self._attribute_is_primitive[attribute_name]:\r\n     43                     if attribute_name in self._attributes_to_types:\r\n     44                         attribute_type = self._attributes_to_types[attribute_name]\r\n\r\nKeyError: 'after_hours'","author":{"url":"https://github.com/satyan-g","@type":"Person","name":"satyan-g"},"datePublished":"2021-05-09T02:40:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/69/client-python/issues/69"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1a70be05-c5a2-1462-4931-feab4b7c77fe
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id94A0:216A08:661613:891BA9:6A4DD0A0
html-safe-nonce4ef858c9868d8bc1e3e8d33abcaf4d048877fa8a5274fdee0128d65c33ac6b94
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEEwOjIxNkEwODo2NjE2MTM6ODkxQkE5OjZBNEREMEEwIiwidmlzaXRvcl9pZCI6IjE2OTIzODExNDEyMDg1MTg4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacecba2e73d1c86bfee7f5db4cfe8c537cbda81b0b996a584fb60311659553adc9
hovercard-subject-tagissue:881648947
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/massive-com/client-python/69/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09de674eebbf3409065de5fec6c7ca4c7ac13bd447e7c25ce3f8be8f9f42c99d/massive-com/client-python/issues/69
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09de674eebbf3409065de5fec6c7ca4c7ac13bd447e7c25ce3f8be8f9f42c99d/massive-com/client-python/issues/69
og:image:altfrom polygon import RESTClient def main(): key = "your api key" # RESTClient can be used as a context manager to facilitate closing the underlying http session # https://requests.readthedocs.io/en/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesatyan-g
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/massive-com/client-python git https://github.com/massive-com/client-python.git
octolytics-dimension-user_id191946194
octolytics-dimension-user_loginmassive-com
octolytics-dimension-repository_id216660192
octolytics-dimension-repository_nwomassive-com/client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id216660192
octolytics-dimension-repository_network_root_nwomassive-com/client-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/massive-com/client-python/issues/69#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmassive-com%2Fclient-python%2Fissues%2F69
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmassive-com%2Fclient-python%2Fissues%2F69
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=massive-com%2Fclient-python
Reloadhttps://github.com/massive-com/client-python/issues/69
Reloadhttps://github.com/massive-com/client-python/issues/69
Reloadhttps://github.com/massive-com/client-python/issues/69
Please reload this pagehttps://github.com/massive-com/client-python/issues/69
massive-com https://github.com/massive-com
client-pythonhttps://github.com/massive-com/client-python
Notifications https://github.com/login?return_to=%2Fmassive-com%2Fclient-python
Fork 356 https://github.com/login?return_to=%2Fmassive-com%2Fclient-python
Star 1.5k https://github.com/login?return_to=%2Fmassive-com%2Fclient-python
Code https://github.com/massive-com/client-python
Issues 12 https://github.com/massive-com/client-python/issues
Pull requests 6 https://github.com/massive-com/client-python/pulls
Actions https://github.com/massive-com/client-python/actions
Security and quality 0 https://github.com/massive-com/client-python/security
Insights https://github.com/massive-com/client-python/pulse
Code https://github.com/massive-com/client-python
Issues https://github.com/massive-com/client-python/issues
Pull requests https://github.com/massive-com/client-python/pulls
Actions https://github.com/massive-com/client-python/actions
Security and quality https://github.com/massive-com/client-python/security
Insights https://github.com/massive-com/client-python/pulse
KeyError: after_hours with Rest example in readmehttps://github.com/massive-com/client-python/issues/69#top
https://github.com/satyan-g
satyan-ghttps://github.com/satyan-g
on May 9, 2021https://github.com/massive-com/client-python/issues/69#issue-881648947
https://requests.readthedocs.io/en/master/user/advanced/#session-objectshttps://requests.readthedocs.io/en/master/user/advanced/#session-objects
response_typehttps://github.com/massive-com/client-python/issues/69
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.