#NEWLINE# def get_balance( owner_id , currency ) : #NEWLINE# #INDENT# 'Return balance of the wallet and the wallet itself.\n\n    Calculated by summing together all the PENDING/FINALIZED transactions\n    in the wallet.\n    ' #NEWLINE# wallet_obj = get_wallet ( owner_id , wallet_obj ) #NEWLINE# return ( wallet_obj , wallet_obj . balance )