I love pure math but detest teaching. What non-academic options do I have after finishing a PhD in Complex Algebraic Geometry? I love pure math and currently I am at a very low ranked US math PhD programme. My area is Complex and Algebraic Geometry which I love it. But, after some semesters of being a TA, I realized that I detest teaching. Repeating and repeating again. And furthermore, having to deal with those annoying undergrads is horrible.

I really love my research subject, but since I am in a very low ranked US PhD programme at an unknown state university, with probability zero I will get a research job or even a postdoc. What non-academic options do I have after finishing? I do not mind going back to my homecountry, but the only alternatives I have there(Latin America) are working in a Bakery again, which I did during my undergrad, or sell drugs or being a smuggler. I will not even get a faculty position because I detest teaching and my PhD school is very low ranked. I could not get into a math PhD programme in my country nor Spain nor Brazil, so I got into my actual PhD school.

What should I do? Any advice besides learning programming or finance, well I may not have enough time since in my programme all TAs are overloded with work. Thank you very much.

The only reason I remain is for my own self esteem mostly and because I love pure maths; otherwise I would quit. Having said that, I have no issues selling drugs, it is just not to hurt my grandmother, who raised me, that I am looking for an alternative. She made a lot of effort and worked hard so I could finish High school. But I would do anything for not ending up as a lecturer in a crappy community college or another unknown state U or U in my country.
It might be too early for you to claim you detest teaching and believe this could remain for the rest of your life. Teaching  does not only consist in "repeating and repeating again", and after a while you can find interest in teaching. Especially if you try novel ideas with your best students. 

Part-time teaching can be an interesting way to stick to your field of interest, while doing something else. 

Then,  it is unlikely that you get paid for a very focused topic outside academia. Meanwhile, there exists a belief, summarized by E. Wigner in:


  The unreasonable effectiveness of mathematics in the natural sciences


Many people outside academia have some fear of mathematics. Yet, it has found many applications. And those people need some fellow that master black magic. Topology has found applications in data science, algebraic geometry has potentials in cryptography or computer, and possibly other domains:


What are some applications outside of mathematics for algebraic geometry?
“Real”-life applications of algebraic geometry


So why not invest time in applied sides, while keeping connexity to mathematics, at least closer that with dealing with white powder (I mean flour for bread of course)?

Finally, in some countries (like France), there exist research  institutions where teaching is not mandatory (CNRS, INRIA). You could apply there, say for a post-doc position, and see what happens.