Add financial intelligence widgets to your website, blog, or application with a single script tag. Widgets are lightweight, self-contained, and styled with shadow DOM for isolation. No API key required for basic usage.

Available Widgets

Supply Chain
Shows supply chain relationships and risk score.
Insider Activity Badge
Displays insider trading conviction metrics.
Fragility Score
Shows a single fragility risk number.

Configuration

Embed Code

Copy and paste this HTML into your page:

<div class="myallies-widget" data-type="supply-chain" data-ticker="AAPL"></div>
<script src="https://www.myallies.com/embed/myallies-widget.js" async></script>

HTML Attributes

AttributeRequiredValuesDescription
data-typeYessupply-chain, insider-badge, fragility-scoreWhich widget to render.
data-tickerYesAny U.S. stock tickerThe stock symbol to display data for.
data-themeNolight (default), darkColor theme for the widget card.
classYesmyallies-widgetRequired class for the widget script to detect the element.

Widget Details

Supply Chain

Displays top 5 suppliers, top 5 customers, and the fragility score for any publicly traded company. Data sourced from SEC 10-K filings and mapped by the MyAllies knowledge graph.

Insider Activity Badge

Shows the insider activity summary including the overall conviction signal, average conviction score, cluster buy count, and high-conviction purchase count. Data from SEC Form 4 filings.

Fragility Score

A compact display of the supply chain fragility score for a company. Scores range from 0 (resilient) to 100 (fragile). Ideal for embedding inline with article text.

Technical Details

The widget script is a single JavaScript file under 10KB that runs independently with no external dependencies. It uses the Fetch API to retrieve data from the MyAllies Public API, which supports CORS for cross-origin requests. Widgets render inside a shadow DOM container to prevent style conflicts with your existing page styles.

Multiple widgets can be placed on the same page. The script automatically finds all elements with the myallies-widget class and initializes them. For dynamically added widgets, call window.MyAlliesWidgets.init() after inserting new widget elements into the DOM.

Rate Limits

Widget API requests are subject to the same rate limits as the MyAllies Public API. Anonymous requests are limited to 100 requests per minute per IP address. For higher limits, register for a free API key at the MyAllies API portal.

Build with MyAllies Data

Access supply chain intelligence, insider transaction analysis, and more through our Public API.

Open Account