InteractiveBrokers: How to calculate overnight commissions for CFD?
IB's overnight financing cost for US CFDs below $100,000 is the Benchmark Rate + 1.5% for long positions and the Benchmark Rate -1.5% for short positions. You can check the IB CFD Contract Interest for their full list of financing costs for share CFDs. IB's commissions  for an executed trade (where your monthly volume is below $300,000) is $0.005 per share with a minimum per order of $1.00. Commissions and overnight financing are 2 different fees, the overnight financing is charged because CFDs are leveraged. An order is just that, it is not a trade. It means your order has not been executed yet and is still an active order which you have not paid any commissions for yet. Regarding the orders that persist overnight, an example might be, you place an order to buy to open 200 CFDs. If only 100 CFDs are traded on that day, and the remaining 100 CFDs of your order remains active overnight, it will be considered a new order for the purposes of determining commission minimums. I have found a good explanation here: http://www.contracts-for-difference.com/Financing-charge.html Financing is calculated by taking the overall position size, and multiplying it by (LIBOR + say 2%) and then dividing by 365 x the amount of days the position is open. For instance, the interest rate applicable for overnight long positions may be 6% or 0.06. To calculate how much it would cost you to hold a long position for X number of days you would need to make this 'pro rata' meaning that you would need to divide the 0.06 by 365 and multiply it by X days and then multiply this by the trade size. So for example, for a trade size of $20,000, held for 30 days, the interest cost would be about $98.6. It is important to note that due to financing, long positions held for extended periods can reduce returns.
The initial and overnight margin requirements are set by the exchanges (who calculate them using the Standard Portfolio of Analysis of Risk, or 'SPAN' system), and positions are market to market according to these at the end of the trading session. To find these margin requirements you will need to consult the website of the exchange on which the contract you are trading is issued (i.e. if you're trading on the London Metal Exchange it's no good looking at the Chicago Mercantile Exchange's margin requirements as a previous answer suggests!). However, for positions entered and exited within the same day, the daytrade margin rate will apply. This is set by your broker rather than the exchange, and can be as little as 10% of the exchange requirement. You can find a useful comparison of different margin types and requirements in the article I have published here: Understanding Margin for Futures Trading. "A bit strange but okay.  The way I would think about this is again that you need to determine for what purpose you're computing this, in much the same way you would if you were to build out the model. The IPO valuation is not going to be relevant to the accretion/dilution analysis unless you're trying to determine whether the transaction was net accretive at exit. But that's a weird analysis to do. For longer holding periods like that you're more likely to look at IRR, not EPS. EPS is something investors look at over the short to medium term to get a sense of whether the company is making good acquisition decisions. And to do that short-to-medium term analysis, they look at earnings.   Damodaran would say this is a shitty way of looking at things and that you should probably be looking at some measure of ROIC instead, and I tend to agree, but I don't get paid to think like an investor, I get paid to sell shit to them (if only in indirect fashion). The short answer to your question is that no, you should not incorporate what you are calling liquidation value when determining accretion/dilution, but only because the market typically computes accretion/dilution on a 3-year basis tops. I've never put together a book or seen a press release in my admittedly short time in finance that says ""the transaction is estimated to be X% accretive within 4 years"" - that just seems like an absurd timeline.  Final point is just that from an accounting perspective, a gain on a sale of an asset is not going to get booked in either EBITDA or OCF, so just mechanically there's no way for the IPO value to flow into your accretion/dilution analysis there, even if you are looking at EBITDA/shares. You could figure the gain on sale into some kind of adjusted EBITDA/shares version of EPS, but this is neither something I've ever seen nor something that really makes sense in the context of using EPS as a standardized metric across the market. Typically we take OUT non-recurring shit in EPS, we don't add it in. Adding something like this in would be much more appropriate to measuring the success of an acquisition/investing vehicle like a private equity fund, not a standalone operating company that reports operational earnings in addition to cash flow from investing. And as I suggest above, that's an analysis for which the IRR metric is more ideally situated.  And just a semantic thing - we typically wouldn't call the exit value a ""liquidation value"". That term is usually reserved for dissolution of a corporate entity and selling off its physical or intangible assets in piecemeal fashion (i.e. not accounting for operational synergies across the business). IPO value is actually just going to be a measure of market value of equity." Disclosure: I am working for an aggregation startup business called Brokerchooser, that is matching the needs of clients to the right online broker. FxPro and similar brokers are rather CFD/FX brokers. If you want to trade stocks you have to find a broker who is registered member of an exchange like LSE. Long list: http://www.londonstockexchange.com/exchange/traders-and-brokers/membership/member-firm-directory/member-firm-directory-search.html From the brokers we have tested at Brokerchooser.com I would suggest: Tell your broker.  You can usually opt to have certain positions be FIFO and others LIFO.  Definitely possible with Interactive Brokers. Now the question: is advisable for a beginner to speculate in CfDs?  No. If not, is there a better way to invest with a small amount of money? In the US, and I'm sure this carries to the UK, most (if not all) big brokerages (Schwab, TD Ameritrade, Fidelity, Vanguard, etc) have a set of funds that are zero load and zero commission though the fund will still have an expense ratio.  This is the Barclay's UK page related to zero cost investing in the Barclay's funds.  Barclay's might not be the right fit for a beginner as it seems there is a hefty account minimum, but the same zero commission concept exists in the UK.  Again, most of these brokerages will also have an extremely low expense ratio S&P index (or some other market index) fund.  As a beginner that's where you should start. This is not meant to patronize beginners, it's just math.  Assume your trade commission is £7.  If your investment is £100, you'll lose £7 right up front to the buy commission, then another £7 when you sell.  Lets say your position raises 10%, you'll be at a net loss of 4.7%. Meanwhile if you put your £100 in to a 0.1% expense fee mutual fund with no transaction commissions and no load fees, after a 10% gain you'd owe £0.11 due to the expense ratio at the of the year.  You'd have £109.89. Beginners get crushed by fees and commission.  It is not advisable, by any stretch of the imagination, to attempt to day trade or actively manage a portfolio of any sort of security; and commodities and currency are the WORST place to start. Thanks for the answer/comments! The time-based method was something we mooted and something I almost went with. But just to wrap this up, the method we settled on was this: Every time there is an entry or exit into the fund, we divvy out any unrealised market profits/losses according to each person's profit share (based on % of the asset purchased at buy-in) JUST BEFORE the entry/exit. These realised profits are then locked in for those particpants, and then the unrealised profits/loss counter starts at zero, we do a fresh recalculation of shareholding after the entry/exit, and then we start again. Hope this helps anyone with the same issue! As many people here have pointed out, a CFD is a contract for difference. When you invest in stock at eToro, you buy a CFD reflecting a bid on the price movement of the underlying stock, however, you do not actually own the stock or hold any rights shareholders have. The counterparty to the CFD is eToro. When you close your position, eToro shall pay you the amount representing the difference between your buy and sell price for each stock.  I suggest you read the following article about CFDs, it explains everything clearly and thoroughly: http://www.investopedia.com/articles/stocks/09/trade-a-cfd.asp#axzz2G9ZsmX3A As some of the responders have pointed out, and as is mentioned in the article, a broker can potentially misquote the prices of underlying assets in order to manipulate CFDs to their advantage. However, eToro is a highly reputable broker, with over 2 million active accounts, and we guarantee accurate stock quotes. Furthermore, eToro is regulated in Europe (Germany, UK, France, etc.) by institutions that exact strict regulations on the CFD trading sector, and we are obligated to comply with these regulations, which include accurate price quoting.  And of course, CFD trading at eToro has tremendous benefits. Unlike a direct stock investment, eToro allows you to invest as much or as little as you like in your favorite stocks, even if the amount is less than the relevant stock price (i.e. fraction stocks). For example:  if you invest $10 in Microsoft, and on the day of execution eToro’s average aggregated price was $30 after a spread of 0.1%, you will then have a CFD representing 0.33 stocks of Microsoft in your eToro account. In addition, with eToro you can invest in stock in the context of a social trading network, meaning that you can utilize the stock trading expertise of other trader to your advantage by following them, learning their strategies, and even copying their stock investments automatically. To put it briefly, you won’t be facing the stock market alone!  Before you make a decision, I suggest that you try stock trading with an eToro demo account. A free demo account grants you access to all our instruments at real market rates, as well as access to our social network where you can view and participate in trader discussions about trading stocks with eToro, all without risking your hard earned money. Bottom line – it’s free, there are no strings attached, and you can get a much firmer idea of what trading stocks with eToro is like. If you have any further questions, please don’t hesitate to contact us through our site: www.etoro.com. "A couple options that I know of: Interactive Brokers offers a ""paper trading"" mode to its account holders that allows you to start with a pretend stack of money and place simulated trades to test trading ideas. They also provide an API that allows you to interface with their platform programmatically for retrieving quotes, placing orders, and the such. As you noted, however, it's not free; you must hold a funded brokerage account in order to qualify for access to their platform. In order to maintain an account, there are minimums for required equity and monthly activity (measured in dollars that you spend on commissions), so you won't get access to their platform without having a decent amount of skin in the game. IB's native API is Java-based; IbPy is an unofficial wrapper that makes the interface available in Python. I've not used IB at all myself, but I've heard good things about their API and its accessibility via IbPy. Edit: IB now supports Python natively via their published API, so using IbPy is no longer needed, unless you wish to use Python 2.x. The officially supported API is based on Python 3. TD Ameritrade also offers an API that is usable by its brokerage clients. They do not offer any such ""paper trading"" mode, so you would need to ""execute"" transactions based on quotes at the corresponding trade times and then keep track of your simulated account history yourself. The API supports quote retrieval, price history, and trade execution, among other functions. TDA might be more attractive than IB if you're looking for a low-cost link into market data, as I believe their minimum-equity levels are lower. To get access, you'll need to sign up for an API developer account, which I believe requires an NDA. I don't believe there is an official Python implementation of the API, but if you're a capable Python writer, you shouldn't have trouble hooking up to the published interfaces. Some caveats: as when doing any strategy backtesting, you'll want to be sure to be pessimistic when doing so, so your optimism doesn't make your trades look more successful than they would be in the real world. At a minimum, you'll want to ensure that your simulations transact at the posted bid/ask prices, not necessarily the last trade's price, as well as any commissions and fees associated with the trade. A more robust scheme would also take into account the depth of the order book (also known as level 2 quotes), which can cause additional slippage in the prices at which you buy/sell your security. An even more robust scheme would take into account the potential latency of trade execution, looking at all prices over some time period that covers the maximum expected latency and simulating the trade at the worst-possible price." "Let's do some simple math: you front 1500, they leverage you 10:1.  You now have 15K. 3$/15000. Basically you are going to be paying to say buy 100 SPY's @ 133 ($13300 total) 3$. I pay 1$ for the same trade.  How many trades a day are you going to have to make on that to make money? as 10 points on SPY = 1$ per share (and this is if you're good).  Your average win on trades might be 0.2c * 100 = 20$ If you can make ""5"" good trades that would set you back 3*2*5=30$  From your potential 100$ take in this case you would walk home with 70$ but wait theres more!, you only get 80% of this and they get 20%. So you get 56$ and they get 14.  They have made a total of 44$ in this case,you've made 56$.  How far are they gonna leverage you and what kinda sizes can you trade up to on 3$ transaction cost?" "Generally if you are using FIFO (first in, first out) accounting, you will need to match the transactions based on the number of shares. In your example, at the beginning of day 6, you had two lots of shares, 100 @ 50 and 10 @ 52.  On that day you sold 50 shares, and using FIFO, you sold 50 shares of the first lot.  This leaves you with 50 @ 50 and 10 @ 52, and a taxable capital gain on the 50 shares you sold. Note that commissions incurred buying the shares increase your basis, and commissions incurred selling the shares decrease your proceeds.  So if you spent $10 per trade, your basis on the 100 @ 50 lot was $5010, and the proceeds on your 50 @ 60 sale were $2990.  In this example you sold half of the lot, so your basis for the sale was half of $5010 or $2505, so your capital gain is $2990 - 2505 = $485. The sales you describe are also ""wash sales"", in that you sold stock and bought back an equivalent stock within 30 days.  Generally this is only relevant if one of the sales was at a loss but you will need to account for this in your code.  You can look up the definition of wash sale, it starts to get complex. If you are writing code to handle this in any generic situation you will also have to handle stock splits, spin-offs, mergers, etc. which change the number of shares you own and their cost basis.  I have implemented this myself and I have written about 25-30 custom routines, one for each kind of transaction that I've encountered.  The structure of these deals is limited only by the imagination of investment bankers so I think it is impossible to write a single generic algorithm that handles them all, instead I have a framework that I update each quarter as new transactions occur." I use the following method. For each stock I hold long term, I have an individual table which records dates, purchases, sales, returns of cash, dividends, and way at the bottom, current value of the holding. Since I am not taking the income, and reinvesting across the portfolio, and XIRR won't take that into account, I build an additional column where I 'gross up' the future value up to today() of that dividend by the portfolio average yield at the date the dividend is received. The grossing up formula is divi*(1+portfolio average return%)^((today-dividend date-suitable delay to reinvest)/365.25) This is equivalent to a complex XMIRR computation but much simpler, and produces very accurate views of return.  The 'weighted combined' XIRR calculated across all holdings then agrees very nearly with the overall portfolio XIRR. I have done this for very along time.  TR1933 Yes, 1933 is my year of birth and still re investing divis! CFDs (Contracts for Difference) are basically a contract between you and the broker on the difference in price of the underlying between the time you open a position and close a position. You are not actually buying the underlying. With share CFDs, the outcome is a bit like buying the underlying shares on margin. You pay interest for every day you hold the CFDs overnight for long CFDs. However, with short positions, you get paid interest for every day you hold your short position overnight. Most people use CFDs for short term trading, however they can be used for medium to longer term trading just as you would hold a portfolio on margin. What you have to remember is that because you are buying on margin you can lose more than your initial contract amount. A way to manage this risk is by using position sizing and stop loses. With your position sizing, if you wanted to invest $10,000 in a particular share trading at $10 per share, you would then buy 1000 shares or 1000 CFDs in that share. Your initial expense with the CFDs might be only $1000 (at a margin rate of 10%). So instead of increasing your risk by having an initial outlay of $10,000 with the CFDs you limit your risk to the same as you were buying the shares directly. "Interactive Brokers offers global securities trading. Notice that the security types are: cash, stock (STK), futures (FUT), options (OPT), futures options   (FOP), warrants (WAR), bonds, contracts for differences (CFD), or   Dutch warrants (IOPT) There is a distinction between options (OPT), warrants (WAR), options on futures (FOP) and finally, Dutch Warrants (IOPT). IOPT is intuitively similar to an ""index option"". (For index option valuation equations, iopt=1 for a call, and iopt= -1 for a put. I don't know if Interactive Brokers uses that convention).  What is the difference between a ""Dutch Warrant"" and an option or warrant? Dutch warrants aren't analogous to Dutch auctions e.g. in the U.S.Treasury bond market. For North America, Interactive Brokers only lists commissions for traditional warrants and options, that is, warrants and options that have a single stock as the underlying security. For Asia and Europe, Interactive Brokers lists both the  ""regular"" options (and warrants) as well as ""equity index options"", see commission schedule. Dutch warrants are actually more like options than warrants, and that may be why Interactive Brokers refers to them as IOPTS (index options). Here's some background from a research article about Dutch warrants (which was NOT easy to find): In the Netherlands, ING Bank introduced call and put warrants on the   FT-SE 100, the CAC 40 and the German DAX indexes. These are some differences between [Dutch] index warrants and exchange traded index options: That last point is the most important, as it makes the pricing and valuation less subject to arbitrage. Last part of the question: Where do you find Structured Products on Interactive Brokers website? Look on the Products page (rather than the Commissions page, which does't mention Structured Products at all). There is a Structured Products tab with details." To Chris' comment, find out if the assignment commission is the same as the commission for an executed trade. If that does affect the profit, just let it expire.  I've had spreads (buy a call, sell a higher strike call, same dates) so deep in the money, I just made sense to let both exercise at expiration. Don't panic if all legs ofthe trade don't show until Sunday or even Monday morning. Something really does seem seedy that if I invest $2500, that I'll make above 50k if the stock doubles. Is it really that easy? You only buy or sell on margin. Think of when the stock moves in the opposite direction. You will loose 50k. You probably didn't look into that. Investment will vanish and then you will have debt to repay. Holding for long term in CFD accounts are charged per day. Charges depends on different service providers. CFD isn't and should not be used for long term. It is primarily for trading in the short term, maybe a week at the maximum. Have a look at the wikipedia entry and educate yourself.