How do you calculate the price impact?
What would be the formula look like for swap of 350 ADA for C4?
If you can read code, they have a method for computing estimated receive amount for a swap in the blockfrost adapter. You should be able to use this to calculate price impact.
I have created an analogous function in the Python library I maintain: