The maximum number of shares you can buy on margin depends on the initial margin of the stock and the asset condition in your account. Each stock may have a different margin. You can see the maximum number of shares you can buy when placing an order, as shown in the following picture:
The maximum number of shares you can borrow for short selling also depends on the initial margin of the stock and the asset condition in your account. If you do not have sufficient funds, Futu will automatically provide you with loans based on the assets (including but not limited to cash, positions, frozen funds, etc.) in your account to maintain sufficient collateral. You can see the maximum number of shares you can sell when placing an order, as shown in the following picture: