Put if condition for buying/selling