polygon-io / issues

Quickly track and report problems with polygon.io
29 stars 0 forks source link

Ticker Details v3 | Market Cap inaccurate for past data #316

Closed jpedrofs closed 1 week ago

jpedrofs commented 2 weeks ago

URL Ticker Details v3

Current Behavior Market cap in the API currently does not represent the market cap at a given point in time for past dates. When you transform based on past stock splits, the number seems reasonable, however you should not require developers to calculate this. It should be default behavior of the API.

Expected Behavior Market cap for past data should represent the market cap at that point in time, as it's independent from stock splits. When a stock splits, the share price and the number of shares outstanding adjust proportionally, leaving the market cap unchanged.

Examples

Market cap for Apple was larger in 2010 than it is today according to the API:

request: https://api.polygon.io/v3/reference/tickers/AAPL?date=2024-09-27 market cap in response: "market_cap": 3,463,350,367,230

request: https://api.polygon.io/v3/reference/tickers/AAPL?date=2010-09-27 market cap in response: "market_cap": 4,776,952,176,108

AHangstefer commented 1 week ago

Hi! Thanks for reaching out. We have a ticket open for this issue. Let me know if there's anything else I can help you with.

jpedrofs commented 1 week ago

Awesome, thanks for the quick follow up

On Mon, Oct 7, 2024 at 12:53 PM Anna Hangstefer @.***> wrote:

Closed #316 https://github.com/polygon-io/issues/issues/316 as completed.

— Reply to this email directly, view it on GitHub https://github.com/polygon-io/issues/issues/316#event-14546076012, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFZXAJH5LHMQKFUH35BYJLZ2LRB3AVCNFSM6AAAAABPBBQC3WVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGU2DMMBXGYYDCMQ . You are receiving this because you authored the thread.Message ID: @.***>