Hi guys,
For anyone who has brokerage trading experience on margin, I have simple question: how is interest on margin "paid"?
I ask this in the context of interactive brokers but I assume the way you pay margin interest is the same everywhere. Is it a check you write every quarter? Or do brokerages automatically pull the interest on margin out of your principal when the trade on margin comes full circle (i.e. the trade is sold and margin is closed).
Would appreciate the discussion. Thanks :-)
-Stephen
Petter Hansson
I've been hit by short interest fees at the end of the month IIRC. Unsure if margin interest is paid in a similar manner. You should probably be able to see this on your IB paper account by looking through the monthly specification (forgot what it's called).
Stephen Oehler
Thanks Petter; I guess I'll ask IB how they handle it.
Stephen Oehler
Ok so here was their answer; and I'm still fuzzy about parts of it:
"Margin interest fees are assessed monthly and debited from your account within the first five days of each month."
I've asked them to clarify, but my remaining questions are:
If anyone from QC staff could answer the third and fourth question, I'd greatly appreciate it. Anyone that has had experience paying this off, details would be welcome. :-)
Thanks!
Jared Broad
We reset the cash every day to sync with the IB account. I can't comment on how IB updates that cash.
In backtests we don't model this cost but its in the issues list.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Petter Hansson
I don't know about the questions relating to QC (I'm rather expecting the cashbook update to detect the change caused by fee), but I'm 99.9% certain the debit to the account happens automatically without your intervention.
For a margin account, I wouldn't expect being pushed above 1x leverage due to margin fees to be particularly traumatic (assuming you're not in instruments with less than that, e.g. long XIV or short UVXY). Above the overnight maximum of 2x leverage they're probably going to start liquidating at their discretion though. Conclusion: Leave some space in margin/leverage.
Stephen Oehler
Thanks Petter and Jared! This has been immensely helpful. I also got some further clarity from IB. Hopefully this helps someone else out in the future:
1. Margin Interest is directly debited from the account usually in the first 5 business days of the month.
2. If the debit balance is still open, the Margin Interest will be deducted from the excess liquidity in the account, and increase the debit balance.
3. If no excess liquidity is available when the Margin Interest posts, then the posting of the margin interest could trigger a margin violation and result in a liquidation which will bring the account back into margin compliance.
4. If the debit balance has been closed prior to posting, then when the Margin Interest is posted to the account it will be deducted from the available cash in the account.
Jared Broad
Thanks for sharing the information back Stephen
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Stephen Oehler
Hi guys,
Sorry to bring this one back from the dead, but had a quick question. To recap, IB posts a debit to your account if you trade on margin. This posts within the first 5 days of each month.
Common sense says that you should keep some liquid cash in your account in order to cover the costs. My question is: with the LEAN engine, how does one allocate some money for cash, while trading with the rest AND borrowing margin on it? To my knowledge, to borrow on margin, you need to set your leverage above 1.0. However by doing that you leave no room for liquid cash to pay the interest fees.
With LEAN, how would one allocate cash for paying interest fees while also simultaneously borrowing on margin? Any help is greatly appreciated.
Stephen Oehler
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!