list_protocols.
Use it first. The protocol values it returns are the only valid names for protocols, current_allocations, and constraints in an optimize call on the same chain and token.
Request
chain_id is one of the supported chains. token_address is the underlying token. Address case does not matter.
Response
net_apr_7d is a trailing measurement, not a forecast. The optimizer prices a market whose latest APR spikes above its 7-day average at the average. See risk rules.