# sor.getSwaps price missmatch

**URL:** https://forum.balancer.fi/t/sor-getswaps-price-missmatch/2250
**Category:** General Chat
**Created:** [October 7, 2021, 5:58am UTC](https://forum.balancer.fi/t/sor-getswaps-price-missmatch/2250 "2021-10-07T05:58:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jterns](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jterns](https://forum.balancer.fi/u/jterns)
#### Post date: [October 7, 2021, 5:58am UTC](https://forum.balancer.fi/t/sor-getswaps-price-missmatch/2250/1 "2021-10-07T05:58:59Z")

</div>

Hi All, I realized that the quantity out you can get running this piece of code

await sor.fetchPools();

console.log(“Pools fetched!”);

const qtyIn = new BigNumber(quantityIn)  
.multipliedBy(10 \*\* token1Decimals)  
.toString()  
.split(".")[0];

console.log("Amount In → ", qtyIn);

let [swaps, amountOut] = await sor.getSwaps(  
token1Address,  
token2Address,  
“swapExactIn”,  
new BigNumber(qtyIn)  
);

const tempQtyOut = amountOut.dividedBy(10 \*\* token2Decimals);

console.log("Swaps → ", swaps);  
console.log("Amount Out → ", tempQtyOut.toString());

and what I get in the [app.balancer.fi](http://app.balancer.fi) trade app does not match.

Do you apply any logic on the price I can get from the getSwaps API call?

let [swaps, amountOut] = await sor.getSwaps(  
token1Address,  
token2Address,  
“swapExactIn”,  
new BigNumber(qtyIn)  
);

Do you discount the fees or do you do any other logic? I don’t understand why the prices do not match.

Thanks
