result = History.objects.filter(user=player.user, coin=coin).aggregate(total=models.Sum('amount'))