Order types

Order types are different types of trading orders that investors can use when buying or selling shares or exchange-traded funds (ETFs) on a stock exchange, through a brokerage account. The two main types are market orders and limit orders.US Securities and Exchange Commission, Office of Investor Education and Advocacy, Trading Basics - Understanding the different ways to buy and sell stock, viewed January 5, 2019.
==A simplified view of the market==
The market contains all traders willing to buy or sell the security. If traders are willing to buy and sell at the same price, then a trade will be made. If you want to buy or sell, you add your own order to the market, and it will either be executed immediately or added to the available orders in the market.
Your broker will give you information about the market; you might see a display like this:
Example Security
Ticker	Bid 	Ask 	Size
XYZ 	19.98	20.02	5 x 10
The size is in hundreds of shares, so this display says that traders have offered to buy 500 shares of XYZ at $19.98, and to sell 1000 shares at $20.02. The bid-ask spread is four cents.
==Market order==
A market order is used to buy or sell a security immediately, at the best current price.TMX Money, Stock Market Terms, Market order, viewed January 5, 2019. On highly liquid stocks or ETFs, market orders are filled nearly instantly.Investopedia, Market order, viewed January 5, 2019. Essentially you are trading at prices currently established by the opposite side of the market. 
Using this type of order, sellers obtain the current bid price and buyers pay the current ask price, as determined by the market.
The advantage of a market order is that you are almost always guaranteed your order will be executed (as long as there are willing buyers and sellers).
The disadvantage is that the price you pay when your order is executed may not always be the price you obtained from a real-time quote service or were quoted by your broker. This may be especially true in fast-moving markets where prices are more volatile. When you place an order "at the market," particularly for a large number of shares, there is a greater chance you will receive different prices for parts of the order.
===Market order example===
Refer to the example security shown above. If you place a market order to buy 1000 shares, you will buy them for $20.02 a share if the sell order is still there; your total price is $20,020.
However, the sell order might have been taken by another buyer, or withdrawn by the trader, before your broker processed your order. In that case, you will still buy the shares, but at the next-best price or prices.
If there were 500 shares for sale at $20.04 and 2500 at $20.05, you would buy all the shares at $20.04 and 500 at $20.05, a total price of $20,045.
==Limit order==
A limit order is used to buy or sell a security at a specified price.TMX Money, Stock Market Terms, Limit order, viewed January 5, 2019. The order will only be filled at the limit price, or better. Otherwise, it will not be executed.Investopedia, Limit order, viewed January 5, 2019.
In other words, a buy limit order can only be executed at the limit price or lower, and a sell limit order can only be executed at the limit price or higher.
Reaching the desired price does not automatically guarantee a sale, as every transaction must have both a buyer and seller.Trade, from Investopedia. When the security hits that price, you get in line with the rest of the people at that price and wait for execution. If there is low volume, you may not get an execution.
=== Duration ===
Limit orders have a term that will depend on your specification and your broker’s or the exchanges policy. They can be:
* Day orders; any unfilled orders at 5 p.m. (Eastern time) are canceled without execution.
* Good til cancelled (GTC); expire at 5 p.m. (Eastern time), 90 calendar days after entry.
* Good til date (GTD): expire at 5 p.m. (Eastern time) on a specific day
=== Adjustment of orders ===
Open orders may have their price reduced, increased, or adjusted by an amount equal to the dividend, payment, or distribution on the day that the security is quoted ex-dividend, ex-rights, ex-distribution, or ex-interest, except where a cash dividend or distribution is less than one cent ($0.01).
=== Marketable limit order ===
A common compromise between the two types of orders is a marketable limit order. This is considered the least risky way to buy shares or ETFs, particularly those with low trading volumes. A marketable limit order is an order to buy at the current ask (or a cent or two above), or sell at the current bid (or a cent or two below). If the ask or bid is still there when your order is placed, it will execute immediately because there are now matched orders to buy and sell at the same price. But if the ask or bid has changed, your marketable limit order remains a limit order at the same price, instead of immediately executing at another price.
===Examples===
==== Limit order example 1 ====
Refer to the example security shown above. If you place a limit order to buy 1000 shares at $20.00, you may not buy them at all, but your order will become the new bid.
If someone else places a market order to sell, or a limit order to sell at $20.00, then you will buy the shares and pay $20,000. But if nobody accepts your order, you might find that XYZ has gone up to $21 and you still do not have the shares.
If you place a marketable limit order to buy 1000 shares at $20.02, you will buy the shares for that price if the sell order is still there, just as if you had placed a market order. 
But if the sell order is gone, you do not buy at a higher price; rather, your order is added to the market, and may be accepted by another trader at $20.02. You will not buy at a higher price unless you modify your order.
==== Limit order example 2 ====
Marketable limit orders reduce the risk if the offer at the ask is withdrawn and the next-lowest offer might be significantly higher.
Refer again to the example security shown above. A trader who was willing to sell at $20.02 withdraws his offer (or has someone else take it first), and places a new offer to sell at $20.03.
In the one second interval between the withdrawal of $20.02 and placement of $20.03, a next-best offer appears from someone else at $21.
If you place a limit order to buy 1000 shares at $20.02 during that one second, it will not execute, thereby protecting you from a purchase at the much higher price of $21. The new ask of $20.03 appears next and you can modify your limit order to accept $20.03.
Compare this to a market order to buy 1000 shares. The $21 offer would have been accepted, resulting in a cost of $21,000 rather than $20,030 (a difference of $970).
== Stop-loss order ==
A stop-loss order is a type of order used by traders to limit their loss or lock in a profit on an existing position. Traders can control their exposure to risk by placing a stop-loss order. They are orders with instructions to close out a position by buying or selling a security at the market when it reaches a certain price known as the stop price.
==See also==
*Order, Bogleheads wiki
==References==
== Further reading ==
* 
* 
* 
* orum
==External links==
* TMX Money: Stock Market Terms
* TMX Order Types and Functionality Guide, (eBook) Section 4, Order Types
* Vanguard Research: 'Best Practices' for ETF Trading: Seven Rules of the Road, June 2014, Viewed January 6, 2019. Discusses use of marketable limit order.
Category:Glossary
Category:Investment management