Skip to content
Jupiter documentation
Menu

Ranking

The three sorts of search_offers and the formula behind best_value.

search_offers ranks offers by the sort argument: cheapest, fastest or best_value. Comps, diagnostics and offers with delivery: no are not ranked.

In every sort, an offer whose moq is larger than qty goes to the end of the list.

cheapest#

Sorts by landed_aud, lowest first. Between two offers with the same cost, one with a known delivery status comes before one with unknown.

A grocery offer sorts by unit_price_aud. A 2 L bottle at 4.50 AUD (2.25 per litre) then comes before a 1 L bottle at 3.10 AUD.

An offer with no price goes last.

fastest#

Sorts by the later bound of shipping.eta_days, then by price_aud. An offer with no ETA counts as 99 days.

The ETA windows are fixed per marketplace. Delivery and ETA lists them.

best_value#

Sorts by a score from 0 to 1, highest first:

An item that costs 200 AUD or more per unit scores 0 for price. Above that cost, only speed and trust separate offers.

Currency#

price_cny converts with CNY_TO_AUD (default 0.215) and Cheapies prices with NZD_TO_AUD (default 0.92). Both are fixed settings. The server fetches no live rates.

Source: belikh/procurement HEAD