How to set a maximum purchase threshold for counter orders ?