gendesign/tradein-mvp/backend/app
lekss361 c897d5793a fix(tradein-imv): adapt to Avito 3-step API contract (2026-05+)
Avito changed IMV flow — /web/1/coords/by_address no longer returns
geoHash. New flow has 3 endpoints:

1. /web/1/coords/by_address       -> normalize + lat/lon
2. /js/v2/geo/position             -> rich JWT (geoFieldsHash) with addressId/
                                       locationId/metroId/districtId
3. /web/1/realty-imv/get-data      -> recommendedPrice/lowerPrice/higherPrice

Old code skipped step 2 -> IMVAddressNotFoundError for every address since
contract change. PR #505 retry-with-cleaned-address never had a chance.

Verified via playwright browser for production estimate
a0a0b820-e8a8-4eee-aa73-0ab3b98ac233 (Zavodskaya 44-a): Avito IMV
recommendedPrice=7,520,000 RUB (range 7,294,400-7,896,000).
2026-05-24 16:39:45 +03:00
..
api chore(tradein): remove dead mock-fallback code from trade_in.py (#521) 2026-05-24 13:11:13 +00:00
core feat(tradein): postgres_fdw live read of gendesign.cad_buildings (replaces snapshot) (#493) 2026-05-24 08:57:30 +00:00
schemas feat(tradein): in-app scheduler — UI-managed schedule (replaces SSH crontab) (#482) 2026-05-23 14:54:25 +00:00
services fix(tradein-imv): adapt to Avito 3-step API contract (2026-05+) 2026-05-24 16:39:45 +03:00
tasks fix(tradein): geocode backfill + remove Avito exclusion from estimator (#490) 2026-05-23 20:03:48 +00:00
__init__.py feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
main.py feat(tradein): postgres_fdw live read of gendesign.cad_buildings (replaces snapshot) (#493) 2026-05-24 08:57:30 +00:00