/quote endpoint of the Uniswap Trading API now supports a new integratorFee field which permits setting one fee in basis points, and the recipient for that fee. Any fee provided in the /quote request will be included in the /quote response (aggregatedOutputs and all portion fields) and subsequently coded into the calldata returned by the /swap response.
Why is this changing?
We have had strong demand from many of our integrators to give them more flexibility in establishing non-linear fee structures. Additionally, many of our builders have been slowed down by needing to contact us in order to establish a fee and fee recipient on an API key, which is traditionally how integrators would set fees.
What do I need to do?
If you currently set a fee through your API key, we strongly recommend now setting your fee through these fields and removing the fee from your API key. Contact your Uniswap Labs account manager to arrange removal of your static API key-based fee.