Merkl Developer Portal logo
get

/v4/sofr-ratchet/opportunity/{id}

Current SOFR-spread-ratchet rate for an opportunity at an explicit anchor: frozen 14-day-mean TVL with last/next recalc, live SOFR, and the resulting baseline/boosted APYs. Computed on the fly from the same shared logic the engine distributes against.

Path parameters

idstring
required

Opportunity ID (path-only). Two accepted forms: (1) internal numeric hash, ≤20 digits (e.g. 7673870997270712040), or (2) composite {chainId}-{type}-{identifier} (e.g. 1-ERC20LOGPROCESSOR-0x35Cbe8542E70fa2f7F9cDF129F19e593F4b4f560). The composite form is path-only — query filters (?id=, ?opportunityId=) only accept the numeric form. NOT a campaign ID. See ID types.

Query parameters

anchornumber
required

Recalc anchor (unix s) = the owner (baseline) campaign's startTimestamp.

atnumber

As-of time (unix s) to read the rate at; defaults to now.

periodnumber

Recalc period in seconds (default 14 days).