as a junior-to-mid level person in finance, most of us are doing some form of coding anyway. i was forced to progress from vba to python to haskell based on the shops i was at. i realized that i was both good at this, enjoyed it, and didnt enjoy the trading part. so i decided to switch into dev despite having no qualifications for it. doing a js bootcamp helped fill in the holes.
i'd say finance careers have a much higher ceiling for comp, my boss was pulling in 2m/yr at age 33ish, but he was both lucky and exceptional. i wasn't gonna be him. at my career trajectory (the vast majority of us in finance) i'd probably be more like 200-500k/yr. just kinda not worth it if i could go to tech and make somewhat less but with far better quality of life.