If you use your imagination all you need is one switch.
A microswitch has 2 limit switches operating together and sharing a common terminal. One limit switch is normally open and the other is normally closed.
To be technically correct, the switch configuration is Single Pole Double Throw, or...