
What's your data requirements?
The 20 stock with most gains (percentage) yesterday
U

Result Generated
The percentage should be close-open or close-close of previous day?
U

Clarification
The calculation of 'percentage gain' can be ambiguous. It could mean:
- (close - open) / open * 100: The intraday gain, i.e., how much the stock moved from open to close on the same day.
- (close_today - close_yesterday) / close_yesterday * 100: The day-over-day gain, i.e., how much the stock's closing price changed compared to the previous day's close.
Your question is asking for clarification on which definition to use. Both are common in financial analytics, but the intent needs to be clarified to proceed correctly.
Top 20 stocks with losers yesterday
U

Result Generated