Clearance price & markdown schedule
clearance_priceBest price plus markdown schedule to clear stock by a deadline — free, no account or key needed.
USE THIS WHEN: you must sell a FIXED number of units before a cutoff and demand arrives over time — event tickets, perishable inventory, end-of-life stock. NOT for 1:1 haggling (negotiate) or auctions (auction_bid/reserve).
Provide: inventory (units to sell); horizon_seconds (selling window in SECONDS — 14 days = 14243600 = 1209600); arrival_rate_per_second (expected shoppers per second = expected total shoppers / horizon_seconds); and buyer_arrival_prior — a rough model of willingness-to-pay, e.g. {"family":"uniform","params":{"low":40,"high":150}}. Returns {static_price (one good fixed price), static_expected_revenue, dynamic_schedule (list of {t_seconds, recommended_price} markdown waypoints), sellthrough_rate, rationale} — all prices in the SAME $ as your prior.
Example: 200 tickets, 14-day window, ~600 shoppers willing to pay $40-$150 -> clearance_price(inventory=200, horizon_seconds=1209600, arrival_rate_per_second=600/1209600, buyer_arrival_prior={"family":"uniform","params":{"low":40,"high":150}}) -> static_price ~$112, schedule marks down $114 -> ~$76 as the deadline nears.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | RNG seed for reproducibility (default 42). | |
| inventory | Yes | Number of units you must sell before the cutoff. | |
| n_simulations | No | Monte-Carlo sample count for the estimate (default 2000). | |
| horizon_seconds | Yes | Selling window in SECONDS (14 days = 14*24*3600 = 1209600). | |
| buyer_arrival_prior | Yes | Rough model of buyer willingness-to-pay, e.g. {family:'uniform', params:{low:40, high:150}}. | |
| arrival_rate_per_second | Yes | Expected shoppers per SECOND (= expected total shoppers / horizon_seconds). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| rationale | No | ||
| static_price | No | ||
| dynamic_schedule | No | ||
| sellthrough_rate | No | ||
| dynamic_value_estimate | No | ||
| static_expected_revenue | No | ||
| static_simulated_revenue | No |