I wanted to find the stocks which have gained most % in profits in a day.
This is how I wish to approach the problem:
- Get the quotes of the stocks from the Quotes API - Sort stocks based on the expected change_percent filed (as per API documentation)
The problem is that the response does not have change_percent. This is frustrating.
So, I found net_change field in the API documentation and expected it to be having the hint of how the change happened to the stock value but to my disappointment - it has a default value of 0 for all the stocks:
How am I supposed to calculate the top gainers now?