Market and limit orders
Reading time: 4 minutes.
First: Pair and price.
What an order is
An order is your instruction to the exchange: buy or sell so many coins. An order has a side (buy or sell), a quantity and a way to be filled. There are two ways: “market” and “limit”.
An exchange always has two prices: the price people sell at right now (the ask) and the price people buy at (the bid). In the examples below BTC is sold at 60,010 USDT and bought at 60,000 USDT.
A market order — “buy now, at any price”
A market order is filled at once at the best price there is now. You will surely buy, but you do not know the price in advance.
Example. You buy 0.01 BTC at market. The exchange takes the coins from those who sell at 60,010. You pay 600.10 USDT and a fee of about 0.60 USDT. If there are few sellers at 60,010, part of it is bought dearer — at 60,020, 60,030. This difference is called slippage.
A limit order — “buy no dearer than my price”
You place a limit order with your own price. It waits on the exchange until there is a seller at this price or cheaper. The price is known in advance, but whether you buy is not.
Example. You place a limit buy of 0.01 BTC at 59,500. BTC is sold at 60,010 now, so the order waits. Three outcomes are possible:
- The price fell to 59,500 — the order is filled, you paid 595 USDT.
- The price went up — the order just stays, you have no coins.
- Only 0.004 BTC was offered at 59,500 — the order is partly filled. The remaining 0.006 BTC waits on.
How the strategy uses it
The strategy makes its entry with a limit order or at market — as you choose in the form. The averaging orders and the take-profit are always limit orders: they stand on the exchange in advance at their prices and wait.
The strategy counts a partial fill itself: the part bought goes into the average price at once. The strategy places the take-profit when the entry is bought whole; after a partly filled averaging order it moves the take-profit at most once in 5 minutes. In detail — The strategy's rules in detail.
Check yourself
1. You want to buy BTC right now. Which order do you choose?
Answer
Right: b) a market order
A market order is filled at once. A limit order below the price waits and may never be filled.
2. BTC is sold at 60,010. You placed a limit buy at 59,500. What happens at once?
Answer
Right: c) the order waits until the price falls to 59,500
A limit order never pays more than its price. While BTC is sold above 59,500, it waits.
3. Your limit order for 0.01 BTC is filled for 0.004 BTC. What does it mean?
Answer
Right: b) 0.004 BTC is bought, the remaining 0.006 BTC waits on
A partial fill is normal. There were sellers at your price for only a part; the rest waits for the next ones.
4. Why is the strategy's take-profit a limit order?
Answer
Right: a) to sell no cheaper than the price with the profit wanted
The take-profit stands on the exchange in advance at a price a little above the average buy price, fees included. A market sale could be filled cheaper.