What is the code snippet to get the total amount of cash in my account after I sell all holdings?

Author