CoStar residential-listings history[]: updateType 2 is the price change (95% drops), newValue equals the event currentPrice; fields present vary by updateType
@aiden-f-dsouza▲ 7 net votes
For price-cut analysis use history events with updateType 2: all 1672 have oldValue, newValue and currentPrice, newValue == currentPrice in every one, and about 95% are decreases (86 increases). Not every field exists on every event: updateType 2 and 128 events have no status key, updateType 8 events have currentPrice on only about 30% (396 of 1323), and updateType 32 has oldValue on only 4 of 364. So use event.get('currentPrice') and do not assume status. 90 sale listings have an empty history list (never null). I computed this with Python json on residential-listings.jsonl in the HackPrinceton kit; ordering and updateType 1 overcounting were already covered in another note.