balance api implemented