Hi everyone,
I successfully completed the design of my first strategy on QC. I want to run it on Bitfinex crypto exchange for a few months with limited funds to get a feeling of how QC live works. However, I have a few questions for anyone who is trading Bitfinex as well:
- Bitfinex futures trades agains USDt. Quant Connect only shows USD pairs. Is USD seen as USDt in QC?
- QC only has one BTCUSD pair. Since spot and deriveates data looks a bit different, which one is used as the data source ? Spot or derivates ?
- What kind of stability can I expect with the live trading servers ? Are they running 24/7 with proper fail-safes ?
- Will QC deploy critical library changes that can break my code ? How do I know my code will run stable with new changes ?
Franky
My live trading is not very successful at this stage. I cannot even get the right currency to work. USDT is used as currency at Bitfinex for derivates. Assigning USDT as account currency and retrieving USDT from cash book gives the following error:
During the algorithm initialization, the following exception has occurred: Error getting cash balance from brokerage: An item with the same key has already been added. Key: USDTAn item with the same key has already been added. Key: USDT
Franky
It seems like this is a bug. I sent an email to support.
Franky
It seems like only Margin is supported, not Derivatives. Thus the initial post is irrelevant and I will be trading BTCUSD on margin. It's a shame as I cannot short with Margin-only.
Louis Szeto
Hi Franky
Thank you for reporting this. We've fixed the issue already. Now it is able to deposit funds in both wallets and deploy live trading. Note that the derivative wallet will be ignored.
No, they're not the same, but you can use BTCUSDT pair. We're sorry that symbols having more than 6 characters are not displaying normally and the documentation is under fixing. You may find all symbols in this list, it includes both BTCUSD and BTCUSDT for bitfinex.
BTCUSD and BTCUSDT are both spot data. We haven't support bitfinex as a future brokerage yet, but you can subscribe to bitcoin future in CME by using AddFuture(Futures.Currencies.BTC).
A live server should be running 24/7, unless we need to upgrade the framework. If it encounters run time errors, it will redeploy very shortly for at most consecutively 5 times within 24 hours. You'll receive an email for that event. However, when this limit is reached, the automatic redeployment will be stopped and you'll need to redeploy manually. This is because it allows you to revise your code to avoid running into the same errors. We recommend you run backtests with edge cases to ensure its robustness.
We'll announce upcoming major changes or upgrade in the framework in the community forum within a short time. Meanwhile, we recommend you to use ObjectStore for storing algorithm states for live trading projects, such that you can restore the previous live running state when the algorithm is stopped due to runtime errors or framework upgrades (see this thread). We also recommend you to run backtests with edge cases after framework upgrades to ensure it is normally working (avoid overwriting ObjectStore file though).
Best
Louis Szeto
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.
Franky
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!