Skip to content

Commit

Permalink
add binance as top
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Jul 15, 2024
1 parent 62ca0a4 commit cfafe2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/data/src/api/nearPrice/nearPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export const nearPrice = async (): Promise<ParsedDataReturn<string>> => {
try {
let res: NearPriceData;
try {
res = await fetchPrice<CoinGeckoNearPriceData>(COIN_GECKO_API, data => ({ price: data.near.usd }));
res = await fetchPrice<NearPriceData>(BINANCE_API, data => data);
} catch (err) {
res = await fetchPrice<NearPriceData>(BINANCE_API, data => data);
res = await fetchPrice<CoinGeckoNearPriceData>(COIN_GECKO_API, data => ({ price: data.near.usd }));
}
return parseData(res.price);
} catch (err) {
Expand Down

0 comments on commit cfafe2b

Please sign in to comment.