Why is there no API for account balance?

+1
Checking the remaining credit through the API could lead to many enhancements in our code, especially for projects running long tasks.