Guavy Logo GUAVY
Sentiment Get Sentiment History
GET
·
/api/v1/sentiment/get-sentiment-history

Get Sentiment History

Retrieve sentiment time series data for an instrument over a specified number of days.

Attributes

symbol
string
Required
The symbol of the instrument to fetch sentiment data for.
limit
integer
The maximum number of days of time series data to return. Defaults to 100.

API Request

Example Request with cURL

curl \
--request GET \
--url     'https://data.guavy.com/api/v1/sentiment/get-sentiment-history/<symbol>?limit=<integer>' \
--header 'Authorization: Bearer YOUR-GUAVY-ACCESS-TOKEN' \
--header 'Content-Type: application/json'

This request format works across all modern HTTP clients, including Python requests, JavaScript fetch, and other programming language libraries.

Example Response for /api/v1/sentiment/get-sentiment-history/btc?limit=2

{
  "sentiment": [
    {
      "date": "2025-12-13",
      "negative": 137,
      "neutral": 0,
      "positive": 197,
      "symbol": "BTC",
      "timestamp": 1765609200000,
      "total": 334
    },
    {
      "date": "2025-12-12",
      "negative": 422,
      "neutral": 1,
      "positive": 579,
      "symbol": "BTC",
      "timestamp": 1765522800000,
      "total": 1002
    }
  ]
}

Response Object

sentiment
array[object]
Array of sentiment data objects, with the following keys:
date
string
The date for which the sentiment data applies.
negative
integer
The count of negative sentiment mentions for the day.
neutral
integer
The count of neutral sentiment mentions for the day.
positive
integer
The count of positive sentiment mentions for the day.
symbol
string
The symbol of the instrument.
timestamp
integer
The UNIX timestamp (in milliseconds) date for which the sentiment data applies.
total
integer
The total count of sentiment mentions for the day.

API Limits

The Guavy API has a limit of 10 simultaneous connections. You'll receive a 429 error if you reach the limit. At exceptionally high volumes, you may receive an HTTP 429 or 403 without a JSON body.

We recommend that you cache frequently accessed values that do not change often in your application's data store. This will prevent your application from bumping up against the throttling limitations and will likely provide faster access to that data.

Account Limits

Your Guavy account will typically have a licensed limit of at least 100,000 API calls per month. In addition, there is a limit of 10,000 API calls per day. If you reach these limits, you will receive a 429 error.

Connection Timeouts

The Guavy API has a 120-second timeout on API calls. You may see this type of timeout after you've made a network socket connection and are already sending and receiving data. Response times are dependent on the complexity of your request and the general load across Guavy. Some endpoints in the Guavy API return values that are large and slow to calculate.

Was this helpful?
Feedback option #{picture.id}
Feedback option #{picture.id}
Feedback option #{picture.id}
Feedback option #{picture.id}

© 2025 Guavy Inc. All rights reserved.