
/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
idstringOpportunity 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
anchornumberRecalc anchor (unix s) = the owner (baseline) campaign's startTimestamp.
atnumberAs-of time (unix s) to read the rate at; defaults to now.
periodnumberRecalc period in seconds (default 14 days).
https://api.merkl.xyz/v4/sofr-ratchet/opportunity/?anchor=curl -X GET "https://api.merkl.xyz/v4/sofr-ratchet/opportunity/11521673201667687989?anchor=1789664007"