Title: Technical Indicators incorrect Time Conversion · Issue #689 · massive-com/client-python · GitHub
Open Graph Title: Technical Indicators incorrect Time Conversion · Issue #689 · massive-com/client-python
X Title: Technical Indicators incorrect Time Conversion · Issue #689 · massive-com/client-python
Description: Describe the bug The time conversion is done from datetime when querying for technical indicators is to a nanoseconds resolution which conflicts with what Polygon is expecting (milliseconds). This, in turn, leads to Polygon thinking the ...
Open Graph Description: Describe the bug The time conversion is done from datetime when querying for technical indicators is to a nanoseconds resolution which conflicts with what Polygon is expecting (milliseconds). This,...
X Description: Describe the bug The time conversion is done from datetime when querying for technical indicators is to a nanoseconds resolution which conflicts with what Polygon is expecting (milliseconds). This,...
Opengraph URL: https://github.com/massive-com/client-python/issues/689
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Technical Indicators incorrect Time Conversion","articleBody":"**Describe the bug**\r\nThe time conversion is done from `datetime` when querying for technical indicators is to a nanoseconds resolution which conflicts with what Polygon is expecting (milliseconds). This, in turn, leads to Polygon thinking the wrong period is queried. \r\n\r\n**Code Links**\r\n- https://github.com/polygon-io/client-python/blob/b47b85245c24dcfd116ee93338ceba0c5f341f77/polygon/rest/base.py#L157-L166\r\n- https://github.com/polygon-io/client-python/blob/b47b85245c24dcfd116ee93338ceba0c5f341f77/polygon/rest/base.py#L186-L187\r\n\r\nAs you can see, this is different from the way say the Aggregates call is done:\r\nhttps://github.com/polygon-io/client-python/blob/b47b85245c24dcfd116ee93338ceba0c5f341f77/polygon/rest/aggs.py#L41-L45\r\n\r\nThe aggregates call is the right way. The SMA indicator also expects a millisecond timestamp: https://polygon.io/docs/stocks/get_v1_indicators_sma__stockticker\r\n","author":{"url":"https://github.com/TheBlackPlague","@type":"Person","name":"TheBlackPlague"},"datePublished":"2024-06-22T08:51:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/689/client-python/issues/689"}
| 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:2ddef59a-72a8-2926-3851-fffea3be6e30 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F20:2A5CAA:862AC8:C1346C:6A4CB1C2 |
| html-safe-nonce | c8a07ff7689f69c8f8583811958fc62fa3f19e04e03f840c886b205e774bbf04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjIwOjJBNUNBQTo4NjJBQzg6QzEzNDZDOjZBNENCMUMyIiwidmlzaXRvcl9pZCI6IjIzMzY1NzU0MDQ2NzA0OTcyMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf17ef11b3c99ec413d0e89b3d488022632296899de0bfa6abfbe3aeea4103fa |
| hovercard-subject-tag | issue:2367701970 |
| 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/689/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67f4964079c39fce29d658b7b7370025bc489fc3c169744ca0d2fb7b08d2b6da/massive-com/client-python/issues/689 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67f4964079c39fce29d658b7b7370025bc489fc3c169744ca0d2fb7b08d2b6da/massive-com/client-python/issues/689 |
| og:image:alt | Describe the bug The time conversion is done from datetime when querying for technical indicators is to a nanoseconds resolution which conflicts with what Polygon is expecting (milliseconds). This,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheBlackPlague |
| 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 | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width