I have a function SELECT that takes in a list of symbol of parameters.
symbol
CREATE OR REPLACE FUNCTION api.stats(p_stocks text[]) RETURNS TABLE(symbol