There is a vibrant startup culture in NYC. Finance jobs may pay more but probably not worth it due to culture and longer hours, more issues/rules around security, etc.
I mean Chicago has tons and tons of startups, and a "startup culture". For example http://www.1871.com/. But finding startups that money similar to normal companies? Not super easy.
NYC startups even if they paid more, COL is 3x what Chicago is and not that far from SF... so seems a bad place to go if your goal is to "buy a house"
Well in my personal experience the salary of senior devs in very early-stage startups i've been involved with in NYC get around get about 150K + options (text processing, machine learning, AI-stuff). With 2 incomes and some savings put aside, certainly its affordable, much more so than SF from what i've seen. The dev salary here may be higher because they need to complete with wall street firms, and there are overall less very senior devs in NYC compared to SF.
Maybe if you live in Manhattan. If you live out in Bayridge, you can get a 750+ sqft 1-bedroom apartment for $1450/mo. It takes me roughly 35 minutes getting to Soho on the R/N train from 86th st [which is near the end of the R train]