Back

Calling Tradier API from QC App?

In cases where I need to look at the last several asks/bids for a given moment, there doesn't seem to be a viable way to do this currently due to data restrictions as I understand.

I can however make API requests to Tradier to get this information. I even see a Tradier Http client in the code base (QuantConnect.Brokerages.Tradier.TradierBrokerage) that can make requests to "markets/timesales" which is pretty much exactly what I need. Although the Algorithm Assembly doesn't have access to this namespace.

I have thought about including a simple client to effectively do the same thing, but then I got to wondering how Backtesting would affect API limits & performance.

Is there any guidance or restrictions around integrating API requests in an Algorithm?
Update Backtest








Tradier's API doesn't support historical tick data further than 5 days, but it does allow streaming tick data. This would only really be useful in live trading - so assuming you'll be working with live trading there's almost no restrictions to what you can do.
0

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.


Update Backtest





0

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...

This discussion is closed