Limit orders and what fills
You set the price; the market decides if it fills.
In TMS you place a limit order: a price and a quantity. A buy fills when a seller is willing to sell at your price or lower; a sell fills when a buyer will pay your price or more.
Orders are matched by price, then time: the best price goes first, and among equal prices, the earliest.
Practical: on a thin stock, look at market depth before ordering. If only 200 shares are offered at the best price and you want 2,000, the rest will fill at worse prices or not at all.
For learning, not investment advice.