I'm quite sure lot size and equity are not linked. Lot size is about the size of the order the account holder can place while equity is the available cash the account holder has to execute buy/sell orders.
I couldn't find the function you want, but it's just 1-2 lines of code, so... Code it yourself? XD