I don't know if this is possible or not but one of the requirements for the algorithm I am coding is to check the US Dollar Index (specifically if it has reached its 5 day ADR). I want to reach out to an external service API that already has the signal "yes" or "no" in the response. So my questions are:
1) Can I query an external API within my Python script?
2) Does QuantConnect already offer a way to query data for the US Dollar Index so that I can bypass the need for an external call? (although I would think that the extrernal call could be useful later).
Michael Manus
hi,
if you really mean average day range indicator it would be possible to create this for your own....
to do this:
https://www.quantconnect.com/forum/discussion/3383/custom-indicator-in-python-algorithm
you could create an request on github maybe they would add this brand new fancy indicator :)
no api needed for sure
Mark Wuergler
Hi Michael,
I already have a custom indicator created for another step in my algorithm and there is already an ADR/ATR indicator created for use in QuantConnect (see this post for examples). What I am looking (and hoping) for is a way for the Python script to make an external HTTP(s) request to an external service that my algorithm can consume and act on.
Eric Borgos
See this posting:
Mark Wuergler
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!