I'm trying to parse JSON data from an external URL I have managed to print the data but I'm having difficulties looping it and printing the complete data
here's my code
<div class="coin"></div>
<script>
$.getJSON('https://www.binance.com/gateway-api/v1/public/indicator/abnormal-trading-notice/list', function(fetch) {
var coin = `noticeType: ${fetch.data[0].noticeType}<br>
symbol: ${fetch.data[0].symbol}<br>
eventType: ${fetch.data[0].eventType}<br>
volume: ${fetch.data[0].volume}<br>
priceChange: ${fetch.data[0].priceChange}<br>
period: ${fetch.data[0].period}<br>
createTimestamp: ${fetch.data[0].createTimestamp}<br>
updateTimestamp: ${fetch.data[0].updateTimestamp}<br>
baseAsset: ${fetch.data[0].baseAsset}<br>
quotaAsset: ${fetch.data[0].quotaAsset}<br>`
$(".coin").html(coin);
});
</script>