Connect EA to member's cabinet (web)



I want to build connection between EA and my member's cabinet for rent EA

For example

1. Rent fee for a month is $10

2. Member deposit $20 to their wallet

3. Every month, their wallet balance will reduce $10 for rental fee then the EA will start open posisition

4. But, if their wallet out of balance, the EA will stop open position

Can i make this EA?

Please, if yiu have an answer, i'll appriciate

(Btw, sorry for my english not so fluent)