add type field for balance api