How can I specify max allocation for a trade instead of hardcoding lots for purchasing options? I want to purchase say x number of lots that can be purchased for a total of 25000.
So if LTP for Nifty 50 ATM is 100 and lot size is 50, I want to purchase 5 lots as my max allocation is 25000.
if LTP is 101, the traded quantity will only be 4 lots.