A much cheaper alternative is to use a micro switch. These are a single pole double throw (SPDT) switch that is activated by the throw bar on the switch.
Here is a micro switch with the switch in the "normal" position. The wire connections to the micro switch are via the 3 solder terminals on the left. Top to bottom they are normally closed, normally open and common. In this position, common is connected to normally closed.
With the switch thrown to "diverging" the throw bar has moved the lever so that common is now connected to the normally open terminal.
The actuating lever can be bent to fit your situation (micro switches with longer levers are also available). Here is one with a Caboose Industries #208s ground throw. This switch is in the diverging position since the red surface of the ground throw arm is visible. Common is connected to normally closed.
In this case, the lever on the micro switch is moved when the switch is thrown to the normal position (green surface of the throw arm visible). Common is connected to normally open.
I place the micro switch on a piece of cork roadbed to get the height right, then use a couple of small (3/4" long) nails pressed through cork and into the Homasote to secure it. Note that for the ground throw, I needed to remove a piece of one tie to make room for the micro switch lever.
Micro switches are available from many sources. I get them in quantity from Amazon for less than 50 cents each.
https://www.amazon.com/Switch-...9?ref_=fsclp_pl_dp_6