Skip to main content

ZeqInsulin

Closed-loop insulin pump optimization. Zeqond-sampled CGM readings, predictive glucose modeling with R(t)-modulated basal rates for tighter glycemic control.

EndpointPOST /api/medical/insulin
Authapi-key
Rate limit15/min
Categorymedical-devices

Parameters

NameTypeRequiredDescription
glucoseReadingsarrayYesCGM glucose values [{ time, mg_dL }].
carbsConsumed_gnumberNoRecent carb intake in grams.
insulinOnBoard_UnumberNoCurrent active insulin units.
targetRangeobjectNo{ low: 70, high: 180 } mg/dL.

Returns

{ recommendedBasal_U_hr, bolusSuggestion_U, predictedGlucose_1hr, timeInRange_pct, zeqond }

Example

curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"glucoseReadings": [],
"carbsConsumed_g": 0,
"insulinOnBoard_U": 0,
"targetRange": "{ low: 70"
}' \
"https://zeqsdk.com/api/medical/insulin"

This protocol is a named building block — one of the operations you compose inside a state contract. Call it directly with the request above, or invoke it from a contract that fires on your machine's clock. Browse the whole library at GET /api/protocols; fetch this one at GET /api/protocols/zeq-insulin.