How to invest 100% of your equity at once using the python code

Hi I am coding a trading bot and I am struggling to find a way to Invest 100% of my equity into one trade. Thank you to who ever helping me I really appreciate it.