One could use Total precipitation archived to get daily total precipitation using forecast initialized at 00 UTC and selecting 24 hour step as shown in the request below:


#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "ti",
    "dataset": "tigge",
    "date": "2019-01-01/to/2019-01-31",
    "expver": "prod",
    "grid": "0.5/0.5",
    "levtype": "sfc",
    "origin": "ecmf",
    "param": "228228",
    "step": "24",
    "time": "00:00:00",
    "type": "fc",
    "target": "output",
})