might be worth a look at Trade::SearchParams - we could probably use it here to get sanitized params