SkyBlock Auction Prices

{#each data as item (item._id)} {@const binAuctions = item.auctions.filter(i => i.bin)} {@const normalAuctions = item.auctions.filter(i => !i.bin)}

{cleanId(item._id.toLowerCase())}

{#if binAuctions.length > 0}

Lowest recent BIN: {binAuctions.reduce((a, b) => (a.coins < b.coins ? a : b)).coins.toLocaleString()} coins

{/if} {#if normalAuctions.length > 0}

Lowest recent auction: {normalAuctions .reduce((a, b) => (a.coins < b.coins ? a : b)) .coins.toLocaleString()} coins

{/if}
{/each} {#if data.length === 0} No results {/if}