LEAN is the open source
algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a
global community of 80+ engineers and powers more than a dozen hedge funds today.
Alpha League Competition: $1,000 Weekly Prize Pool
Qualifying Alpha Streams Reentered Weekly Learn
more
I have a Live portfolio with Interactive Brokers that's all in cash no positions. However I'm getting a " Insufficient buying power to complete order".
I believe it's because LEAN thinks my USD.CAD cash is a position therefore using up all my buying power.
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.
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.
Michael Manus
10.2k
,
There was once a post from a guy that wrote his experience with QC and IB.
There was something mentioned about orders that you have to setHoldings to 0.97 or something like that.
You cant use all your money (if this is the problem)
1
Michael Manus
10.2k
,
There was maybe not enough money for paying the commission for the order that is why there has to be money left (0.97)
0
Magno0113
428
,
I'm getting the same error even if I buy 1 share. My portfolio is all in USD cash. For some reason LEAN thinks its a USD.CAD position.
maybe the base currency is not USD or something like that or there is another problem? are you short CAD and long dollar or something like that complicated....hm
in TWS is a button where you can close al NON BASE CURRENCY positions.
also you can switch in the account settings on the website to the desired base currency
and than write the support
1
Edited by Michael Manus
Magno0113
428
,
Solved the problem.
Apparently the Interactive Brokers virtual FX portfolio is causing the issue. LEAN thinks this is part of your real portfolio. I closed the virtual FX portfolio position to solve the problem.
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.
Automaton
1.1k
,
magno0113 thanks for this. I didn't realize after buying a USD.CAD position I then have to close that position to realize the USD. I was getting exceptions in the algorithm for holding USD.CAD, but now I see why and closed it out.
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.
Loading...
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!