I'm trying to get my HTML code to sync with my CoinGecko API and pull price data using json, but I can't figure it out.
API: https://api.coingecko.com/api/v3/simple/price?ids=londex-2&vs_currencies=usd
HTML:
<p class="detail">$LDX price</p>
<h2>$0</h2>
<h3>$0</h5>
<p class="detail">Market Cap</p>
</div>
CSS:
.leaderboard p, .leaderboard h2, .leaderboard h3{margin: 0 0 5px 0; padding: 0;}
.leaderboard h2{margin-bottom: 15px;}
.leaderboard p.detail{color: #2AD4C6; font-weight: bold;}
JS: Incomplete.