Setting maximum number of daily trades on account?

Product request: setting a limit on the number of daily trades for an account

Although I try to be careful with my code, one of the few things that keeps me up at night (or from taking a nap during the day) is the possibility of an accidental loop that forever buys and sells, paying the bid-ask spread until my account is zero. I have been thinking of elaborate fail-safes, but a more direct solution (to at least limit the damage) would be for the customer to specify a maximum number of daily trades. Thoughts?

Hey @learning_to_trade

If there is not already an open issue for this on the Alpaca API GitHub Repo please open one there as it is easier to sort and track.

Thank you,
Jason from Alpaca