Skip to content

Commit

Permalink
using pro api url
Browse files Browse the repository at this point in the history
  • Loading branch information
FlacoJones committed Mar 30, 2023
1 parent f8a32d5 commit 3e21e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetchFirstTenPrices.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fetchFirstTenPrices = () => {
const network = 'polygon-pos';
const stringifiedTokens = firstTen.join(',');
try {
let url = `https://api.coingecko.com/api/v3/simple/token_price/${network}?contract_addresses=${stringifiedTokens}&vs_currencies=usd`;
let url = `https://pro-api.coingecko.com/api/v3/simple/token_price/${network}?contract_addresses=${stringifiedTokens}&vs_currencies=usd`;

if (process.env.COINGECK_API_KEY) {
url = `${url}&x_cg_pro_api_key=${process.env.COINGECK_API_KEY}`;
Expand Down

0 comments on commit 3e21e8b

Please sign in to comment.