Best price and exact quote
Without a target address, returns the compatible one-hour market comparison used by existing clients. Add a target address to request the current exact executable MERX quote.
/api/v1/prices/bestQuery parameters
resourcestringREQUIREDENERGYBANDWIDTHamountnumberOPTIONAL65000durationnumberOPTIONAL12030060090018003600108002160086400Default: 3600target_addressstringOPTIONALmax_price_sunnumberOPTIONALcurl "https://merx.exchange/api/v1/prices/best?resource=ENERGY"Response and availability
The targetless response retains the original comparison fields, including provider, amount, total_sun, total_trx, price_sun, requested_duration_sec, and billed_duration_sec. It describes a market observation rather than an order commitment.
With target_address, data contains the exact quote fields used by order submission, including total_cost_sun, cost_trx, and the quoted provider. The price is checked again when the order is submitted.
Invalid comparison parameters return 400; unavailable normalized bandwidth comparison returns 404. An unavailable exact quote returns 503.
For raw provider observations, exclusions, and history, use GET /api/v1/market/energy?amount=65000. Read the comparison methodology and use the order preview before placing an order.