Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
New error message: NotAllowedInLiveWarning: The fundamentals attribute valuation.shares_outstanding is not yet allowed in broker-backed live trading

Hi, I am getting this new error message "NotAllowedInLiveWarning: The fundamentals attribute valuation.shares_outstanding is not yet allowed in broker-backed live trading" which did not appear previously.

As shares_outstanding are required to calculate market cap and look at different things like float shrink etc I wonder why it is not available.

Could you please clarify?

Thanks!

15 responses

I got the same thing. I wonder if valuation.market_cap would work just as well to get the market cap? I'm trying that out to see how differently my algorithm behaves compared to shares_outstanding. Unfortunately I have bigger problems for now...

Sunil

Are you guys seeing this in pipelines or get_fundamentals ? If pipeline, they posted recently that this was disallowed.

Hi Simon,

It was in pipeline. So it means we can't get market caps historically?

think market_cap is okay, just shares_outstanding is not, so you can't calculate market_cap yourself...

https://www.quantopian.com/posts/pipeline-now-available-in-real-money-trading

Turns out for my purposes that's just fine. Shares outstanding is defined for fewer stocks than market cap, so the latter turns out to be more useful for general screening and ranking.

Also, thanks for the post pointer. Very useful.

Sunil

also get the same warning when getting basic_eps in pipeline.
Is this something we could expect improvements or not likely due to some issue?

The broad reason we block these per share fields is because we don't properly handle stock splits in the fundamental data for you. So we prevent you from live trading using those metrics to help you avoid an unpleasant surprise in your algo's behavior.

We've scope a short term solution that is focused on solving this problem for shares_outstanding. A solution for basis_eps and other per share metrics is a longer term focus as we scope out bigger changes for our fundamentals data. For something like EPS, you can get the numerator (various earnings metrics) that remain independent of share count -- using those fields would be my short term recommendation.

Disclaimer

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 Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian 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.

@ Josh - that makes a lots of sense. thanks for clarifying.

@Josh - if we took market_cap / adjusted_price, would that give a metric that makes sense?
Mostly for looking at buyback vs stock issuance.

Q Any luck at getting valuation.shares_outstanding available in Live trading. Its a key measure of dilution that is very useful.

+1 to supporting EPS and shares_outstanding.

I ran into the same error, but I solved it this way in the pipeline: (fundamental.valuation.market_cap.latest / USEquityPricing.close)
shares*price = marketcap, so marketcap / price = shares outstanding.

Hi guys, since there was so much demand, we unblocked shares_outstanding from live trading. However, I'd like to point out that the the field is still not split adjusted, and it's updated quarterly. The fact that the field isn't split adjusted means that you'll see a jump in number of shares outstanding after a split event (sometimes up to a few days later). The quarterly updates also happen at different times for different stocks - Morningstar is probably updating the field based on quarterly filings.

Disclaimer

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 Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian 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.

Hi Jamie,

Could you open "fundamental.earnings_report.dividend_per_share" as well, because I use that one in my fundamental calculations and there is no easy workaround?

Hi Guido,

Would you still find this field useful, even if it's not adjusted for splits and only updated from quarterly fillings? If you could give me a bit of a sense of the use case, I'd appreciate it! Feel free to email in to [email protected] and mention that it's in response to our discussion on the forums, I'll take a look.