Sort:  

I'm not sure how it works as well, but it's important to know it before hitting the convert button. Sometimes it makes conversions a loss even tough SBD is at 80 Cent.

Median price ( feed price ) is a value you can just request from the blockchain.
I was looking for it in the code, but do not see where a debt ratio would be taken into account and somehow mixed to the median price ...