trophy

Long Only, ETF Alpha Streams Competition with $27,500 Prize Pool

Back

Tiingo Historical data

Hello Everyone,

I've been doing research on getting historical Tiingo data into quantconnect. I understand that quantconnect doesn't have the History() implementation for Tiingo, and it doesn't look like we can directly access the Tiingo websocket API to make the request directly to Tiingo. I've looked at using a rolling window or other methods of storing data in a backtest to create the history, but that doesn't help with warming up custom indicators for live trading. Has anyone worked out a solution to getting this historical data into live trading?

I need historical mutual fund data for this algo. Quandl doesn't seem to have the right tickers, and while Tiingo has the data and the implementation this history problem is giving me trouble. Help is much appreciated.

 

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.


Hi JD820,

We do support history on custom data. However, Tiingo isn't fully implemented yet. We are in talks and will hopefully integrate their data soon!

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.


I forgot I put this post up. I ended up using a workaround, which may be partially documented elsewhere.

I used the following to download the data:

        source = 'https://api.tiingo.com/tiingo/daily/'+ self.targetSymbol +'/prices?startDate=' + startDate + '&endDate=' + endDate + '1&format=json&token='+self.apiKey+'';
        response = self.Download(source)
        self.hist = pd.read_json(response)

Then I formatted that data and looped through it manually updating indicators and such. Its pretty simple and gets the job done in some circumstances.

 

0

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