The broker's function is to connect traders with banks and large financial institutions and brokers send trader's orders to banks or financial institutions as liquidators. Brokers benefit from the mark-up spreads given by banks or financial institutions as liquidators. In addition, brokers benefit from selling trading software or EAs (Expert Advisors) and there are also brokers who get incentives from their liquidators if their transactions exceed the target. Every time you make a transaction with the services of a broker, you will be directly burdened with a fee or commission component that is included in the value of your transaction. So, you don't need to worry because the broker makes funds from every transaction you make. All you need to do is find a broker with the most economical commission to reduce your transaction costs.
the broker benefits from the spread. The spread is the difference between the selling price (bid) and the buy (ask) price or sell quotes and buy quotes. This spread is the income earned by the broker where when we sell, the spread will be charged between 2 points to tens of points depending on the pair used.