<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fundamental data incomplete?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">could you please check the fundamental data? I want to access <code>shares</code> but for some stocks they are <code>nan</code> or 0. I just list the result of the last day (liquidity is checked). There are probably more in the data before.</p>
<p dir="auto">Thanks!</p>
<pre><code>import qnt.data.secgov_fundamental as fundamental
indicators_data = fundamental.load_indicators_for(market_data, indicator_names=['shares'])

for symbol in symbols:
    if market_data.sel(asset=symbol, field='is_liquid').values[-1] == 1:
        print(symbol, indicators_data.sel(asset=symbol, field='shares').values[-1])
</code></pre>
<p dir="auto">NAS:META nan<br />
NAS:LULU 56574615254.22<br />
NAS:CDW 33285349512.0<br />
NAS:MDB 25767646010.4<br />
NAS:FANG 34372380817.46<br />
NAS:GFS 28094353231.94<br />
NAS:AVGO 573720125618.37<br />
NAS:AMD 293136048694.22<br />
NAS:CSX 72448787967.15999<br />
NAS:LRCX 122063448150.0<br />
NAS:MSFT 3131260131262.89<br />
NAS:QCOM 183135600000.0<br />
NAS:CDNS 84897732150.0<br />
NAS:BIIB 31780231266.739998<br />
NAS:INTU 177660674450.0<br />
NAS:ASML 374502070437.11<br />
NAS:TTWO 24769146877.199997<br />
NAS:MAR 72319227139.16<br />
NAS:NFLX 268631184172.16<br />
NAS:MDLZ 97282992944.75<br />
NAS:EXC 36793013731.020004<br />
NAS:TSLA 545618293897.8<br />
NAS:KDP 40670292503.1<br />
NAS:WBA 17859797164.170002<br />
NAS:CCEP 32580298037.100002<br />
NAS:MRNA 40159714892.88<br />
NAS:DASH nan<br />
NAS:GEHC 41337329248.62<br />
NAS:INTC 177787400000.0<br />
NAS:ADI 94490338901.0<br />
NAS:AMAT 167292873657.04<br />
NAS:CTAS 63627808606.45<br />
NAS:PEP 236126948757.80002<br />
NAS:SBUX 103698198000.0<br />
NAS:MNST 63000117666.9<br />
NAS:VRTX 107249405203.2<br />
NAS:SNPS 89193820979.90001<br />
NAS:ORLY 66984680438.55<br />
NAS:CPRT 54101457174.100006<br />
NAS:DLTR 27929003604.03<br />
NAS:TXN 151632812349.47998<br />
NAS:AMZN 1827140369086.9001<br />
NAS:BKNG 119802937241.46<br />
NAS:DXCM 51724604035.56999<br />
NAS:ON 31639413394.08<br />
NAS:TMUS 190777094005.5<br />
NAS:WBD 20737341514.5<br />
NAS:VRSK 34046494056.96<br />
NAS:CRWD nan<br />
NAS:KHC 42786029487.490005<br />
NAS:TTD nan<br />
NAS:AEP 43841699622.2<br />
NAS:MU 103767434720.0<br />
NAS:PAYX 43552833819.04<br />
NAS:ROST 49298041330.380005<br />
NAS:ADSK 54802967111.75<br />
NAS:ADP 100286301121.70999<br />
NAS:IDXX 44404626994.02<br />
NAS:AZN nan<br />
NAS:ANSS 29792286582.59<br />
NAS:CSGP 38431317106.1<br />
NAS:CTSH 37163907688.8<br />
NAS:CHTR 0.0<br />
NAS:FTNT 51725867964.920006<br />
NAS:PANW 90655398000.0<br />
NAS:WDAY 0.0<br />
NAS:NXPI 60621839878.799995<br />
NAS:GOOGL nan<br />
NAS:PDD nan<br />
NAS:AMGN 145625242968.73<br />
NAS:KLAC 92102230350.06<br />
NAS:AAPL 2719006406480.0<br />
NAS:EA 35546917294.560005<br />
NAS:XEL 29106817021.1<br />
NAS:ADBE 235577880000.00003<br />
NAS:FAST 43609858258.549995<br />
NAS:CSCO 198977053111.2<br />
NAS:REGN 0.0<br />
NAS:ODFL 46154568504.22<br />
NAS:GILD 91452314560.56<br />
NAS:ILMN 21159124000.0<br />
NAS:ABNB nan<br />
NAS:DDOG nan<br />
NAS:PYPL 67530454850.64<br />
NAS:TEAM nan</p>
]]></description><link>http://quantiacs.com/community/topic/540/fundamental-data-incomplete</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 08:39:49 GMT</lastBuildDate><atom:link href="http://quantiacs.com/community/topic/540.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Mar 2024 16:00:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fundamental data incomplete? on Mon, 22 Apr 2024 09:45:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/2548">@buyers_are_back</a> Hi,<br />
the update was related to market_capitalization field availability and correctness, as vyacheslav_b described. Unfortunately, at the moment we cannot provide missing fundamental data, like number of ordinary shares, for some stocks (e.g. META). We are going to investigate potential new data sources in order to improve our datasets.<br />
Regards,</p>
]]></description><link>http://quantiacs.com/community/post/1599</link><guid isPermaLink="true">http://quantiacs.com/community/post/1599</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Mon, 22 Apr 2024 09:45:50 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Fri, 19 Apr 2024 19:58:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/5">@vyacheslav_b</a></p>
<p dir="auto">Thanks for the reply. I know "market cap = #shares * price". The real issue is that #shares is not available for some stocks (e.g. META) so I have to rely on other data sources like yahoo finance.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/12">@support</a></p>
<p dir="auto">Do you have an update? Thanks!</p>
]]></description><link>http://quantiacs.com/community/post/1595</link><guid isPermaLink="true">http://quantiacs.com/community/post/1595</guid><dc:creator><![CDATA[buyers_are_back]]></dc:creator><pubDate>Fri, 19 Apr 2024 19:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Fri, 05 Apr 2024 12:33:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/2548">@buyers_are_back</a> Hello. Yes, you can define your function as mentioned in the documentation.<br />
<a href="https://quantiacs.com/documentation/en/data/fundamental.html" rel="nofollow ugc">https://quantiacs.com/documentation/en/data/fundamental.html</a></p>
<p dir="auto">Please pay attention to the section "Potential Issues in Working with Fundamental Data".</p>
<p dir="auto">The main problem with market capitalization is that it is necessary to adjust the price for splits, and these data are not always available on time. For example, the report with the number of shares is published after the split on the exchange.</p>
<p dir="auto">The page contains links to where the data comes from (<a href="http://sec.gov" rel="nofollow ugc">sec.gov</a>).</p>
<pre><code class="language-python">import numpy as np
import qnt.data as qndata
import qnt.data.secgov_fundamental as fundamental


def build_market_capitalization(fundamental_facts):
    shares = fundamental.build_shares(fundamental_facts)
    prices_no_split = qndata.restore_origin_data(market_data, make_copy=True)
    close_price = prices_no_split.sel(field='close')

    market_capitalization = shares * close_price

    return market_capitalization


custom_builder = {
    'market_capitalization': {
        'facts': fundamental.FACT_GROUPS['shares'],
        'build': build_market_capitalization,
    },
}

market_data = qndata.stocks.load_ndx_data(min_date="2005-01-01")

indicators_data = fundamental.load_indicators_for(market_data,
                                                  indicator_names=['market_capitalization'],
                                                  indicators_builders=custom_builder)

display(indicators_data.sel(field="market_capitalization").to_pandas().tail(2))
display(indicators_data.sel(asset='NAS:AAPL').to_pandas().tail(2))
display(indicators_data.sel(asset=['NAS:AAPL']).sel(field="market_capitalization").to_pandas().tail(2))

</code></pre>
]]></description><link>http://quantiacs.com/community/post/1549</link><guid isPermaLink="true">http://quantiacs.com/community/post/1549</guid><dc:creator><![CDATA[Vyacheslav_B]]></dc:creator><pubDate>Fri, 05 Apr 2024 12:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Fri, 05 Apr 2024 09:38:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/2548">@buyers_are_back</a> Hi,<br />
(1, 2) Yes, that's correct, we provide split adjusted prices in our datasets, but not dividend adjusted. The dividend adjustment is done in evaluation, under statistics calculation, when calculating <strong>relative_returns</strong> (you can check it in <code>qnt.stats</code> module), you don't need to adjust close price on dividends. But yes, your comment makes sense, it could be useful for strategy development and we will at least provide a method for dividend adjustment in next <strong>qnt</strong> library update.<br />
(3) <strong>split_cumprod</strong> is actually split adjustment factor, and if you divide open/high/low/close price with this factor you will get the real price of an asset on that point of time, the price before any split happened.<br />
You are currently using older version of <strong>qnt</strong> library, just update it and you will see correct split_cumprod values. With the function <strong>restore_origin_data()</strong> from <code>qnt.data.stocks</code> you can get the "real" historical prices (not split adjusted).<br />
Thank you for your comments.</p>
]]></description><link>http://quantiacs.com/community/post/1547</link><guid isPermaLink="true">http://quantiacs.com/community/post/1547</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Fri, 05 Apr 2024 09:38:23 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Wed, 03 Apr 2024 12:11:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/12">@support</a> I have 3 more questions regarding adjusted close.</p>
<p dir="auto">(1) I have not checked the source code but I assume your backtest / online evaluation is based on split- and divident-adjusted close prices?</p>
<p dir="auto">(2) In <code>qnt.qndata.stocks</code> only close is provided. I checked it is split-adjusted properly but not dividend-adjusted (see attached screenshot). Should we retroactively compute the adjusted close based on <code>divs</code>?  It would be nice to have it in the data so we don't have to compute it every time.</p>
<p dir="auto"><img src="/community/assets/uploads/files/1712146179337-fc41c521-ac67-4423-8f6c-a5ab21a9e0fb-image.png" alt="fc41c521-ac67-4423-8f6c-a5ab21a9e0fb-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">(3) The <code>split_cumprod</code> column is always 1. What does it mean? It's probably not important.</p>
]]></description><link>http://quantiacs.com/community/post/1539</link><guid isPermaLink="true">http://quantiacs.com/community/post/1539</guid><dc:creator><![CDATA[buyers_are_back]]></dc:creator><pubDate>Wed, 03 Apr 2024 12:11:16 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Wed, 03 Apr 2024 11:39:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/12">@support</a> Thank you, looking forward to your update.</p>
]]></description><link>http://quantiacs.com/community/post/1538</link><guid isPermaLink="true">http://quantiacs.com/community/post/1538</guid><dc:creator><![CDATA[buyers_are_back]]></dc:creator><pubDate>Wed, 03 Apr 2024 11:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Fri, 29 Mar 2024 14:45:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/2548">@buyers_are_back</a> Hi,<br />
we use fundamental data from The U.S. Securities and Exchange Commission - EDGAR (<a href="http://sec.gov" rel="nofollow ugc">sec.gov</a>).<br />
We are working on providing market capitalization field, and we will get back with update in coming week.</p>
<p dir="auto">Regards,</p>
]]></description><link>http://quantiacs.com/community/post/1531</link><guid isPermaLink="true">http://quantiacs.com/community/post/1531</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Fri, 29 Mar 2024 14:45:57 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Thu, 28 Mar 2024 13:16:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/12">@support</a> Thank you for the information. Is there a way to get the market cap of each stock in your framework?</p>
<p dir="auto">Furthermore what is your data source? I see for example Shares Outstanding / Implied Shares Outstanding of "NAS:ABNB" is available on yahoo finance. <a href="https://finance.yahoo.com/quote/ABNB/key-statistics" rel="nofollow ugc">https://finance.yahoo.com/quote/ABNB/key-statistics</a></p>
]]></description><link>http://quantiacs.com/community/post/1527</link><guid isPermaLink="true">http://quantiacs.com/community/post/1527</guid><dc:creator><![CDATA[buyers_are_back]]></dc:creator><pubDate>Thu, 28 Mar 2024 13:16:06 GMT</pubDate></item><item><title><![CDATA[Reply to Fundamental data incomplete? on Mon, 25 Mar 2024 22:20:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/2548">@buyers_are_back</a> Hi,<br />
Some fields in fundamental data are not available for all companies, and this is how we get the data from official sources. NaN values are set for companies where field is not available at all, but zero values can be found for companies which have had values at some point in history. For example, "NAS:ABNB" doesn't provide this information ('shares') at all, but 'NAS:REGN' have provided, last time at 2012.<br />
By the way, the values you showed are not correct values for this field for all symbols. At least, this field, which refers to Common Shares Outstanding, is a field with integer values.<br />
Thanks for pointing out the potential error in the data.</p>
<p dir="auto">Kind regards,</p>
]]></description><link>http://quantiacs.com/community/post/1502</link><guid isPermaLink="true">http://quantiacs.com/community/post/1502</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Mon, 25 Mar 2024 22:20:02 GMT</pubDate></item></channel></rss>