Magnetic hitch pin? https://www.amazon.com/gp/product/B0823F59FF
I use this on my mower / dump cart and it works like a dream. Just make sure the diameter/length will meet your needs.