STP brokers earn money by marking up the spread on each trade executed on their platform. Some brokers may also earn money through other fees, such as overnight swaps and inactivity fees.