Add AUD, CAD, GBP, NZD

This commit is contained in:
ekzyis 2022-09-18 03:54:13 +02:00
parent c184faf017
commit 464281c0e1
1 changed files with 5 additions and 1 deletions

View File

@ -11,8 +11,12 @@ export const PriceContext = React.createContext({
}) })
export const CURRENCY_SYMBOLS = { export const CURRENCY_SYMBOLS = {
'AUD': '$',
'CAD': '$',
'EUR': '€',
'GBP': '£',
'USD': '$', 'USD': '$',
'EUR': '€' 'NZD': '$'
} }
const endpoint = (fiat) => `https://api.coinbase.com/v2/prices/BTC-${fiat ?? 'USD'}/spot` const endpoint = (fiat) => `https://api.coinbase.com/v2/prices/BTC-${fiat ?? 'USD'}/spot`