Add a mood chart to an article

A chart of the market mood or of an asset's mentions makes a market article easier to follow. Here is how to get the numbers and mark the dates your text talks about.

You need: an API key (opens in a new tab) and any charting tool you like. Each request uses credits.

  1. Choose what to show

    Decide whether the article is about the whole market or one asset. The first needs the index, the second the mentions of the asset.

  2. Pull the series

    Call get_market_index for the mood, or get_chart_data with kind mentions for one asset. Use 30 or 90 days.

    A Python example that asks for a daily series
  3. Draw the chart

    Draw it in your own tool. Mark the dates the article talks about and give the chart a plain title.

  4. Link the source

    Under the chart, link the Sentiment index (opens in a new tab) or the asset page, so readers can look at the latest values.

  • What you will see

    A clean chart with the dates of your story marked, and a link to the source.

  • Data used

    get_market_index or get_chart_data with kind mentions, through the API (opens in a new tab).

  • Limits

    • A chart shows mood or attention, not prices.
    • Say which days the chart covers.