finnhubio / Finnhub-API

Finnhub API provides institutional-grade financial data to investors, fintech startups and investment firms. We support real-time stock price, global fundamentals and alternative data. https://finnhub.io/docs/api
98 stars 6 forks source link

major development documentation mismatch #167

Closed llonchj closed 4 years ago

llonchj commented 4 years ago

What is the issue ?

The documentation in https://finnhub.io/docs/api#major-developments describes the response attribute datetime as UNIX ms and the sample response shows the attribute date.

How to reproduce the error ?

curl 'https://finnhub.io/api/v1/major-development?symbol=AAPL&token=YOURTOKEN'

What is the expected result and why do you think it's the correct result ?

The real API call returns datetime as a string in YYYY-MM-DD HH:MM:SS.

  1. The documentation for datetime should be replaced with the right format.
  2. The sample response (example) for this endpoint should show the attribute date instead of datetime.
finnhubio commented 4 years ago

Thank you for reporting. We will fix it asap