Skip to content

Commit

Permalink
api: add dia fair price feed
Browse files Browse the repository at this point in the history
  • Loading branch information
ns212 committed Jan 3, 2024
1 parent f201ca4 commit 293320f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/market_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ const fetchDiaAsset = async (asset) => {
}
if (asset in dia_xlsd) {
const prices = await fetchDiaXLSD();
const name = dia_xlsd[asset]
return {
[name]: {
'usd': prices.get(name).FairPrice
[asset]: {
'usd': prices.get(dia_xlsd[asset]).FairPrice
}
}
}
Expand Down

0 comments on commit 293320f

Please sign in to comment.