I think there is logic mistake in this line
https://github.com/2018kguo/RobinhoodBot/blob/f05c4b7b806aa59281b3c02fd80c86a37d1c4943/robinhoodbot/main.py#L235C1-L236C1
instead it should be
portfolio_value = float(profile_data.get('equity'))
it should not - cash to get the portfolio_value.
I think there is logic mistake in this line
https://github.com/2018kguo/RobinhoodBot/blob/f05c4b7b806aa59281b3c02fd80c86a37d1c4943/robinhoodbot/main.py#L235C1-L236C1
instead it should be
portfolio_value = float(profile_data.get('equity'))
it should not - cash to get the portfolio_value.