I would like to use the REST API to implement a stock scanner with custom criteria. For example, a scanner for BiggestPercentGain would return a list of stock symbol, percentageGain, high, low, open, close. I'd also like to backtest a scanner, for example, run a scanner on a supplied day from the historical data. Is that possible? Can anyone point me to some sample or documentation?

Thanks, John