Closed tiero closed 2 years ago
Example for L-BTC-USDt
Latest price for 100M sats amount of trade amount > $ 40,000
Base Price: 0,000025 L-BTC
Quote Price: 40,000 USDt
Reference Base Price converted: 0.93 EUR
Reference Quote Price converted: 37014.45 EUR
At the moment we not supporting converting to a reference currency (ie. FIAT).
What we should do is mapping market to specific formula with URL
Example:
We have a pair like COIN-USDt, where COIN is any asset that is not "stable" in value against FIAT (like L-BTC) we know that to get the reference price in EUR for each we need
The conversion is still valid if the quote asset is not a stablecoin, we only need to be sure there is a direct price feed QUOTE > FIAT, if not we can't return reference price conversion (maybe we should return empty?)