v1.0.0
OpenAPI 3.0.3

Introduction

The Fealthy Insights API gives you market data over HTTP. It is read-only and returns JSON. It covers:

  • Exchange rates
  • Stock, index, commodity and crypto prices and candles
  • Dividends and earnings

Live prices also stream over a WebSocket.

Quick start

Send your key in the Authorization header. This request returns the latest USD/UAH rate:

curl 'https://insights.api.fealthy.ua/v1/m/latest?series=forex.usd.uah' \
  -H 'Authorization: Bearer YOUR_KEY'

The response is a JSON object keyed by series, with one point:

{"forex.usd.uah":{"time":"2026-11-20T22:00:00.000Z","value":45.0532}}

Base URL

https://insights.api.fealthy.ua/v1

Every path in this reference starts with /v1. Add the path to https://insights.api.fealthy.ua to get the full URL.

Authentication

Every request needs an API key.

  • Send it as Authorization: Bearer YOUR_KEY. The SDK does this from its getToken option.
  • To get a key, email hello@fealthy.ua and say what you are building.
  • A key is shown once. Keep it secret: never put it in a URL or in code that runs in a browser.
  • If a key leaks, ask for a new one.

Try it

Every operation has a request button, and its forms are prefilled with working examples. The button sends the request directly to https://insights.api.fealthy.ua.

Rate limits and caps

Keys that have limits get these defaults:

Limit Default
Requests per minute 30
Requests per day 2,000
Open live-price connections 1

Responses to a key with limits carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (in seconds), except a 401. They describe the limit you will reach first. Past a limit you get a 429 with Retry-After. The minute window starts on the full minute and the day window at 00:00 UTC.

To see the limits of your key and how much of them is left, call /v1/limits. That call counts as a request too.

Each request is also capped:

Where Cap
/m, /m/as-of Up to 50 sources
/assets/events 1-100 ids
Asset events operations A date range of at most 400 days
/assets limit up to 200
/assets/search limit up to 50

Errors

A failed request returns a JSON body. Its shape varies, so branch on the HTTP status code.

Status Meaning Example body What to do
400 A parameter is missing or invalid. {"error":"Bad Request"} Fix the request. The body or its message names the problem.
401 The key was not accepted. {"error":"Unauthorized"} Check that you sent the whole key and that it is still active.
404 No asset or event has this id. {"error":"Asset not found"} Check the id.
404 The path is not an operation. {"message":"Route GET:/x not found","error":"Not Found","statusCode":404} Check the URL.
429 The key is over a limit. {"error":"Too Many Requests"} Wait for the number of seconds in Retry-After, then retry.
500 The API could not read its data. {"error":"Internal server error"} Try again later.
503 Quotes or events are temporarily unavailable. {"error":"unavailable"} Try again later. If Retry-After is set, wait that many seconds.

A 400 can also carry Validation error, invalid_query (an unknown parameter on the asset events operations) or a sentence that names the problem, such as from is required and must be an ISO date.

Caching

  • ETag: when an operation supports it, the response has a strong ETag. Send it back as If-None-Match. If nothing changed, you get a 304 with no body.
  • Cache-Control: set per operation. For a request with a key, public becomes private (max-age stays). A response with no Cache-Control gets private. 401 and 429 responses are no-store.

Browser access (CORS)

JavaScript in a browser on another origin can read these response headers: ETag, Deprecation, Link, X-Insights-History, X-Insights-Profile, Server-Timing, Retry-After, WWW-Authenticate, RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. It can also read the headers every browser exposes, such as Cache-Control and Content-Type.

Deprecated operations

A deprecated operation keeps working but is removed from this reference. Its responses include:

  • Deprecation: the deprecation date, in seconds since the epoch.
  • Link with rel="successor-version": the replacement.

The same path under /v1 works too. No removal has been announced, so no Sunset header is sent.

Live prices (WebSocket)

Connect to wss://insights.api.fealthy.ua/v1/m/subscribe to stream live prices. This is a WebSocket, not an HTTP operation, so the request button cannot open it. Use the SDK's subscribe() or any WebSocket client.

A browser cannot set headers on a WebSocket. Pass two subprotocols instead: fealthy.insights.v1 and YOUR_KEY. The API replies with fealthy.insights.v1.

All messages are JSON text.

Client sends What it does
{"type":"subscribe","series":["stock.us.aapl"]} Subscribe to these series.
{"type":"unsubscribe","series":["stock.us.aapl"]} Unsubscribe from them.
{"type":"ping"} Ask for a pong.
Server sends What it does
{"type":"subscribed","accepted":[...],"rejected":[{"series":"x","code":"unknown_series"}]} Replies to subscribe with the accepted series, and the rejected ones with a code.
{"type":"snapshot","series":"stock.us.aapl","time":"2026-11-20T21:00:00.000Z","value":342.56,"session":"REGULAR"} Sent once for each accepted series, with its last price.
{"type":"tick","series":"stock.us.aapl","time":"...","value":343.1,"session":"REGULAR"} The price changed. About one per second at most, per series and session.
{"type":"unsubscribed","series":["stock.us.aapl"]} Replies to unsubscribe.
{"type":"pong"} Replies to ping.
{"type":"error","code":"invalid_message","message":"..."} The API rejected your message.

Codes in rejected and in error messages:

Code When What to do
invalid_message The message is not valid JSON, has an unknown type, or series is not a non-empty array of strings. Fix the message.
limit_exceeded The connection has 50 series already, or the API is at capacity. Unsubscribe from some series, or try again later.
not_live The series has no live price (forex and NBU series). Use /m/latest instead.
unknown_series The API does not know the series. Check the series id.
upstream_unavailable The data source for live prices is temporarily unavailable. Use REST for now, and try again later.

session is REGULAR, PRE, POST or EXTENDED. Use only REGULAR points for a headline price.

A connection holds at most 50 series. Connections do not last forever: when one drops, reconnect and subscribe again. The SDK does this for you.

import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const subscription = insights.subscribe(['stock.us.aapl', 'crypto.btc'], {
  onSnapshot: point => console.log('start', point.series, point.value),
  onTick: point => console.log(point.series, point.value, point.session),
  onError: error => console.error(error.series, error.message),
});

subscription.add('stock.us.msft'); // add more series to the same socket
subscription.close(); // stop the stream and any reconnecting

SDK

@fealthy/insights-sdk is a TypeScript client for this API. It is a 0.x preview on GitHub Packages with restricted access, so only Fealthy's own apps can install it today. You do not need it: every operation works over plain HTTP and has a cURL sample. The TypeScript samples in this reference use the SDK. If you have access, create a client like this:

import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

You can try the SDK in your browser, no install needed: open the SDK playground, paste your key and run any example from this reference.

A Python SDK is coming. Until then, use any HTTP client and start from the cURL samples.

Server:https://insights.api.fealthy.ua

Metrics

​

Exchange rates, bank and market quotes, and stock, index, commodity and crypto prices. Get a series over time, its latest value, its value at a given moment, or how it is built.

Get the latest value of one or more series

​

Returns the newest point of each series you ask for.

  • The answer is an object keyed by the series ids you sent. A series with no data is left out.
  • Stock, ETF, index, commodity and crypto series: the live price. If there is none, the last chart close.
  • Other series, such as exchange rates: the latest stored value.
  • A cross rate such as forex.eur.usd is calculated from its two legs. Its time is the older of the two.
  • This operation sets no cache headers. A request with a key gets Cache-Control: private.

Query Parameters

  • Comma-separated series ids, for example forex.usd.uah,forex.eur.uah.

  • Source to read from instead of the default. Applies to series such as exchange rates. Stock, ETF, index, commodity and crypto series ignore it.

Responses

  • An object keyed by series id, with one point per series that has data.

      • Time of the latest point, ISO 8601 in UTC. For a cross rate, the older of its two legs.

      • Value at time. For an exchange rate, units of the quote currency per unit of the base currency. For a stock, index, commodity or crypto series, the price.

    application/json
  • A parameter is missing or invalid.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
Request Example for get/v1/m/latest
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const latest = await insights.getLatestMetrics(['forex.usd.uah', 'forex.eur.uah']);
console.log('forex.usd.uah', latest['forex.usd.uah']?.value); // forex.usd.uah 45.0532

{
  "forex.usd.uah": {
    "time": "2026-11-20T22:00:00.000Z",
    "value": 45.0532
  },
  "forex.eur.uah": {
    "time": "2026-11-20T22:00:00.000Z",
    "value": 49.5335
  }
}

Describe a series and list its sources

​

Returns, for each series:

  • how it is built: direct, inverse or cross. A series that does not exist is left out
  • the series it is built from
  • its default source
  • every source you can read it from. A cross rate lists only the sources both legs have.

Query Parameters

  • Comma-separated series ids, for example forex.usd.uah.

Responses

  • An object keyed by series id, with one entry per series that exists.

      • The source /m uses when you omit source: yahoo for stock, index, commodity and crypto series. default means no source is configured.

      • Name of the series: USD/UAH for an exchange rate, the series id for any other series.

      • How the series is built: direct (read as is), inverse (1 divided by another series), cross (one series divided by another) or unknown (no such series).

      • Every source you can read the series from. For a cross rate, only the sources both legs have.

      • Ids of the series this one is calculated from: none for direct, one for inverse, two (numerator and denominator) for cross.

    application/json
  • A parameter is missing or invalid.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
Request Example for get/v1/m/explain
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const info = await insights.explainMetrics(['forex.usd.uah', 'forex.eur.uah']);
const entry = info['forex.usd.uah'];
console.log(entry?.defaultSource, entry?.sources.length); // nbu, then the number of sources the series has

{
  "forex.usd.uah": {
    "name": "USD/UAH",
    "resolution": "direct",
    "underlying": [],
    "defaultSource": "nbu",
    "sources": [
      "bank:abank:card:buy",
      "bank:abank:card:sell",
      "bank:abank:cash:buy",
      "bank:abank:cash:sell",
      "bank:agroprosperis:card:buy"
    ]
  }
}

Get the points of a series

​

Returns the points of one series, grouped by source and sorted oldest first within each source.

  • Use from and to to limit the range.
  • source picks the source: one, or up to 50 separated by commas. List them with /m/explain. Without it, the default source of the series is used.
  • Stock, ETF, index, commodity and crypto series ignore source. Their points come from stored history and live data. X-Insights-History tells you which.
  • bucket sets the candle size of those series. You get exactly that size, or a 422. Other series, such as exchange rates, ignore it.
  • A series with no data returns an empty array.

Query Parameters

  • Series id, for example forex.usd.uah, stock.us.aapl or crypto.btc.

  • Source, or several separated by commas (at most 50), for example nbu or nbu,interbank:sell.

  • Start of the range, as a UTC datetime. For example 2026-11-10T00:00:00Z. It must end with Z: an offset such as +02:00 returns a 400.

  • End of the range, as a UTC datetime. For example 2026-11-20T00:00:00Z. It must end with Z: an offset such as +02:00 returns a 400.

  • Candle size for stock, ETF, index, commodity and crypto series. Other series, such as exchange rates, ignore it.

    • Without bucket you get 1d.
    • Stock, ETF, index, commodity and crypto series take 1m, 5m, 15m, 30m, 1h or 1d only, within the same reach as candles; any other size, or a size the range cannot have, answers 422.

Responses

  • The points of the series, grouped by source, oldest first within each source.

    • Source of the point, for example nbu. Always yahoo for stock, index, commodity and crypto series.

    • Time of the point, ISO 8601 in UTC.

    • Value at time. For an exchange rate, units of the quote currency per unit of the base currency. For a stock, index, commodity or crypto series, the price.

    Headers
    Headers: 2
    • Where the data came from: db (stored history), db+live (stored history plus the newest live data) or live (all live). Not sent on every response.

    • Timing details for diagnostics. You can ignore it.

    application/json
  • A parameter is missing or invalid.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • The range cannot have the candle size you asked for. available is the finest size it has: ask again with it.

    • The finest candle size the range has. Ask again with it.

    • Always bucket_unavailable.

    • Details about the error, if any. For example, which parameter was rejected.

    • The bucket you sent.

    Headers
    Headers: 1
    • Always no-store: the answer is not kept by a cache.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
Request Example for get/v1/m
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const points = await insights.getMetrics('forex.usd.uah', {
  source: 'nbu',
  from: '2026-11-10T00:00:00Z',
  to: '2026-11-20T00:00:00Z',
  bucket: '1d',
});
console.log(points.length, points[0]); // a point: { time: 1794268800000 (epoch ms), value: 45.5013, source: 'nbu' }

[
  {
    "source": "nbu",
    "time": "2026-11-10T22:00:00.000Z",
    "value": 45.5013
  },
  {
    "source": "nbu",
    "time": "2026-11-11T22:00:00.000Z",
    "value": 45.3222
  },
  {
    "source": "nbu",
    "time": "2026-11-12T22:00:00.000Z",
    "value": 45.3849
  },
  {
    "source": "nbu",
    "time": "2026-11-13T22:00:00.000Z",
    "value": 45.3849
  },
  {
    "source": "nbu",
    "time": "2026-11-14T22:00:00.000Z",
    "value": 45.3849
  }
]

Get the last known value at a given moment

​

Returns the last point of one series at or before a moment, for each source you list. One request replaces one request per source. A source with no data by then is left out. Stock, ETF, index, commodity and crypto series always return an empty object. For their live price, use /m/latest.

Query Parameters

  • Series id.

  • Comma-separated source ids, at most 50.

  • The moment to read, as a UTC datetime. For example 2026-11-20T12:00:00Z. It must end with Z: an offset such as +02:00 returns a 400.

Responses

  • An object keyed by source, with one point per source that has data by that moment.

      • Time of the point, ISO 8601 in UTC.

      • Value at time. For an exchange rate, units of the quote currency per unit of the base currency. For a stock, index, commodity or crypto series, the price.

    application/json
  • A parameter is missing or invalid.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
Request Example for get/v1/m/as-of
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const bySource = await insights.getValuesAsOf('forex.usd.uah', ['nbu'], '2026-11-20T12:00:00Z');
console.log(bySource['nbu']?.value); // 45.0532, or undefined if nbu has no data by then

{
  "nbu": {
    "time": "2026-11-19T22:00:00.000Z",
    "value": 45.0532
  }
}

Assets

​

The asset catalog (stocks, ETFs, indexes, commodities, currencies, crypto). Search it, list it, and get an asset's details, candles, dividends and earnings.

Search the asset catalog

​

Searches assets by ticker, name, description or id. q is required.

  • Results are ranked: exact ticker, ticker prefix, name prefix, then any other match. Ties go by type, crypto market rank and id.
  • limit (1-50) caps the number of results. Without it you get every match.
  • Use offset or page to page through the results, 50 at a time unless you send limit. A page shorter than the size you asked for is the last one.
  • A crypto search with include=crypto returns at most 50 results.
  • include=crypto also searches coins outside the default crypto list. It works only when assetType includes crypto.
  • If nothing matches exactly, and q has 4 to 32 characters and at most 4 words, similar spellings are tried. This happens only on the first page. You get at most 10 results if you send neither limit nor page, otherwise at most one page.
  • A query that names a Russian business returns an empty array.

Query Parameters

  • Search text. Longer text is cut to 128 characters.

  • Return only these asset classes: stock, etf, index, commodity, crypto, fx, other or metal. Separate several with commas. metal selects the precious-metal exchange rates (forex.xau, forex.xag, forex.xpt, forex.xpd), not the currency pairs.

  • Leave out these asset classes. Same values as assetType, separated by commas.

  • Send crypto to also search coins outside the default list. Works only when assetType includes crypto.

  • Maximum results, 1-50. Without it you get every match (at most 50 for a crypto search with include=crypto).

  • Rows to skip, 0-1000, in ranked order. With offset and no limit, a page is 50 rows.

  • Page number, 1-20. Same as offset = (page - 1) * limit; limit defaults to 50. Do not send it with offset: that returns a 400.

Responses

  • Matching assets, best match first.

    • Asset class, normalized for display and filtering. type is the raw catalog value.

      values
      stocketfindexcommoditycryptofxother
    • Crypto details of a coin. Sent only when you pass include=crypto on a list or search request for crypto. The single-asset response never has it.

      Properties: 13
      • Old tickers and other names of the coin, for example gram for Toncoin. Search matches them.

      • Coin icon. null if none has been uploaded.

        Properties: 1
        • Icon version. It changes when the picture changes, so you can tell a cached icon from a new one.

      • true if the bare ticker refers to this coin. That holds only for an active, hand-curated coin whose key is its ticker in lower case.

      • true for a stablecoin.

      • Coin key. It never changes. The asset id is crypto. plus the key.

      • How many networks the coin exists on. networkKeys lists at most 20.

      • Keys of the networks the coin exists on. At most 20.

      • The names of the networks in networkKeys, in the same order.

        Properties: 2
        • Network key.

        • Name of the network, for example Ethereum.

      • true if the coin is active and has a price source, so you can read its price.

      • Decimal places to show in the coin's price, 0 to 8.

      • Market-cap rank of the coin, from 1. Lists of coins are sorted by it.

      • Whether the coin is active or delisted. A delisted coin keeps its history and is still returned by id. It stays in the full list (type=crypto&include=crypto with no paging or filter). In paged or filtered lists and in search it can be missing, so look it up by id.

      • Public ticker of the coin, for example BTC.

    • Quote currency. null if unknown.

    • The source /m uses for this asset when you omit source. default means none is configured.

    • Short English description. null if there is none.

    • Short Ukrainian description. null if there is none.

    • Exchange where a stock is listed: NASDAQ, NYSE or NYSE American. null if unknown.

    • Asset id, for example stock.us.aapl, commodity.gold or crypto.btc.

    • English name. If only the Ukrainian name is known, you get that. If neither is known, you get the ticker or the id. Never empty.

    • Ukrainian name. If only the English name is known, you get that. If neither is known, you get the ticker or the id. Never empty.

    • Market ticker, for example ^GSPC or GC=F. null if the asset has none.

    • Catalog type, for example stock, etf, index, commodity, forex or crypto. assetType is the same value, normalized.

    application/json
  • A parameter is missing or invalid.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
  • The API could not read its data. Try again later.

    • Always Internal server error.

    application/json
Request Example for get/v1/assets/search
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const hits = await insights.searchAssets('apple', { limit: 2 });
console.log(hits[0].id, hits[0].nameEn); // stock.us.aapl Apple Inc. Common Stock

[
  {
    "id": "stock.us.aapl",
    "nameEn": "Apple Inc. Common Stock",
    "nameUk": "Apple Inc. Common Stock",
    "descriptionEn": "Apple Inc. Common Stock (AAPL) stock price",
    "descriptionUk": null,
    "type": "stock",
    "defaultSource": "yahoo",
    "exchange": "NASDAQ",
    "assetType": "stock",
    "currency": "USD",
    "symbol": "AAPL"
  },
  {
    "id": "stock.us.aple",
    "nameEn": "Apple Hospitality REIT, Inc. Common Shares",
    "nameUk": "Apple Hospitality REIT, Inc. Common Shares",
    "descriptionEn": "Apple Hospitality REIT, Inc. Common Shares (APLE) stock price",
    "descriptionUk": null,
    "type": "stock",
    "defaultSource": "yahoo",
    "exchange": "NYSE",
    "assetType": "stock",
    "currency": "USD",
    "symbol": "APLE"
  }
]

List assets

​

Returns the catalog, optionally filtered by type or assetType.

  • limit (1-200) and offset page through it in a fixed order: type, curated assets first, crypto market rank, id. page pages by page number instead. Do not combine page with offset.
  • With no paging you get every row. The exception is a crypto request with include=crypto (type=crypto, or an assetType that includes crypto): you get the first 50 rows, except in the case below.
  • type=crypto&include=crypto with no paging and no other filter returns every coin, with a strong ETag. Send it back as If-None-Match to get a 304.
  • include=crypto also adds coins outside the default crypto list.

Query Parameters

  • Catalog type. One of stock, etf, forex, commodity, index.us or crypto.

  • Return only these asset classes: stock, etf, index, commodity, crypto, fx, other or metal. Separate several with commas. metal selects the precious-metal exchange rates (forex.xau, forex.xag, forex.xpt, forex.xpd), not the currency pairs.

  • Leave out these asset classes. Same values as assetType, separated by commas.

  • Send crypto to also list coins outside the default list, with their crypto object. Works only on a request that names crypto: type=crypto, or an assetType that includes crypto.

  • Page size, 1-200. Without limit, offset and page, you get every row.

  • Rows to skip, from 0.

  • Page number, from 1. Same as offset = (page - 1) * limit; limit defaults to 50. Do not send it with offset: that returns a 400.

Responses

  • One page of assets, or the whole catalog if you send no paging.

    • Asset class, normalized for display and filtering. type is the raw catalog value.

      values
      stocketfindexcommoditycryptofxother
    • Crypto details of a coin. Sent only when you pass include=crypto on a list or search request for crypto. The single-asset response never has it.

      Properties: 13
      • Old tickers and other names of the coin, for example gram for Toncoin. Search matches them.

      • Coin icon. null if none has been uploaded.

        Properties: 1
        • Icon version. It changes when the picture changes, so you can tell a cached icon from a new one.

      • true if the bare ticker refers to this coin. That holds only for an active, hand-curated coin whose key is its ticker in lower case.

      • true for a stablecoin.

      • Coin key. It never changes. The asset id is crypto. plus the key.

      • How many networks the coin exists on. networkKeys lists at most 20.

      • Keys of the networks the coin exists on. At most 20.

      • The names of the networks in networkKeys, in the same order.

        Properties: 2
        • Network key.

        • Name of the network, for example Ethereum.

      • true if the coin is active and has a price source, so you can read its price.

      • Decimal places to show in the coin's price, 0 to 8.

      • Market-cap rank of the coin, from 1. Lists of coins are sorted by it.

      • Whether the coin is active or delisted. A delisted coin keeps its history and is still returned by id. It stays in the full list (type=crypto&include=crypto with no paging or filter). In paged or filtered lists and in search it can be missing, so look it up by id.

      • Public ticker of the coin, for example BTC.

    • Quote currency. null if unknown.

    • The source /m uses for this asset when you omit source. default means none is configured.

    • Short English description. null if there is none.

    • Short Ukrainian description. null if there is none.

    • Exchange where a stock is listed: NASDAQ, NYSE or NYSE American. null if unknown.

    • Asset id, for example stock.us.aapl, commodity.gold or crypto.btc.

    • English name. If only the Ukrainian name is known, you get that. If neither is known, you get the ticker or the id. Never empty.

    • Ukrainian name. If only the English name is known, you get that. If neither is known, you get the ticker or the id. Never empty.

    • Market ticker, for example ^GSPC or GC=F. null if the asset has none.

    • Catalog type, for example stock, etf, index, commodity, forex or crypto. assetType is the same value, normalized.

    Headers
    Headers: 2
    • Identifies this exact body. Sent only on the type=crypto&include=crypto response. Send it back as If-None-Match to get a 304 if nothing changed.

    • On the type=crypto&include=crypto response: public, max-age=3600, stale-while-revalidate=86400. A cache may keep it for an hour, then serve the old copy for up to a day while it refreshes. It can also be no-store.

    application/json
  • Nothing changed since the ETag you sent in If-None-Match. Only for type=crypto&include=crypto.

    Headers
    Headers: 2
    • Identifies this exact body. Sent only on the type=crypto&include=crypto response. Send it back as If-None-Match to get a 304 if nothing changed.

    • On the type=crypto&include=crypto response: public, max-age=3600, stale-while-revalidate=86400. A cache may keep it for an hour, then serve the old copy for up to a day while it refreshes. It can also be no-store.

  • A parameter is invalid, or page was sent with offset.

    • Error code. Only the parameter validation error includes it.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    • Details about the error, if any. For example, which parameter was rejected.

    • The HTTP status, repeated in the body. Only the parameter validation error includes it.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
Request Example for get/v1/assets
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const stocks = await insights.getAssets({ type: 'stock', limit: 5 });
console.log(stocks.length, stocks[0].id); // 5, then the id of the first stock

[
  {
    "id": "stock.us.aapl",
    "nameEn": "Apple Inc. Common Stock",
    "nameUk": "Apple Inc. Common Stock",
    "descriptionEn": "Apple Inc. Common Stock (AAPL) stock price",
    "descriptionUk": null,
    "type": "stock",
    "defaultSource": "yahoo",
    "exchange": "NASDAQ",
    "assetType": "stock",
    "currency": "USD",
    "symbol": "AAPL"
  },
  {
    "id": "stock.us.aple",
    "nameEn": "Apple Hospitality REIT, Inc. Common Shares",
    "nameUk": "Apple Hospitality REIT, Inc. Common Shares",
    "descriptionEn": "Apple Hospitality REIT, Inc. Common Shares (APLE) stock price",
    "descriptionUk": null,
    "type": "stock",
    "defaultSource": "yahoo",
    "exchange": "NYSE",
    "assetType": "stock",
    "currency": "USD",
    "symbol": "APLE"
  }
]

Get one asset

​

Returns one asset from the catalog by id: names, class, exchange, quote currency and market ticker.

Path Parameters

  • Asset id, for example stock.us.aapl, commodity.gold or forex.usd.uah.

Responses

  • The asset.

    • Asset class, normalized for display and filtering. type is the raw catalog value.

      values
      stocketfindexcommoditycryptofxother
    • Quote currency. null if unknown.

    • The source /m uses for this asset when you omit source. default means none is configured.

    • Short English description. null if there is none.

    • Short Ukrainian description. null if there is none.

    • Exchange where a stock is listed: NASDAQ, NYSE or NYSE American. null if unknown.

    • Asset id, for example stock.us.aapl, commodity.gold or crypto.btc.

    • English name. If only the Ukrainian name is known, you get that. If neither is known, you get the ticker or the id. Never empty.

    • Ukrainian name. If only the English name is known, you get that. If neither is known, you get the ticker or the id. Never empty.

    • Market ticker, for example ^GSPC or GC=F. null if the asset has none.

    • Catalog type, for example stock, etf, index, commodity, forex or crypto. assetType is the same value, normalized.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • No asset has this id.

    • What was not found, for example Asset not found.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
Request Example for get/v1/assets/{id}
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const asset = await insights.getAsset('stock.us.aapl');
console.log(asset.nameEn, asset.currency); // Apple Inc. Common Stock USD

{
  "id": "stock.us.aapl",
  "nameEn": "Apple Inc. Common Stock",
  "nameUk": "Apple Inc. Common Stock",
  "descriptionEn": "Apple Inc. Common Stock (AAPL) stock price",
  "descriptionUk": null,
  "type": "stock",
  "defaultSource": "yahoo",
  "exchange": "NASDAQ",
  "assetType": "stock",
  "currency": "USD",
  "symbol": "AAPL"
}

Get quote, fundamentals and profile of an asset

​

Returns the full dataset of a stock, commodity or index: quote, valuation, key statistics, dividend, financials, company profile, calendar and analyst view.

  • Fundamentals and profile fields are null where no data exists.
  • profile.sectorSlug and profile.industrySlug are stable keys for the sector and the industry.
  • quote.changeBasis says what change and changePercent are measured against.
  • An asset that is in the catalog but has no quote yet returns 200 with tradingStatus: not_trading.
  • The id of a Russian business returns 404.

Path Parameters

  • Asset id, for example stock.us.aapl, commodity.gold or index.us.sp500.

Responses

  • The details of the asset.

    • Upcoming dates. Each is null if the source has no date.

      Properties: 2
      • Ex-dividend date, ISO 8601 in UTC. null if none.

      • The earliest earnings-report date the source lists, ISO 8601 in UTC. null if none.

    • Dividend numbers. Each is null if the source has no value.

      Properties: 4
      • Ex-dividend date: a buyer from this day on does not receive the dividend. ISO 8601 in UTC. null if none.

      • Date the dividend is paid, ISO 8601 in UTC. null if unknown.

      • Dividend per share paid over the last 12 months, in the quote currency.

      • Dividend yield over the last 12 months, as a fraction of the price: 0.003 means 0.3%.

    • When this response was built, ISO 8601 in UTC.

    • Financial numbers and the analyst view. Each is null if the source has no value.

      Properties: 7
      • Free cash flow, in the currency of the reports.

      • Gross margin as a fraction of revenue: 0.49 means 49%.

      • How many analysts contribute to the target price and the rating.

      • Operating margin as a fraction of revenue: 0.33 means 33%.

      • The analyst consensus rating as a key, for example buy or hold. null if there is none.

      • Mean of the analyst price targets.

      • Total revenue, in the currency of the reports.

    • Key statistics. Each is null if the source has no value.

      Properties: 6
      • Average daily trading volume over the last 10 days.

      • Average daily trading volume over the last 3 months.

      • Book value per share, in the quote currency.

      • Profit margin as a fraction of revenue: 0.27 means 27%.

      • Return on equity as a fraction: 1.42 means 142%.

      • Number of shares in circulation.

    • Company profile. X-Insights-Profile says where it came from. The fields sector, industry, country, city and longBusinessSummary with no suffix are deprecated aliases of their En versions.

      Properties: 14
      • City of the head office in English. null if unknown.

      • City of the head office in Ukrainian. null if unknown.

      • Country of the head office in English. null if unknown.

      • Country of the head office in Ukrainian. null if unknown.

      • Number of full-time employees. null if unknown.

      • Industry of the company in English, for example Consumer Electronics. null if unknown.

      • Stable key of the industry, for example consumer-electronics. null if the industry is unknown.

      • Industry of the company in Ukrainian. null if unknown.

      • Description of the business in English. null if there is none.

      • Description of the business in Ukrainian. null if there is none.

      • Sector of the company in English, for example Technology. null if unknown.

      • Stable key of the sector, for example technology. null if the sector is unknown.

      • Sector of the company in Ukrainian. null if unknown.

      • Website of the company. null if unknown.

    • The live quote. Every number in it is null if tradingStatus is not_trading.

      Properties: 22
      • Best ask price (the lowest offer to sell). null if the source has none.

      • Best bid price (the highest offer to buy). null if the source has none.

      • Price change in the quote currency, against the base in changeBasis.

      • What change and changePercent are measured against.

        • previousClose: for stocks, ETFs, indexes, commodity futures and forex. (price / previousClose - 1) * 100.
        • rolling24h: for crypto. The price about 24 hours before marketTime (give or take a couple of minutes), not previousClose.
        • unknown: not measured for this asset class.
      • Price change in percent: 1.9 means 1.9%, not a fraction. Against the base in changeBasis.

      • Currency code of the prices, for example USD. null if unknown.

      • Highest price of the current or last regular session.

      • Lowest price of the current or last regular session.

      • Exchange the asset trades on, for example NasdaqGS. null if unknown.

      • Average price over the last 50 days.

      • Highest price over the last 52 weeks.

      • Lowest price over the last 52 weeks.

      • State of the market the asset trades on, for example REGULAR, PRE, POST or CLOSED. null if unknown.

      • Time of the price, ISO 8601 in UTC. null if there is no quote.

      • Name of the asset, for example Apple Inc.. null if unknown.

      • Opening price of the current or last regular session.

      • Price in the post-market session. null outside it.

      • Price in the pre-market session. null outside it.

      • Closing price of the previous regular session.

      • Current price in the quote currency. null if there is no quote.

      • Average price over the last 200 days.

      • Volume traded in the current or last regular session.

    • Analyst ratings, one entry per period. null if the source has none. An empty array for an asset that is not trading yet.

      Properties: 6
      • Number of analysts rating it a buy.

      • Number of analysts rating it a hold.

      • Month the counts are for, relative to now: 0m is this month, -1m last month, and so on.

      • Number of analysts rating it a sell.

      • Number of analysts rating it a strong buy.

      • Number of analysts rating it a strong sell.

    • Ticker of the asset at the quote source, for example AAPL.

    • trading for a normal response. not_trading if the asset is in the catalog but has no quote yet (a new listing). Then quote.name, quote.exchange and quote.currency come from the catalog, and every number in quote and every fundamental is null.

    • Valuation numbers. Each is null if the source has no value.

      Properties: 7
      • Beta: how strongly the price follows the market. 1 means it moves as much as the market.

      • Analyst estimate of earnings per share for the next period, in the quote currency.

      • Earnings per share over the last 12 months, in the quote currency.

      • Price-to-earnings ratio using the analyst estimate of next earnings.

      • Market capitalization in the quote currency.

      • Price-to-book ratio: the price divided by the book value per share.

      • Price-to-earnings ratio over the last 12 months of reported earnings.

    Headers
    Headers: 1
    • Where the profile came from: db (stored) or live (fetched for this request because none is stored). Also sent on the 200 for an asset with no quote yet.

    application/json
  • The id is not a quoted asset (a currency pair, for example).

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • No quote exists for this id.

    • What was not found, for example Asset not found.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
  • Quotes are temporarily unavailable. Wait for the number of seconds in Retry-After, then retry.

    • Short text, for example unavailable.

    Headers
    Headers: 1
    • Seconds to wait before retrying.

    application/json
Request Example for get/v1/assets/{id}/details
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const details = await insights.getStockDetails('stock.us.aapl');
console.log(details.quote.price, details.profile.sectorEn); // 342.56 Technology

{
  "ticker": "AAPL",
  "fetchedAt": "2026-11-21T23:20:09.695Z",
  "tradingStatus": "trading",
  "quote": {
    "name": "Apple Inc.",
    "exchange": "NasdaqGS",
    "currency": "USD",
    "marketState": "CLOSED",
    "price": 342.56,
    "change": -6.649994,
    "changePercent": -1.9042965,
    "changeBasis": "previousClose",
    "previousClose": 349.21,
    "open": 352.63,
    "dayHigh": 354.3,
    "dayLow": 340.56,
    "volume": 80450240,
    "marketTime": "2026-11-20T21:00:02.000Z",
    "bid": 341.02,
    "ask": 346.48,
    "fiftyTwoWeekHigh": 360.83,
    "fiftyTwoWeekLow": 243.42,
    "fiftyDayAverage": 341.8072,
    "twoHundredDayAverage": 303.2406,
    "preMarketPrice": null,
    "postMarketPrice": 344.87
  },
  "valuation": {
    "marketCap": 4978144444416,
    "trailingPE": 38.146996,
    "forwardPE": 32.400333,
    "priceToBook": 44.41333,
    "beta": 1.089,
    "epsTrailingTwelveMonths": 8.98,
    "epsForward": 10.57273
  },
  "keyStats": {
    "sharesOutstanding": 14532182000,
    "bookValue": 7.713,
    "returnOnEquity": 1.42257,
    "profitMargins": 0.27604,
    "averageDailyVolume3Month": 42969748,
    "averageDailyVolume10Day": 42814590
  },
  "dividend": {
    "rate": 1.06,
    "yield": 0.0030354226,
    "exDate": "2026-11-12T00:00:00.000Z",
    "payDate": "2026-11-16T00:00:00.000Z"
  },
  "financials": {
    "totalRevenue": 478833999872,
    "grossMargins": 0.48786,
    "operatingMargins": 0.33009997,
    "freeCashflow": 105658376192,
    "targetMeanPrice": 345.6313,
    "recommendationKey": "buy",
    "numberOfAnalystOpinions": 39
  },
  "profile": {
    "sectorEn": "Technology",
    "sectorUk": "Технології",
    "sectorSlug": "technology",
    "industryEn": "Consumer Electronics",
    "industryUk": "Споживча електроніка",
    "industrySlug": "consumer-electronics",
    "website": "https://www.apple.com",
    "fullTimeEmployees": 167000,
    "longBusinessSummaryEn": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories. The company offers iPhone, a line of smar...",
    "longBusinessSummaryUk": "Apple Inc. розробляє, виробляє та продає смартфони, персональні компʼютери, планшети, носимі пристрої та аксесуари у всьому світі. Компанія пропонує iPhone —...",
    "countryEn": "United States",
    "countryUk": "США",
    "cityEn": "Cupertino",
    "cityUk": "Купертіно"
  },
  "calendar": {
    "nextEarningsDate": "2027-01-28T21:00:00.000Z",
    "exDividendDate": "2026-11-12T00:00:00.000Z"
  },
  "recommendationTrend": [
    {
      "period": "0m",
      "strongBuy": 6,
      "buy": 20,
      "hold": 13,
      "sell": 3,
      "strongSell": 3
    },
    {
      "period": "-1m",
      "strongBuy": 6,
      "buy": 18,
      "hold": 13,
      "sell": 3,
      "strongSell": 3
    }
  ]
}

Get OHLC candles of an asset

​

Returns candles (open, high, low, close and volume) for a quoted asset. from is required.

  • You get candles of exactly the bucket size you ask for. If the range is too old or too long for that size, the answer is 422 with error bucket_unavailable and available, the finest size the range has.
  • 1w gives weekly candles.
  • An asset that is in the catalog but has no chart yet returns 200 with no candles.

Path Parameters

  • Asset id, for example stock.us.aapl, commodity.gold or index.us.sp500.

Query Parameters

  • Start of the range: an ISO 8601 date or datetime. An offset such as +02:00 is accepted.

  • End of the range: an ISO 8601 date or datetime. An offset such as +02:00 is accepted. Default: now.

  • Candle size: 1m, 5m, 15m, 30m, 1h, 1d (default) or 1w (weekly). 1m reaches back 29 days, at most 8 days per request; 5m, 15m and 30m reach back 59 days; 1h about two years; 1d and 1w the whole history. A size the range cannot have answers 422.

    values
    1m5m15m30m1h1d1w

Responses

  • The candles, oldest first.

    • Close price of the candle.

    • Highest price of the candle.

    • Lowest price of the candle.

    • Open price of the candle.

    • Start of the candle, ISO 8601 in UTC.

    • Volume traded in the candle. null if the source gives none.

    Headers
    Headers: 2
    • Where the data came from: db (stored history), db+live (stored history plus the newest live data) or live (all live). Not sent on every response.

    • Timing details for diagnostics. You can ignore it.

    application/json
  • from is missing or not a date, to is not a date, bucket is unknown, or the id is not a quoted asset.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • No chart exists for this id.

    • What was not found, for example Asset not found.

    application/json
  • The range cannot have the candle size you asked for. available is the finest size it has: ask again with it.

    • The finest candle size the range has. Ask again with it.

    • Always bucket_unavailable.

    • Details about the error, if any. For example, which parameter was rejected.

    • The bucket you sent.

    Headers
    Headers: 1
    • Always no-store: the answer is not kept by a cache.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
  • The API could not read its data. Try again later.

    • Always Internal server error.

    application/json
  • Quotes are temporarily unavailable. Wait for the number of seconds in Retry-After, then retry.

    • Short text, for example unavailable.

    Headers
    Headers: 1
    • Seconds to wait before retrying.

    application/json
Request Example for get/v1/assets/{id}/candles
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const candles = await insights.getCandles('stock.us.aapl', {
  from: '2026-11-10T00:00:00Z',
  bucket: '1d',
});
console.log(candles.length, candles[0]?.close); // one candle per trading day, oldest first

[
  {
    "time": "2026-11-10T14:30:00.000Z",
    "open": 351.3500061035156,
    "high": 353.8699951171875,
    "low": 346.4599914550781,
    "close": 348.510009765625,
    "volume": 29756100
  },
  {
    "time": "2026-11-11T14:30:00.000Z",
    "open": 349.54998779296875,
    "high": 355.9100036621094,
    "low": 349.3299865722656,
    "close": 355.6300048828125,
    "volume": 34453500
  },
  {
    "time": "2026-11-12T14:30:00.000Z",
    "open": 357.80999755859375,
    "high": 359.3699951171875,
    "low": 354.4100036621094,
    "close": 354.8800048828125,
    "volume": 31875000
  }
]

Get dividends and earnings of several assets

​

Returns dividends and earnings for stocks and ETFs by asset id, as an object keyed by the ids you sent, in the order you sent them. Each value is the array of events of that id.

  • An alias such as yahoo.AAPL resolves to the same asset. The key repeats the id as you sent it.
  • An id that is not a stock or ETF, or that no asset answers to, has an empty array.
  • An id not fetched yet is left out, and the answer is 202. Ask again after the number of seconds in Retry-After.
  • Any other query parameter returns a 400.

Query Parameters

  • Asset ids, separated by commas. 1-100 distinct ids, each 1-64 characters from A-Z a-z 0-9 . ^ = _ -.

  • First day of the range, YYYY-MM-DD.

  • Last day of the range, YYYY-MM-DD. Not before from, and at most 400 days after it.

  • Events to return: dividend, earnings or dividend,earnings. Default: both.

Responses

  • The events of every id, keyed by id.

      • Dividend per share in currency. null for earnings. If isAmountEstimate is true, it is the last known amount.

      • Currency code of amountPerShare, for example USD. null if unknown, and for an earnings date.

      • Event day, YYYY-MM-DD. For a dividend, the ex-dividend date. For earnings, the first earnings date.

      • Last day of the earnings date range, YYYY-MM-DD. null otherwise.

      • true if the amount is an estimate: the last known dividend, carried forward.

      • true if the date is an estimate, not an announced date.

      • What the event is: dividend or earnings.

      • Pay day of the dividend, YYYY-MM-DD. null if unknown, and for earnings.

    Headers
    Headers: 1
    • public, max-age=3600: a cache may keep the answer for an hour.

    application/json
  • Some ids are not fetched yet. The body holds the ids that are ready; an id missing from it is still pending. Ask again after the number of seconds in Retry-After.

      • Dividend per share in currency. null for earnings. If isAmountEstimate is true, it is the last known amount.

      • Currency code of amountPerShare, for example USD. null if unknown, and for an earnings date.

      • Event day, YYYY-MM-DD. For a dividend, the ex-dividend date. For earnings, the first earnings date.

      • Last day of the earnings date range, YYYY-MM-DD. null otherwise.

      • true if the amount is an estimate: the last known dividend, carried forward.

      • true if the date is an estimate, not an announced date.

      • What the event is: dividend or earnings.

      • Pay day of the dividend, YYYY-MM-DD. null if unknown, and for earnings.

    Headers
    Headers: 2
    • Seconds to wait before you ask again.

    • Always no-store: the answer is not kept by a cache.

    application/json
  • A parameter is missing, invalid or unknown.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    • Details about the error, if any. For example, which parameter was rejected.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
  • The events could not be read. Try again later.

    • Short text, for example unavailable.

    • Details about the error, if any. For example, which parameter was rejected.

    application/json
Request Example for get/v1/assets/events
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const byAsset = await insights.getAssetsEvents(['stock.us.aapl'], {
  from: '2026-11-01',
  to: '2026-12-31',
});
const events = byAsset['stock.us.aapl'] ?? [];
console.log(events.length, events[0]?.date); // 1 2026-11-12

{
  "stock.us.aapl": [
    {
      "kind": "dividend",
      "date": "2026-11-12",
      "dateEnd": null,
      "payDate": "2026-11-16",
      "amountPerShare": 0.27,
      "currency": "USD",
      "isDateEstimate": false,
      "isAmountEstimate": false
    }
  ],
  "etf.us.spy": []
}

Get dividends and earnings of one asset

​

Returns dividends and earnings of one asset, as an array.

  • An asset that is not a stock or ETF returns an empty array.
  • While the events are not fetched yet, the answer is 202 with an empty body. Ask again after the number of seconds in Retry-After.
  • Any other query parameter returns a 400.

Path Parameters

  • Asset id, for example stock.us.aapl, etf.us.spy or yahoo.AAPL.

Query Parameters

  • First day of the range, YYYY-MM-DD.

  • Last day of the range, YYYY-MM-DD. Not before from, and at most 400 days after it.

  • Events to return: dividend, earnings or dividend,earnings. Default: both.

Responses

  • The events of the asset.

    • Dividend per share in currency. null for earnings. If isAmountEstimate is true, it is the last known amount.

    • Currency code of amountPerShare, for example USD. null if unknown, and for an earnings date.

    • Event day, YYYY-MM-DD. For a dividend, the ex-dividend date. For earnings, the first earnings date.

    • Last day of the earnings date range, YYYY-MM-DD. null otherwise.

    • true if the amount is an estimate: the last known dividend, carried forward.

    • true if the date is an estimate, not an announced date.

    • What the event is: dividend or earnings.

    • Pay day of the dividend, YYYY-MM-DD. null if unknown, and for earnings.

    Headers
    Headers: 1
    • public, max-age=3600: a cache may keep the answer for an hour.

    application/json
  • The events are not fetched yet. The body is empty. Ask again after the number of seconds in Retry-After.

    Headers
    Headers: 2
    • Seconds to wait before you ask again.

    • Always no-store: the answer is not kept by a cache.

  • A parameter is missing, invalid or unknown.

    • What is wrong with the request, for example Bad Request or Validation error. The wording varies, so rely on the HTTP status.

    • Details about the error, if any. For example, which parameter was rejected.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • No asset has this id.

    • What was not found, for example Asset not found.

    • Details about the error, if any. For example, which parameter was rejected.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
  • The events could not be read. Try again later.

    • Short text, for example unavailable.

    • Details about the error, if any. For example, which parameter was rejected.

    application/json
Request Example for get/v1/assets/{id}/events
import { InsightsClient } from '@fealthy/insights-sdk';

const insights = new InsightsClient();

const events = await insights.getAssetEvents('stock.us.aapl', {
  from: '2026-11-01',
  to: '2026-12-31',
});
console.log(events.length, events[0]?.date); // 1 2026-11-12

[
  {
    "kind": "dividend",
    "date": "2026-11-12",
    "dateEnd": null,
    "payDate": "2026-11-16",
    "amountPerShare": 0.27,
    "currency": "USD",
    "isDateEstimate": false,
    "isAmountEstimate": false
  }
]

Limits

​

The limits of your key and how much of them you have used.

Limits Operations

Get the limits of your key

​

Returns the limits of the key you send and how much of each you have used.

  • This request counts against your limits like any other, and the numbers include it.
  • null means no limit of that kind. A key with no limits at all shows the policy unlimited.
  • usage.minute and usage.day match the RateLimit-* headers of the same response, which describe the window that runs out first.
  • Without a key you get no key details, only defaults: the limits a new key starts with.
  • The response is never cached: Cache-Control: no-store.

Responses

  • Your limits and what you have used of them.

    • Who sent the request: developer (a developer key), session (the key of a user signed in to the Fealthy app) or anonymous (no key).

    • The limits a new key starts with. The same for every caller.

      Properties: 4
      • Live-price connections at once.

      • Requests per day.

      • Requests per minute.

      • Their name.

    • The key you sent. null without a key.

      Properties: 2
      • Your key as it may be shown: its type and last 4 characters. The whole key is never returned.

      • The name of the key's set of limits, for example developer-strict. unlimited when the key has no limits.

    • The limits of your key. null means no limit of that kind.

      Properties: 3
      • Live-price connections that may be open at once. null means no limit.

      • Requests allowed per day, from 00:00 UTC. null means no limit.

      • Requests allowed per minute. null means no limit.

    • How much of each limit you have used.

      Properties: 3
      • The current day window. null when there is no day limit.

        Properties: 5
        • Requests allowed in this window.

        • Requests left in this window.

        • When this window starts over, ISO 8601 in UTC.

        • Seconds until this window starts over, at least 1. The same number as RateLimit-Reset when this window runs out first.

        • Requests counted in this window so far, this one included.

      • The current minute window. null when there is no minute limit.

        Properties: 5
        • Requests allowed in this window.

        • Requests left in this window.

        • When this window starts over, ISO 8601 in UTC.

        • Seconds until this window starts over, at least 1. The same number as RateLimit-Reset when this window runs out first.

        • Requests counted in this window so far, this one included.

      • Open live-price connections. null when there is no connection limit.

        Properties: 3
        • Connections allowed at once.

        • Connections you can still open.

        • Connections open now.

    Headers
    Headers: 4
    • Always no-store: the answer is about your key, so no cache may keep it.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
  • The key was not accepted.

    • Always Unauthorized.

    Headers
    Headers: 1
    • The auth scheme, plus error="invalid_token" if you sent a key.

    application/json
  • Over a limit: retry after the seconds in Retry-After.

    • Always Too Many Requests.

    Headers
    Headers: 4
    • Seconds to wait before retrying.

    • Requests allowed in the current window (the one that runs out first).

    • Requests left in that window.

    • Seconds until that window resets.

    application/json
  • The limits of your key could not be read right now. Wait for the number of seconds in Retry-After, then retry.

    • Short text, for example unavailable.

    Headers
    Headers: 1
    • Seconds to wait before retrying.

    application/json
Request Example for get/v1/limits
# The Python SDK is coming soon. Use the cURL tab until then.
{
  "caller": "developer",
  "key": {
    "hint": "flth_sk_live_…a9Q2",
    "policy": "developer-strict"
  },
  "limits": {
    "perMinute": 30,
    "perDay": 2000,
    "maxSockets": 1
  },
  "usage": {
    "minute": {
      "limit": 30,
      "used": 2,
      "remaining": 28,
      "resetSeconds": 41,
      "resetAt": "2026-11-23T14:06:00.000Z"
    },
    "day": {
      "limit": 2000,
      "used": 2,
      "remaining": 1998,
      "resetSeconds": 35641,
      "resetAt": "2026-11-24T00:00:00.000Z"
    },
    "sockets": {
      "limit": 1,
      "used": 0,
      "remaining": 1
    }
  },
  "defaults": {
    "policy": "developer-strict",
    "perMinute": 30,
    "perDay": 2000,
    "maxSockets": 1
  }
}