Added getTotalVolume()

Also fixed a minor legacy RPC bug.