Stock Dividends & Splits: Are they always applied over night?
I've never seen a dividend, split or other corporate action during the day, but I have seen trade suspended a few times when something big happened. The market opening price is not in general the same as the close of the previous day. It can gap up or down and does frequently. I don't know of an api to find out if the dividend was cash or stock, but stock dividends are a lot less common.
"I seem not to be able to comment on the first answer due to reputation, so I'll aim to enhanced the first answer which is generally good but with these caveats: 1) Dividends are not ""guaranteed"" to preferred shareholders.  Rather, preferred shareholders are normally in line ahead (i.e. in preference to or ""preferred"") of common shareholders in terms of dividend payment.  This is an extremely important distinction, because unlike investments that we generally consider ""guaranteed"" such as CDs (known as GICs in Canada), a company's board can suspend the dividend at anytime for long periods of time without significant repercussions -- whereas a missed payment to a bank or secured bondholder can often push a company into bankruptcy very quickly. 2) Due to point 1), it is extremely important to know the ""convenants"" or rules sorrounding both the preferred shares you are buying and the other more senior creditors of that issuing company (i.e. taxes (almost always come first), banks loans, leases, bonds etc.).  It is also important to know if a particular preferred share has ""cumulative"" dividends.  You generally only want to buy preferred's that have ""cumulative"" dividends, since that means that anytime the company misses a payment, they must pay those dividends first before any other dividends at the same or lower priority in the future. 3) Unlike a common stock, your upside on a preferred stock is relatively fixed: you get a fixed share of the company's profit and that's it, whereas a common shareholder gets everything that's left over after interest and preferred dividends are paid. So if the company does really well you will theoretically do much better with common stock over time. For the above reasons, it is generally advisable to think of preferred shares as being more similar to really risky bonds in the same company, rather than similar to common stock.   Of course, if you are an advanced investor there are a lot more variables in play such as tax considerations and whether the preferred have special options attached to them such conversion into common shares." The dividend tax credit is not applicable to foreign dividend income, so you would be taxed fully on every dollar of that income. When you sell a stock, there will be a capital gain or capital loss depending on if it gained or lost value, after accounting for the Adjusted Cost Base. You only pay income tax on half of the amount earned through capital gains, and if you have losses, you can use them to offset other investments that had capital gains (or carry forward to offset gains in the future).  The dividends from US stocks are subject to a 15% withholding tax that gets paid to the IRS automatically when the dividends are issued. If the stocks are held in an RRSP, they are exempt from the withholding tax. If held in a non-registered account, you can be reimbursed for the tax by claiming the foreign tax credit that you linked to. If held in a TFSA or RESP, the withholding tax cannot be recovered. Also, if you are not directly holding the stocks, and instead buy a mutual fund or ETF that directly holds the stocks, then the RRSP exemption no longer applies, but the foreign tax credit is still claimable for a non-registered account. If the mutual fund or ETF does not directly hold stocks, and instead holds one or more ETFs, there is no way to recover the withholding tax in any type of account. Scrip dividends are similar to stock splits. With a stock split, 100 shares can turn into 200 shares; with scrip dividends they might turn into 105 shares. "Many individual states, counties, and cities have their own income taxes, payroll taxes, sales taxes, property taxes, etc., you will need to consult your state and local government websites for information about additional taxes that apply based on your locale. Wages, Salaries, Tips, Cash bonuses and other taxable employee pay, Strike benefits, Long-term disability, Earnings from self employment Earned income is subject to payroll taxes such as: Earned income is also subject to income taxes which are progressively higher depending on the amount earned minus tax credits, exemptions, and/or deductions depending on how you file. There are 7 tax rates that get progressively larger as your income rises but only applies to the income in each bracket. 10% for the first 18,650 (2017) through 39.6% for any income above 470,700. The full list of rates is in the above linked article about payroll taxes. Earned income is required for contributions to an IRA. You cannot contribute more to an IRA than you have earned in a given year. Interest, Ordinary Dividends, Short-term Capital Gains, Retirement income (pensions, distributions from tax deferred accounts, social security), Unemployment benefits, Worker's Compensation, Alimony/Child support, Income earned while in prison, Non-taxable military pay, most rental income, and S-Corp passthrough income Ordinary income is taxed the same as earned income with the exception that social security taxes do not apply. This is the ""pure taxable income"" referred to in the other linked question. Dividends paid by US Corporations and qualified foreign corporations to stock-holders (that are held for a certain period of time before the dividend is paid) are taxed at the Long-term Capital Gains rate explained below. Ordinary dividends like the interest earned in your bank account are included with ordinary income.  Stocks, Bonds, Real estate, Carried interest -- Held for more than a year Income from assets that increase in value while being held for over a year. Long term capital gains justified by the idea that they encourage people to hold stock and make long term investments rather than buying and then quickly reselling for a short-term profit.  The lower tax rates also reflect the fact that many of these assets are already taxed as they are appreciating in value. Real-estate is usually taxed through local property taxes. Equity in US corporations realized by rising stock prices and dividends that are returned to stock holders reflect earnings from a corporation that are already taxed at the 35% Corporate tax rate. Taxing Capital gains as ordinary income would be a second tax on those same profits. Another problem with Long-term capital gains tax is that a big portion of the gains for assets held for multiple decades are not real gains. Inflation increases the price of assets held for longer periods, but you are still taxed on the full gain even if it would be a loss when inflation is calculated. Capital gains are also taxed differently depending on your income level. If you are in the 10% or 15% brackets then Long-term capital gains are assessed at 0%. If you are in the 25%, 28%, 33%, or 35% brackets, they are assessed at 15%. Only those in the 39.6% bracket pay 20%. Capital assets sold at a profit held for less than a year Income from buying and selling any assets such as real-estate, stock, bonds, etc., that you hold for less than a year before selling. After adding up all gains and losses during the year, the net gain is taxed as ordinary income. Collectibles held for more than a year are not considered capital assets and are still taxed at ordinary income rates." Yes you can do that and it it wise to do so. However, you should make sure that the general trend of the stock is upwards and you buy during a trought in the uptrend. So basically if the stock is making higher highs and higher lows on the daily or weekly charts, then you would want to buy around one of the higher lows before the ex-dividend date. If the stock is making lower lows and lower highs, then it is in a downtrend, so never buy in this instance. It is better to miss out on a dividend of $1 rather than to buy just for this $1 dividend and lose $5 or more when the price continues to drop further. Stumbled upon this question, I've found the updated dates for 2016 and 2017 in a more permanent location. https://www.nyse.com/markets/hours-calendars If the period is consistent for company X, but occurs in a different month as Company Y, it might be linked to the release of their annual report, or the payment of their annual dividend. Companies don't have to end their fiscal year near the end of the Calendar year, therefore these end of year events could occur in any month. The annual report could cause investors to react to the hard numbers of the report compared to what wall street experts have been predicting. The payment of an annual dividend will also cause a direct drop in the price of the stock when the payment is made. There will also be some movement in prices as the payment date approaches. You sold all shares? The potential wash sale effect goes away after 30 days from the dividend date. Selling all shares of a stock where a wash existed effectively negates the wash and you can take the loss.