Title: Historic market cap data is incorrect · Issue #1016 · massive-com/client-python · GitHub
Open Graph Title: Historic market cap data is incorrect · Issue #1016 · massive-com/client-python
X Title: Historic market cap data is incorrect · Issue #1016 · massive-com/client-python
Description: Describe the bug Historic market cap data is incorrect To Reproduce client = RESTClient(api_key=api_key) date = ["2004-03-30", "2004-04-01", "2017-03-30", "2017-04-01", "2026-03-27"] ticker = "AAPL" for d in date: details = client.get_ti...
Open Graph Description: Describe the bug Historic market cap data is incorrect To Reproduce client = RESTClient(api_key=api_key) date = ["2004-03-30", "2004-04-01", "2017-03-30", "2017-04-01", "2026-03-27"] ticker = "AAPL...
X Description: Describe the bug Historic market cap data is incorrect To Reproduce client = RESTClient(api_key=api_key) date = ["2004-03-30", "2004-04-01", "2017-03-30", "2017-0...
Opengraph URL: https://github.com/massive-com/client-python/issues/1016
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Historic market cap data is incorrect","articleBody":"**Describe the bug**\nHistoric market cap data is incorrect\n\n**To Reproduce**\n```\nclient = RESTClient(api_key=api_key)\ndate = [\"2004-03-30\", \"2004-04-01\", \"2017-03-30\", \"2017-04-01\", \"2026-03-27\"]\nticker = \"AAPL\"\nfor d in date:\n details = client.get_ticker_details(ticker, date=d)\n print(f\"date: {d} market_cap: {int(details.market_cap)/1e9:.2f}B\")\n```\n\nOutput:\nAAPL:\ndate: 2004-03-30 market_cap: 458.07B\ndate: 2004-04-01 market_cap: 444.78B\ndate: 2017-03-30 market_cap: 2361.37B\ndate: 2017-04-01 market_cap: 2356.94B\ndate: 2026-03-27 market_cap: 3652.67B\n\nMSFT:\ndate: 2004-03-30 market_cap: 189.20B\ndate: 2004-04-01 market_cap: 188.30B\ndate: 2017-03-30 market_cap: 493.35B\ndate: 2017-04-01 market_cap: 494.48B\ndate: 2026-03-27 market_cap: 2649.24B\n\n\n**Expected behavior**\nAAPL is off by almost 2 magnitude on 2004-03-30 according to https://companiesmarketcap.com/apple/marketcap/\n\nMSFT is off by ~80B on 2004-03-30 according to https://companiesmarketcap.com/microsoft/marketcap/\n\n2017 data also off\n\n\n**Additional context**\nAdditionally, is there other ways of querying for market cap and weighted_shares_outstanding of a ticker for a range of dates, other than to query get_ticker_details for each date separately?\n","author":{"url":"https://github.com/jimwz","@type":"Person","name":"jimwz"},"datePublished":"2026-05-09T21:17:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1016/client-python/issues/1016"}
| 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:9daa7469-1f0f-55ec-3970-64a1db773977 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1C0:78281:208D313:2F2E1A8:6A4D0B4A |
| html-safe-nonce | be93596974df2b2a1169b7c355ac4f133004713cf2b703d8e62f447a4f03c432 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUMwOjc4MjgxOjIwOEQzMTM6MkYyRTFBODo2QTREMEI0QSIsInZpc2l0b3JfaWQiOiI2NzU4MDgwNDE3MjU5OTE2MTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba8bb20b4eae0dbe67537078319bdc15452454b267b3bfd76837323536a1bf06 |
| hovercard-subject-tag | issue:4413859263 |
| 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/1016/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e074b387386898a434856782dbabc0158cdd18a3cf132106b6015582a5996de1/massive-com/client-python/issues/1016 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e074b387386898a434856782dbabc0158cdd18a3cf132106b6015582a5996de1/massive-com/client-python/issues/1016 |
| og:image:alt | Describe the bug Historic market cap data is incorrect To Reproduce client = RESTClient(api_key=api_key) date = ["2004-03-30", "2004-04-01", "2017-03-30", "2017-04-01", "2026-03-27"] ticker = "AAPL... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jimwz |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| 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 | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width