refactor(api): moving rules to stocks