How do you know? Can you give numbers?Yeah, the INTC historical volatility was closer to the mark I'd say.
My above 2 calculations are for AMD for DaysInYear=252 and 365.
Why? Have you used this API in the past?In any event, I would not trust TDAmeritrade's API to pick my sock color in the morning not to mention provide important financial data off of which to trade,
Which API do you use now?
I know, but I want to avoid keeping also a local database of stock prices.and there are an infinite number of ways to calculate historical volatility anyway, so if you want the "best answer" for you, you probably need to compute your own from a high-quality data source on the underlying. Or find a source you can trust that also provides real documentation of their method.
Normally the API should have all needed data, especially elementary data like such HV using industry-standard parameters.
TD has a "volatility" field for stock data, but it seems either buggy or uses a differrent algorithm.
As next I'll ask their support, though I had asked a similar question but which was regarding options volatility: there is a mysterious constant volatility=29 for all and each underlying, and the support said that it's an old experimental stuff or so, and that they will fix it or so after the transition to Schwab...
Last edited: