What is the process through which a cash stock transaction clears?
"This is the sad state of US stock markets and Regulation T. Yes, while options have cleared & settled for t+1 (trade +1 day) for years and now actually clear ""instantly"" on some exchanges, stocks still clear & settle in t+3.  There really is no excuse for it. If you are in a margin account, regulations permit the trading of unsettled funds without affecting margin requirements, so your funds in effect are available immediately after trading but aren't considered margin loans.  Some strict brokers will even restrict the amount of uncleared margin funds you can trade with (Scottrade used to be hyper safe and was the only online discount broker that did this years ago); others will allow you to withdraw a large percentage of your funds immediately (I think E*Trade lets you withdraw up to 90% of unsettled funds immediately). If you are in a cash account, you are authorized to buy with unsettled funds, but you can't sell purchases made on unsettled funds until such funds clear, or you'll be barred for 90 days from trading as your letter threatened; besides, most brokers don't allow this.  You certainly aren't allowed to withdraw unsettled funds (by your broker) in such an account as it would technically constitute a loan for which you aren't even liable since you've agreed to no loan contract, a margin agreement.  I can't be sure if that actually violates Reg T, but when I am, I'll edit. While it is true that all marketable options are cleared through one central entity, the Options Clearing Corporation, with stocks, clearing & settling still occurs between brokers, netting their transactions between each other electronically. All financial products could clear & settle immediately imo, and I'd rather not start a firestorm by giving my opinion why not. Don't even get me started on the bond market... As to the actual process, it's called ""clearing & settling"". The general process (which can generally be applied to all financial instruments from cash deposits to derivatives trading) is: The reason why all of the old financial companies were grouped on Wall St. is because they'd have runners physically carting all of the certificates from building to building.  Then, they discovered netting so slowed down the process to balance the accounts and only cart the net amounts of certificates they owed each other.  This is how we get the term ""bankers hours"" where financial firms would close to the public early to account for the days trading.  While this is all really done instantly behind your back at your broker, they've conveniently kept the short hours."
Brokerage firms must settle funds promptly, but there's no explicit definition for this in U.S. federal law. See for example, this article on settling trades in three days. Wikipedia also has a good write-up on T+3. It is common practice, however. It takes approximately three days for the funds to be available to me, in my Canadian brokerage account. That said, the software itself prevents me from using funds which are not available, and I'm rather surprised yours does not. You want to be careful not to be labelled a pattern day trader, if that is not your intention. Others can better fill you in on the consequences of this. I believe it will not apply to you unless you are using a margin account. All but certainly, the terms of service that you agreed to with this brokerage will specify the conditions under which they can lock you out of your account, and when they can charge interest. If they are selling your stock at times you have not authorised (via explicit instruction or via a stop-loss order), you should file a complaint with the S.E.C. and with sufficient documentation. You will need to ensure your cancel-stop-loss order actually went through, though, and the stock was sold anyway. It could simply be that it takes a full business day to cancel such an order. Reading the plan documentation, yes, that is what it means.  Each purchase by bank debit, whether one-time or automatic, costs $2 plus $0.06 per share; so if you invested $50, you would get slightly less than $48 in stock as a result (depending on the per-share price). Schedule of Fees Purchases – A one-time $15.00 enrollment fee to establish a new     account for a non-shareholder will be deducted from the     purchase amount. – Dividend reinvestment: The Hershey Company pays the     transaction fee and per share* fee on your behalf. – Each optional cash purchase by one-time online bank     debit will entail a transaction fee of $2.00 plus $0.06 per     share* purchased. – Each optional cash purchase by check will entail a     transaction fee of $5.00 plus $0.06 per share* purchased. – If funds are automatically deducted from your checking or     savings account, the transaction fee is $2.00 plus $0.06     per share* purchased. Funds will be withdrawn on the     10th of each month, or the preceding business day if the     10th is not a business day. – Fees will be deducted from the purchase amount. – Returned check and rejected ACH debit fee is $35.00. It's a covered call.  When I want to create a covered call position, I don't need to wait before the stock transaction settles. I enter it as one trade, and they settle at different times. It's done by Opening Auction (http://www.advfn.com/Help/the-opening-auction-68.html): The Opening Auction Between 07.50 and   a random time between 08.00 and   08.00.30, there will be called an auction period during which time,   limit and market orders are entered   and deleted on the order book. No   order execution takes place during   this period so it is possible that the   order book will become crossed. This   means that some buy and sell orders   may be at the same price and some buy   orders may be at higher prices than   some sell orders. At the end of the random start period,   the order book is frozen temporarily   and an order matching algorithm is   run. This calculates the price at   which the maximum volume of shares in   each security can be traded. All   orders that can be executed at this   price will be filled automatically,   subject to price and priorities. No   additional orders can be added or   deleted until the auction matching   process has been completed. The opening price for each stock will   be either a 'UT' price or, in the   event that there are no transactions   resulting form the auction, then the   first 'AT' trade will be used. On a summary level, there are three conceptual ways of clearing money electronically. Immediate clearing, where banks (often, but not necessarily) with support of the supervisory entities, send immediate drawing rights against their own cash reserves, and dedicate this right to the account of the receiving customer. This is rather expensive, as it limits the banks ability to use their cash reserves for their own banking operations (crediting etc). This is often the only way to wire significant (in comparison to the bank size) amounts of money.  Internal clearing, where the money actually never leaves the bank - it's just moved between accounts of two different customers of the same bank. It's usually free, as the bank is still free to use your money to do it's banking, and it's usually immediate since nothing actually needs to happen besides a change in the banks entries.  Batch clearing, where banks submit outstanding requests against each other, and calculate the net settlement. Basically, when you from bank A wire money to me in bank B, there is a high chance that a similar amount of money is wired between two other users it the opposite direction. After a bit of accounting the net imbalance is computed (and often drawn via immediate clearing) but the bulk of the money actually never leaves any of the banks, it just is reassigned between each banks customers as per agreed books.  There are also additional ways where companies decide to open accounts in each of the banks and provide some sort of immediate clearing backed by the operators cash reserves rather than the banks.. and so on.. How does it happen in Indonesia? I have no idea, but I think a good overview of how it happens around the world is a publication by a partner entity of ours; http://pymntsreportstore.com/products/global-wire-transfer-choices If you are really curious, I'd research under what legal form does Paypal Indonesia operate (it should be somewhere in the archives) and figure out what other wiring options are available. "Note: the answer below is speculative and not based on any first-hand knowledge of pump-and-dump schemes. The explanation with spamming doesn't really makes sense for me. Often you see a stock jump 30% or more in a single day at a particular moment in time. Unlikely that random people read their emails at that time and decide to buy. What I think happens is the pumper does a somewhat risky thing: starts buying a lot of shares of a stock that has declined a lot and had low volumes during the previous days. As the price starts to increase other people start to notice the jump and join the buying spree (also don't forget that some probably use buy-stop orders which are triggered when the price reaches a particular level). Also there should be some automatic trading involved (maybe HFT firms do pump-and-dumps) as you have to trade a big volume in a relatively short time span. I think it is unlikely to be done by human operators. Another explanation would be that there is a group of pumpers (to spread the risk so to speak). Update: As I think more of it, it is not necessary to buy ""a lot of shares"". You could buy some shares, sell them to another pumper and buy from them again at a higher price in several iterations. I think this could also work if you do it fast enough. These scheme makes sense only you previously bought many shares at the low price, possibly during several weeks. Once the price is pumped high enough you can start selling the shares you previously bought (in the days preceding the pump)." In the Anti-Money Laundering World ( AML) , structuring consists of the division ( breaking up) of cash transactions, deposits and withdrawals, with the intent to avoid the Currency Transaction Reporting ( CTR) filings.  In your case the issue is not structuring but the fact that you have another person ( unknown to the bank) depositing cash , event if it is above the CTR threshold, for you to withdraw later .  The entire scenario raises a lot of questions. Yes, from June 1968 until December 1968, they closed the NYSE every Wednesday so they could catch up on paperwork representing billions of dollars in unprocessed transactions.  Even after the NYSE re-opened on Wednesdays in January 1969, they still had to close it early at 2pm for seven more months. Forbes has a description of this: Not to be forgotten, though, is the Paperwork Crunch. In a day of email and the Cloud and trading completed in microseconds, the idea that Wall Street needed Wednesdays off in the late 1960′s to catch up on back-office tasks seems especially quaint. Yet, in 1968, the NYSE found itself sitting on more than $4 billion in unprocessed transactions. Trading had risen to 21 million shares daily; by contrast, even in the heavy volume days in 1929, trading never went above 16 million shares. Papers stacked on desks. A (now old) joke formed: If a fan blew the wrong way in a Wall Street office, visitors below could expect a ticker-tape parade. “Everybody agreed that the securities-processing system had virtually broken down, and the only major point of dispute was who was more responsible for the mess: the back offices of the brokerage firms of the stock-transfer agents,” Securities and Exchange Commission Commissioner Ray Garrett, Jr. said in 1974. Some 100 broker-dealers failed, crumbling under the pressure of fulfilling those back-orders. The fix: an organization akin to the FDIC, the Securities Investor Protection Corporation. Wall Street would stick to the shortened weeks from June to December; in January, Wednesday trading resumed, though it ended early at 2 for another seven months. I have had this happen a couple of times because of splits or sales of portions of the company.  The general timeline was to announce how the split was to be handled; then the split; then a freeze in purchasing stock in the other company; then a freeze in sales; followed by a short blackout period; then the final transfers to funds/options/cash based on a mapping announced at the start of the process. You need to answer two questions: To determine if the final transactions will make the market move you have to understand how many shares are involved compared to the typical daily volume. There are two caveats: professional investors will be aware of the transaction date and can either ignore the employee transactions or try and take advantage of them; There may also be a mirroring set of transactions if the people left in the old company were awarded shares in your company as part of the sale. If you are happy with the default mapping then you can do nothing, and let the transaction happen based on the announced timeline. It is easy, and you don't have to worry about deadlines. If you don't like the default mapping then you need to know when the blackout period starts, so you don't end up not being able to perform the steps you want when you want.  Timing is up to you. If the market doesn't like the acquisition/split it make make sense to make the move now, or wait until the last possible day depending on which part they don't like. Only you can answer that question. The money goes to the seller.  There are a lot of behind the scenes things that happen, and some transactions are very complicated with many parties involved (evidenced by all the comments on @keshlam's perfectly reasonable high-level answer), but ultimately the money goes to the seller.  Sometimes the seller is the company.  The billions of shares that change hands each day are moving between other individuals like you and investment funds; these transactions have no direct impact on the company's financials, in general. "The simple answer is, there are many ways for trades to take place.  Some systems use order-matching software that employs proprietary algorithms for deciding the order of processing, others use FIFO structures, and so on.  Some brokerages may fill customer orders out of their own accounts (which happens more frequently than you might imagine), and others put their orders into the system for the market makers to handle.  There's no easy all-encompassing answer to your question, but it's still a good one to ask. By the way, asking if the market is ""fair"" is a bit naive, because fairness depends on what side of the trade you came out on! (grin)  If your limit order didn't get filled and you missed out on an opportunity, that's always going to seem unfair, right?" "You don't. No one uses vanilla double entry accounting software for ""Held-For-Trading Security"".  Your broker or trading software is responsible for providing month-end statement of changes.  You use ""Mark To Market"" valuation at the end of each month.  For example, if your cash position is -$5000 and stock position is +$10000, all you do is write-up/down the account value to $5000.  There should be no sub-accounts for your ""Investment"" account in GNUCash.  So at the end of the month, there would be the following entries:" To sum up: My question came from misunderstanding what cost basis applies to. Now I get it that it applies to stocks as physical entities. Consider a chain of buys of 40 stock A with prices $1-$4-$10-$15 (qty 10 each time) then IRS wants to know exactly which stock I am selling. And when I transfer stocks to different account, that cost basis transfers with them. Cost basis is included in transfers, so that removes ambiguity which stock is being sold on the original account. In the example above, cost basis of 20 stocks moved to a new account would probably be $1 x 10 and $4 x 10, i.e. FIFO also applies to transfers. It depends on the broker. The one I use (Fidelity) will allow me to buy then sell or sell then buy within 3 days even though the cash isn't settled from the first transaction. But they won't let me buy then sell then buy again with unsettled cash. Of course not waiting for cash to settle makes you vulnerable to a good faith violation. "When you exercise your options, you come up with cash to buy the shares. This makes you an owner of the company for shares at the share price your options let you have. Ideally, your share price is at a significant discount to what the company is worth. Being a shareholder, you gain from any share price appreciation in a sale. The only thing the ""60-day window"" applies to is whether you come up with the cash to buy fast enough, or your shares get permanently deleted from the company finances, where everyone else potentially makes more, you make nothing. The sale of the company is based on whenever the sell finalizes, which is between your company and the acquiring company."