Algorithm editor

Documentation: HTML | API | PDF

View all algorithms.

Algorithm
function reprice(competitors, listing) {
if (competitors.length === 0) return listing.floorPrice;
const top5 = competitors.slice(0, 5);
const avg = top5.reduce((s, c) => s + c.totalPrice, 0) / top5.length;
return Math.max(avg * 0.95, listing.floorPrice);
}
Algorithm simulator

Enter Item # to test algorithm

Listing not found

Range Filters

Options

Seller Filters