The average banker bonus in New York City was $184,220 last year, the biggest annual haul for Wall Street employees since before the financial crisis.

Those bonuses, which totaled $31.7 billion, up 17% from 2016, tracks with a broader rebound for bank stocks last year, boosted by the prospects of rising interest rates, faster growth and deregulation.

The...