Trade (Transaction)
A trade, in the simplest sense, is an agreement between two parties to exchange an asset for money at an agreed price. One side is buying, the other is selling, and both have to agree on price and quantity for the trade to happen at all. If you buy 10 shares of a company at $100 each, someone else, somewhere, is selling those 10 shares to you at that same price; a trade cannot exist with only a buyer or only a seller, which is the single most important thing to understand about what's actually happening whenever an order fills.
In modern electronic markets, that "someone else" is almost never a person a trader interacts with directly. Instead, an exchange or broker runs a matching engine - software that continuously lines up buy orders and sell orders and pairs them together the moment their prices overlap. If a trader places an order to buy at $100 and someone else already has an order to sell at $100 or better sitting in the market, the matching engine pairs them instantly and the trade executes, typically in a fraction of a second. This is why a market order, buy or sell "right now" at whatever the current price is, almost always fills immediately in a liquid market, while a limit order, buy or sell only at a specific price chosen in advance, might sit unfilled for minutes, hours, or indefinitely if no counterparty is willing to trade at that price.
Once a trade executes, the trader typically receives a confirmation showing the price, quantity, time, and any fees charged - proof the trade happened and on what terms. But execution is only the first of two steps: the trade still has to settle, meaning ownership of the asset and the cash actually change hands in the exchange's or broker's records, which for a US stock now takes one business day after the trade date, for a spot forex trade typically two business days, and for most crypto exchange trades happens almost instantly since the exchange simply updates its own internal ledger the moment the trade fills.
The mechanics behind a trade differ somewhat by market. On a stock exchange, trades are usually matched anonymously through a central order book shared by all participants. In forex, many retail trades are matched against a broker acting as the counterparty, a "market maker" model, rather than against another trader directly, though the broker typically hedges its own resulting exposure in the wider interbank market. On a crypto exchange, trades match against that specific exchange's own order book, which is one reason the same cryptocurrency can trade at slightly different prices on different exchanges at the same moment - each exchange's book of buyers and sellers is separate. Regardless of these differences in plumbing, the core of what a trade actually is stays the same everywhere: a buyer and a seller agreeing on a price, at a size, at a moment in time.
An executed trade is binding, but not absolutely. Exchanges keep a power to cancel trades that were clearly erroneous, meaning prints so far from the prevailing price that they could only have come from a malfunction or an obvious mistake. The power is used rarely, and the one occasion when it was used on a large scale shows both why it exists and why it is uncomfortable.
On the afternoon of 6 May 2010, US share prices collapsed and recovered within about half an hour in what became known as the flash crash. As genuine buyers disappeared, sell orders reached placeholder bids that market makers had left far below the market, and some shares that had opened above 40 dollars traded for a single cent before closing above 40 again. Afterwards the exchanges agreed a common rule: every trade made between 2:40 and 3:00 pm at a price more than 60 percent away from the last trade before 2:40 was cancelled. Roughly 300 securities had trades undone, many of them exchange-traded funds. The rule restored order but was plainly arbitrary. A sale 61 percent below the reference price was erased and the seller got the shares back; a sale 59 percent below stood, and that seller kept a loss of more than half. Rules introduced since then set narrower, published bands for each price level and pause trading in a stock that moves too far too fast, so fewer trades should reach the point of being broken. The practical point for any trader is that a market order in a disorderly market is a promise to accept whatever price appears, and the chance of having it cancelled afterwards is not a protection worth relying on.