if you wanted to detect deposits and do withdrawal, You should just use those who provide APIs instead of creating one for yourself
the price you pay for building the security, the storage, hosting and bandwidth itself is almost in par with the prices and service at those providers