Fix balance counting error, add circulating money to json api