Probably what you need is
http://127.0.0.1:1880/api-out?device=${deviceID}&StartDate={__from:date:YYYY-MM-DD}&EndDate={__to:date:YYYY-MM-DD} as your URL.
Where ${deviceID} is variable you need to create using dashboard template variable
and {__from:date:YYYY-MM-DD} and {__to:date:YYYY-MM-DD} will be coming from dashboard’s time range.
Read more about time variables here Add and manage variables | Grafana documentation