Skip to content
Guavy Logo GUAVY
GET
·
/api/v1/trades/get-trend-history

Get Trend History

This endpoint returns timeseries trend data for a given instrument.
The trade simulator's strategies don't use Guavy's sentiment scores. Its signals and backtests are separate from the scored news, so you can read the two side by side.

Attributes

symbol
string
Required
The symbol of the instrument to fetch trend history for.
limit
integer
Required
The maximum number of days of time series trend data to return, maximum 5000 (more than the full series).

API Request

Example Request with cURL

curl \
--request GET \
--url     'https://guavy.com/api/v1/trades/get-trend-history/<symbol>/<limit>' \
--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/trades/get-trend-history/btc/4

{
  "trends": [
    {
      "date": "2026-11-13",
      "price": 71140.03951906422,
      "strength": "Solid",
      "timestamp": 1794529800000,
      "trend": "Down"
    },
    {
      "date": "2026-11-12",
      "price": 74011.23638429228,
      "strength": "Solid",
      "timestamp": 1794443400000,
      "trend": "Down"
    },
    {
      "date": "2026-11-11",
      "price": 73563.81276308127,
      "strength": "Solid",
      "timestamp": 1794357000000,
      "trend": "Down"
    },
    {
      "date": "2026-11-10",
      "price": 75050.91697868418,
      "strength": "Moderate",
      "timestamp": 1794270600000,
      "trend": "Down"
    }
  ]
}

Response Object

trends
array[object]
Array of trend history objects, with the following keys:
date
string
Human-readable date string formatted from the timestamp.
price
float
The price of the cryptocurrency at the start of the trend.
strength
string
The strength of the trend e.g. Moderate, Solid, Strong, or Weak
timestamp
integer
UNIX timestamp (in milliseconds) representing when this data was collected.
trend
string
The trend of the cryptocurrency action e.g. Up, Down, or Neutral.

Token Costs

Each API call consumes tokens from your monthly budget. Endpoints that return richer or deeper data cost more tokens. Historical endpoints scale with the amount of data requested.

You never have to guess how much is left: every metered response carries your balance in x-tokens-* headers: x-tokens-cost (what this call cost), x-tokens-limit / x-tokens-remaining (monthly), and x-tokens-limit-today / x-tokens-remaining-today (daily). The remaining values are net of any credit applied to the same request. A 401 refused at your limit carries them too, with x-tokens-cost at 0 because nothing was charged.

Endpoint Token Cost
GET /api/v1/ping 1
GET /api/v1/instruments/list-symbols 1
GET /api/v1/instruments/search-instruments/:query 2
GET /api/v1/instruments/get-detail/:symbol 5
GET /api/v1/instruments/scorecard/:symbol 10
GET /api/v1/newsroom/get-market-summary 3
GET /api/v1/newsroom/get-article/:id 3
GET /api/v1/newsroom/get-recent-briefs/:symbol 3 – 8 (scales with limit)
GET /api/v1/newsroom/search-briefs/:symbol 3 – 8 (scales with limit)
GET /api/v1/newsroom/get-instrument-analysis/:symbol 10
GET /api/v1/trades/get-recent-buys 3
GET /api/v1/trades/get-recent-sells 3
GET /api/v1/trades/get-recommendations 5
GET /api/v1/trades/get-current-action/:symbol/:strategy 5
GET /api/v1/trades/get-trend-history/:symbol/:limit 5 – 15 (scales with limit)
GET /api/v1/trades/get-backtest-history/:symbol/:strategy 8 – 20 (scales with years)
GET /api/v1/trades/get-backtest-summary/:symbol/:strategy 8 – 20 (scales with years)
GET /api/v1/sentiment/get-sentiment-history/:symbol 3 – 12 (scales with limit)
GET /api/v1/technical-analysis/get-price-history/:symbol 2 – 5 (5 for the full series, less with limit, from or to)
GET /api/v1/technical-analysis/get-indicators/:symbol 8

Account Limits

Each plan includes a monthly token budget: 3,000 for Sandbox, 250,000 for Quant, and 1,000,000 for Pro. Each market has its own budget, and a daily cap as well (500 tokens a day on Sandbox). The monthly budget resets to the full amount on the 1st of the month for an account with no active monthly subscription, or on your subscription's renewal date once its payment clears. Unused base tokens don't carry over. You can top up at any time with a one-time token pack; pack tokens never expire and any unused pack balance rolls forward. If you exceed your budget, the API returns a 401 until the next reset or until you purchase more tokens.

Connection Limits

The Guavy API allows 300 requests per minute per API key, returning 429 above that. We recommend caching responses that don't change frequently to reduce token consumption and improve performance.

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

© 2026 Guavy Inc. All rights reserved.