Title: Client get_ticket_types() errors out on "options" asset class · Issue #907 · massive-com/client-python · GitHub
Open Graph Title: Client get_ticket_types() errors out on "options" asset class · Issue #907 · massive-com/client-python
X Title: Client get_ticket_types() errors out on "options" asset class · Issue #907 · massive-com/client-python
Description: Describe the bug The get_ticker_types() and/or the /v3/reference/tickers/types behaves unexpectedly when "options" is used as a the asset class. If I run the query in the documentation page, I get a 200 response with no results. To Repro...
Open Graph Description: Describe the bug The get_ticker_types() and/or the /v3/reference/tickers/types behaves unexpectedly when "options" is used as a the asset class. If I run the query in the documentation page, I get ...
X Description: Describe the bug The get_ticker_types() and/or the /v3/reference/tickers/types behaves unexpectedly when "options" is used as a the asset class. If I run the query in the documentation pa...
Opengraph URL: https://github.com/massive-com/client-python/issues/907
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client get_ticket_types() errors out on \"options\" asset class","articleBody":"**Describe the bug**\n\n\nThe `get_ticker_types()` and/or the `/v3/reference/tickers/types` behaves unexpectedly when `\"options\"` is used as a the asset class.\n\nIf I run the query in the documentation page, I get a 200 response with no results.\n\n\n**To Reproduce**\n\nWith the client:\n\n```\nclient = RESTClient(polygon_key)\ntypes = client.get_ticker_types(asset_class=\"options\", locale=\"us\")\n```\n\nor with requests:\n\n```\nresp = requests.get(\n url=\"https://api.polygon.io/v3/reference/tickers/types\",\n params={\n \"apiKey\": polygon_key,\n \"asset_class\": \"options\",\n \"locale\": \"us\",\n }\n)\nprint(resp.status_code)\nprint(resp.json())\n```\n\n\n**Expected behavior**\n\nI expected to receive the list of ticker types for options, analogously with how the endpoint works for stocks.\n\n**Observed behavior**\n\nUsing the client I get:\n\n`TypeError: polygon.rest.models.tickers.TickerTypes() argument after ** must be a mapping, not NoneType`\n\nand with requests:\n\n```\n200\n{'results': None, 'count': 0, 'status': 'OK', 'request_id': '14e8456dd17092c22d5d062f0c99434d'}\n```\n","author":{"url":"https://github.com/rz","@type":"Person","name":"rz"},"datePublished":"2025-09-01T18:46:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/907/client-python/issues/907"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:752f5bf3-cdbf-0809-3cca-8530f0ef2136 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 849A:115683:1774379:1FC2610:6A4C8DBB |
| html-safe-nonce | e3d6c7fd412f7eb7cb93c61580c518d684cf5cb2e6c8c47ba4acf728454902ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDlBOjExNTY4MzoxNzc0Mzc5OjFGQzI2MTA6NkE0QzhEQkIiLCJ2aXNpdG9yX2lkIjoiMTgwMDYxNDE2Njc0Mzc4MDc5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7c6e9f607ca9bdde4205f26b0ba1decb365539d6cbb95027677001d9fccb1055 |
| hovercard-subject-tag | issue:3373539170 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/massive-com/client-python/907/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6780d5443b76b66ac1122f0dab052dd05e1ef5633983d687c56f41573ade681d/massive-com/client-python/issues/907 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6780d5443b76b66ac1122f0dab052dd05e1ef5633983d687c56f41573ade681d/massive-com/client-python/issues/907 |
| og:image:alt | Describe the bug The get_ticker_types() and/or the /v3/reference/tickers/types behaves unexpectedly when "options" is used as a the asset class. If I run the query in the documentation page, I get ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/massive-com/client-python git https://github.com/massive-com/client-python.git |
| octolytics-dimension-user_id | 191946194 |
| octolytics-dimension-user_login | massive-com |
| octolytics-dimension-repository_id | 216660192 |
| octolytics-dimension-repository_nwo | massive-com/client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 216660192 |
| octolytics-dimension-repository_network_root_nwo | massive-com/client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width