Home Forums The XBRL API Retrieving Market Cap as a concept.local-name item from a report.id

This topic contains 3 replies, has 4 voices, and was last updated by  banh play 4 days, 23 hours ago.

  • Author
  • #153442

    Jason Mellone

    Assuming I know some report.id, I can retrieve stuff like CommonStockSharesOutstanding using something like:

    def fields_from_report_id(report_id, fields):
        return execute_query('fact/search?report.id=' + str(
            report_id) + '&fact.has-dimensions=false&concept.local-name=' + fields + '&fields=concept.local-name.sort(ASC),fact.value,fact.decimals,period.fiscal-year,period.fiscal-period')

    execute_query just executes the query using my credentials – you can assume this works.

    Now, assuming I want to retrieve Market Cap as a concept.local-name, is this possible?

    Right now, I am calc’ing Market Cap using an external vendor for price, but would rather use the xbrl feed directly, if possible

  • #153801

    David Tauriello

    Hi Jason – take a look at EntityPublicFloat – it might be helpful to you.

    Here’s a sample of Microsoft’s fact.value history for the concept:


    Here’s the definition of the concept across all US GAAP Taxonomies:

  • #155891


  • #157088

    banh play

    Banhplay là một trong những cái tên tại Nhà cái số được người chơi ưa dùng cho mỗi lần trải nghiệm và giải trí.

You must be logged in to reply to this topic.