diff --git a/apps/website/public/icons/crypto/polkadot.svg b/apps/website/public/icons/crypto/polkadot.svg new file mode 100644 index 0000000..7751a9c --- /dev/null +++ b/apps/website/public/icons/crypto/polkadot.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/website/src/app/demos/dashboard-trade/db/index.ts b/apps/website/src/app/demos/dashboard-trade/db/index.ts index b67adfa..da71dea 100644 --- a/apps/website/src/app/demos/dashboard-trade/db/index.ts +++ b/apps/website/src/app/demos/dashboard-trade/db/index.ts @@ -1,8 +1,16 @@ import {CoingeckoSimplePriceRequest} from '@/types/coingecko/simplePrices/RequestParams' +import Currency from '@/enums/CoingeckoCryptoCurrency' export function getCoingeckoRequestParams(): CoingeckoSimplePriceRequest { const coingeckoIds = [ - 'bitcoin,ethereum,solana,chainlink,matic-network,near,cosmos', + Currency.BTC, + Currency.ETHEREUM, + Currency.SOLANA, + Currency.CHAINLINK, + Currency.POLYGON, + Currency.NEAR, + Currency.COSMOS, + Currency.POLKADOT, ] return { diff --git a/apps/website/src/enums/CoingeckoCryptoCurrency.ts b/apps/website/src/enums/CoingeckoCryptoCurrency.ts new file mode 100644 index 0000000..b217f31 --- /dev/null +++ b/apps/website/src/enums/CoingeckoCryptoCurrency.ts @@ -0,0 +1,12 @@ +enum CoingeckoCryptoCurrency { + BTC = 'bitcoin', + ETHEREUM = 'ethereum', + SOLANA = 'solana', + CHAINLINK = 'chainlink', + POLYGON = 'matic-network', + NEAR = 'near', + COSMOS = 'cosmos', + POLKADOT = 'polkadot', +} + +export default CoingeckoCryptoCurrency