---
title: "Sentiment history for one asset"
method: GET
path: "/api/markets/sentiment/{slug}"
tags: ["Crypto"]
---

# Sentiment history for one asset

`GET /api/markets/sentiment/{slug}`

## Request

- Base URL: `https://xoomar.com`
- URL: `https://xoomar.com/api/markets/sentiment/{slug}`
- Auth: one of:
  - none
  - API key in header `x-api-key`

Docs: https://xoomar.com/markets/api/sentiment

## Path parameters

- `slug` string, required

## Query parameters

- `history` '7d' | '30d' | 'all'

## Response `200`

OK

- object
  - `data` object[]
    - `ts` string, date-time: Score time
    - `window` string: Window of the series: 7d or 30d
    - `composite` string, nullable: One reading from -1 to +1 for the asset; higher is more bullish
    - `newsScore` string, nullable: Tone of recent headlines about the asset, -1 to +1
    - `newsCount` number, nullable: Headlines in the window
    - `crowdScore` string, nullable: Crowd positioning, -1 to +1; null where it doesn't apply
    - `institutionalScore` string, nullable: Institutional positioning from the CFTC report, -1 to +1; null where no CFTC market covers the asset
    - `fearGreed` number, nullable: Crypto Fear & Greed Index by alternative.me; credit alternative.me next to the value when you show it
    - `divergenceSignal` string, nullable: Label when the components point different ways, or agree strongly
    - `divergenceMessage` string, nullable: Plain note for that label
    - `metadata` object: Sample headlines about the asset
    - `canonicalUrl` string, uri: The matching page on xoomar.com
  - `updatedAt` string, date-time: When the response was built; a few dated feeds give the date of their newest row instead
  - `source` 'xoomar.com'
  - `docs` string
  - `license` string: Data terms
  - `attribution` string
  - `canonicalUrl` string, uri: The matching page on xoomar.com
  - `meta` object: Who publishes the data and how to credit it
    - `source` string: The publisher or publishers of the data, comma-separated
    - `sourceAttribution` string: The credit line to show wherever the data is displayed
    - `notice` string: Requests without a key only: the free key, app registration and the credit

## Other responses

- `404`: Unknown slug, ticker or country
- `429`: Rate limit: 10 requests a minute without a key, 30 with a free key

---

[API](https://skmtc.dev/xoomar/apis/xoomar-market-data-api.md) · [All operations](https://skmtc.dev/xoomar/apis/xoomar-market-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xoomar/apis/xoomar-market-data-api/revisions/07b78401eaaa?raw)
