tdex-network / tdex-analytics

Analytics and Historical data feed about TDEX Network
MIT License
0 stars 6 forks source link

fix reference price not converting base/quote asset in kind #32

Closed tiero closed 2 years ago

tiero commented 2 years ago

The purpose of the reference_{base,quote}_price field is to simply show the amount {base,quote}_price converted against a well known price feed.

Take into consideration most of the time it will happen the base asset has no direct exchange rate somewhere else, so it must be converted to quote price first and calculate proportionally.

tiero commented 2 years ago

https://github.com/tdex-network/tdex-analytics/issues/24#issuecomment-1100198872