> ## Documentation Index
> Fetch the complete documentation index at: https://docs.darvas.app/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These docs cover the Darvas financial data API, its MCP server, data API and Darvas Pro+ webhooks, and Pine Script custom indicators for Darvas charts.
> https://docs.darvas.app/llms.txt lists every indexed page with a summary, and https://docs.darvas.app/llms-full.txt holds them in one file. Add .md to any page URL to read that page as Markdown. The lookup lists of tickers, types and series are named at https://docs.darvas.app/ai-agents.
> The docs MCP server https://docs.darvas.app/mcp searches and reads these docs. It needs no key.
> Call the REST API at https://api.darvas.app/v1. Send the API key, which starts with dvk_, in the X-API-KEY header or as Authorization: Bearer. The OpenAPI 3.1 spec of all 168 operations is https://docs.darvas.app/openapi.yaml.
> Name a company by ticker or cik. A share class takes a dot or a dash, so BRK.B and BRK-B name the same shares. Dates are YYYY-MM-DD.
> A list answer holds one page. Request its next_page_url as it is until the answer has none. limit counts rows across all pages.
> Errors are JSON with a stable error code and a message: 400 VALIDATION_ERROR, 401 UNAUTHORIZED, 403 PLAN_REQUIRED, 404 NOT_FOUND, 429 RATE_LIMITED or QUOTA_EXCEEDED, 500 INTERNAL_ERROR and 503 UNAVAILABLE. On a 429, wait the seconds in Retry-After. 1 credit = 1 successful call: a 2xx answer with data costs one credit however many rows it holds (at most 1,000 a page), and empty answers, errors and FINRA /short-volume cost 0 credits.
> The Financial Data MCP server is https://api.darvas.app/mcp (Streamable HTTP, protocol 2025-11-25, the same API key in X-API-KEY or as a Bearer token). tools/list answers 8 flagship tools plus search_data_tools and call_data_tool by default; ?mode=full lists all 164 tools and ?toolsets=sec,crypto,macro lists domains. Every tool is callable by name, takes response_format (json, compact or tsv) and fields, and a list answer's cursor value goes in the cursor argument. The darvas://catalog/* resources cost 0 credits. Setup for each client is at https://docs.darvas.app/mcp-server.
> The data API covers SEC filers and their filings, statements, XBRL facts, debt maturities, ownership and earnings, US stock prices, technicals and FINRA short volume, macro series and a global economic calendar.
> Its crypto data covers prices, indices, order books, order flow, volume profiles, derivatives, options, liquidations, spot ETF flows and a screener across 9 exchanges. It also covers DeFi protocols, stablecoins, yields and DEX pairs, and Polymarket, Kalshi and OKX prediction markets. https://docs.darvas.app/market-coverage gives the history and update time of each dataset.
> https://docs.darvas.app/ai-agents names the endpoint and the MCP tool that answer each kind of question about these datasets.
> Custom indicators for Darvas charts are Pine Script v5 or v6 indicator() or strategy() scripts. Darvas rewrites Pine v1 to v4 to v5 and runs no other indicator language. Start at https://docs.darvas.app/pine-script/introduction.
> https://docs.darvas.app/pine-script/support lists the Pine Script that Darvas runs. https://docs.darvas.app/pine-script/request-security covers request.security() and request.financial(), and https://docs.darvas.app/pine-script/limits lists the run limits.
> Darvas Pro+ webhooks send a signed POST for alarm fires and pauses, scheduled answers, economic calendar alerts, ETF flow updates, ended connections and the data API events. https://docs.darvas.app/pro/webhooks lists every event, its object and how to verify the Darvas-Signature header.

# Crypto Screener API: 77 Technical & Flow Metrics

> Screen OKX crypto spot, perpetual and futures markets over POST with AND/OR conditions across 77 technical rating, RSI, MACD, volume and OI metrics.

## Overview

This endpoint screens live snapshots of OKX USDT markets with a JSON body sent by `POST`. Each condition compares one of 77 metrics, from composite technical ratings, RSI, MACD and moving averages to open interest and funding, with a number, a range or another metric. A condition can also detect a crossover or read its own timeframe, and the matches come back sorted with the metrics the screen used. Call [`/crypto/screener/metrics`](https://docs.darvas.app/crypto/screener-metrics) first to read every valid metric ID.

| Coverage | Details |
| - | - |
| Markets | `market_type`: `spot`, `swap` (default) or `futures`, OKX USDT instruments |
| Timeframes | `timeframe`: `5m`, `15m`, `1H` (default), `4H` or `1D`, the bars technical metrics are computed on; a condition can set its own |
| Universe | `universe`: `all` (default) or `altcoins`, which leaves out BTC-base pairs; `tickers` narrows it to a list of up to 200 instruments |
| Conditions | Up to 12, joined by `combine`: `AND` (default) or `OR` |
| Results | `limit` from `1` to `200` (default `50`), ordered by `sort` (default `volume24h`, descending) |
| MCP tool | `screen_crypto_markets` on the [data API MCP server](https://docs.darvas.app/mcp-server.md) |

## Request body

* **Comparisons.** Each entry in `conditions` has a `metric`, an `operator` and exactly one right-hand side: `value`, a number, or `right_metric`, another metric ID. `lt`, `lte`, `gt`, `gte` and `eq` compare the newest values. `right_multiplier` scales `right_metric`, so `{"metric": "price", "operator": "gt", "right_metric": "ema200", "right_multiplier": 1.05}` keeps markets trading more than 5% above their 200 EMA.
* **Ranges.** `between` keeps values from `value` to `upper_value`, both included, and `outside` keeps values below `value` or above `upper_value`, as in `{"metric": "rsi14", "operator": "between", "value": 40, "upper_value": 60}`.
* **Crossovers.** `crosses_above` matches when the metric was at or below the right-hand side on the previous bar and is above it on the newest bar; `crosses_below` is the mirror. A MACD bullish cross is `{"metric": "macd.macd", "operator": "crosses_above", "right_metric": "macd.signal"}`. Crossovers need the previous bar, so they work on price, volume and indicator metrics, not on 24-hour ticker, performance or derivatives metrics.
* **Timeframe per condition.** A condition with `timeframe` reads its metrics on that bar, such as a daily RSI inside a `1H` screen: `{"metric": "rsi14", "operator": "gt", "value": 50, "timeframe": "1D"}`. Its values come back in `mtf_metrics`.
* **Ratings.** `technicalRating`, `oscillatorRating` and `trendRating` run from `-1` to `1`. A technical rating of `0.5` or more reads as a strong buy, `0.1` or more as a buy, `-0.1` or less as a sell and `-0.5` or less as a strong sell.
* **Watchlists.** `tickers` takes up to 200 OKX instrument IDs, such as `BTC-USDT-SWAP`, and the screen evaluates only those.
* **Validation.** A condition with both or neither of `value` and `right_metric`, a range without an `upper_value` of at least `value`, an `upper_value` on any other operator, or a `right_multiplier` without `right_metric` returns `400`, as does any field the schema does not list.
* **Empty screens.** Without `conditions`, the answer lists every active instrument of the universe in `sort` order.
* **Sort.** `sort.metric` is any metric ID, read on the request `timeframe`, and `sort.direction` is `desc` (default) or `asc`; instruments missing that metric always sort last.
* **Metric IDs.** Multi-output indicators use dotted IDs, such as `macd.histogram`, `bollinger.width`, `adx14.plusDI` or `supertrend.direction`. Derivatives metrics such as `openInterestUsd`, `fundingRate` and `takerBuyRatio1h` have values only for swaps and futures.

## Response

* **Counts.** `total_scanned` is the instruments evaluated in the universe, `matched` those that pass, and `returned` the rows in `results`. Darvas evaluates every condition on every instrument of the universe, so `matched` is exact and `complete` is `true`.
* **Rows.** Each result carries `ticker` (such as `BTC-USDT-SWAP`), `price`, `candle_time` (the start of the newest evaluated bar), `updated_at` (when its snapshot refreshed) and `metrics`, keyed by metric ID. `metrics` holds `price`, the sort metric and every metric the conditions name on the request timeframe. `mtf_metrics` holds, per timeframe, the values that conditions with their own `timeframe` read, for price and the metrics the screener keeps on every timeframe, such as the ratings, `rsi14`, `relativeVolume` and `distEma200Pct`. A metric without a value is left out.
* **Freshness.** `as_of` is the newest snapshot update among the returned rows, in UTC. When the screener service cannot answer, the request returns `503`.

For open interest buildup and decay ranked by contract, see [`/crypto/derivatives/oi-scan`](https://docs.darvas.app/crypto/open-interest-scanner). For indicator history of one market, see [`/crypto/indicators`](https://docs.darvas.app/crypto/technical-indicators). For candles and instruments, see [`/crypto/prices`](https://docs.darvas.app/crypto/prices) and [`/crypto/tickers`](https://docs.darvas.app/crypto/tickers).

## Examples

```python theme={null}
import os
import requests

headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.post(
    "https://api.darvas.app/v1/crypto/screener",
    headers=headers,
    json={
        "market_type": "swap",
        "timeframe": "1H",
        "universe": "altcoins",
        "combine": "AND",
        "conditions": [
            {"metric": "technicalRating", "operator": "gte", "value": 0.5},
            {"metric": "rsi14", "operator": "between", "value": 50, "upper_value": 70},
            {"metric": "macd.macd", "operator": "crosses_above", "right_metric": "macd.signal"},
            {"metric": "price", "operator": "gt", "right_metric": "ema200", "right_multiplier": 1.02},
            {"metric": "distEma200Pct", "operator": "gt", "value": 0, "timeframe": "4H"},
            {"metric": "fundingRate", "operator": "lt", "value": 0.01},
        ],
        "sort": {"metric": "relativeVolume", "direction": "desc"},
        "limit": 25,
    },
)
resp.raise_for_status()
screen = resp.json()

print("Scanned:", screen["total_scanned"], "Matched:", screen["matched"])
for row in screen["results"]:
    m = row["metrics"]
    h4 = row.get("mtf_metrics", {}).get("4H", {})
    print(row["ticker"], row["price"], "Rating:", m.get("technicalRating"), "RSI:", m.get("rsi14"), "4H above EMA200 %:", h4.get("distEma200Pct"))
```

```bash theme={null}
# Watchlist screen: daily RSI below 35 or price more than 3% below its 50 SMA
curl -X POST "https://api.darvas.app/v1/crypto/screener" \
  -H "X-API-KEY: $DARVAS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"market_type":"spot","timeframe":"4H","combine":"OR","tickers":["BTC-USDT","ETH-USDT","SOL-USDT","DOGE-USDT"],"conditions":[{"metric":"rsi14","operator":"lt","value":35,"timeframe":"1D"},{"metric":"price","operator":"lt","right_metric":"sma50","right_multiplier":0.97}],"sort":{"metric":"technicalRating","direction":"asc"},"limit":10}'
```


## OpenAPI

````yaml openapi.yaml POST /crypto/screener
openapi: 3.1.1
info:
  title: Darvas Data API
  version: 0.9.0
  summary: >-
    Company, filing, insider, institutional, market and macro data for every SEC
    filer, US stocks, UK and French companies and crypto markets.
  description: >-
    Every value names its source. Field names follow the common financial data
    API shapes, so an existing client reads these answers unchanged; extra
    fields come after them. Send the API key in the X-API-KEY header or as a
    Bearer token. Dates are ISO 8601 and times are RFC 3339 in UTC. Billing: 1
    credit = 1 successful call. A page holds at most 1,000 rows and costs one
    credit however many it holds; an empty answer, a refusal, an error and every
    FINRA /short-volume call cost 0 credits.
  termsOfService: https://darvas.app/terms
  contact:
    name: Darvas data
    url: https://darvas.app
    email: support@darvas.app
  license:
    name: Proprietary
    identifier: LicenseRef-Darvas-Proprietary
servers:
  - url: https://api.darvas.app/v1
    description: Production.
  - url: https://darvas.app/api/data/v1
    description: Production, on the darvas.app host.
security:
  - apiKey: []
  - bearerKey: []
tags:
  - name: company
    description: Company profiles from SEC submissions.
  - name: crypto
    description: >-
      Candles, trades, order books, order flow, derivatives, options, screens
      and market structure of crypto instruments from Darvas's own market data.
  - name: defi
    description: >-
      Multi-chain DeFi protocol TVL, stablecoin supply, yield pools, and
      on-chain DEX liquidity.
  - name: earnings
    description: >-
      Each filing that reports a period, the 8-K earnings release, then the 10-Q
      or 10-K, and the KPIs, guidance and non-GAAP metrics of the releases.
  - name: filings
    description: >-
      SEC filing lists, the items of 10-K, 10-Q and 8-K filings, and search over
      them.
  - name: financials
    description: >-
      Standardized income statements, balance sheets and cash flow statements
      from XBRL filings.
  - name: funds
    description: Holdings of registered funds and ETFs from Form N-PORT.
  - name: insiders
    description: >-
      Insider trades and holdings from Forms 3, 4 and 5, and sale notices from
      Form 144.
  - name: institutions
    description: Positions of investment managers from Form 13F reports.
  - name: ipos
    description: Registration statements and prospectuses of companies going public.
  - name: macro
    description: >-
      Policy rates, the Treasury yield curve, inflation, jobs and GDP from their
      publishers.
  - name: markets
    description: >-
      Market structure data: the shares that failed to settle each day, from
      SEC, and futures positions by trader group, from the CFTC.
  - name: news
    description: >-
      Company 8-K filings and the press releases of the Federal Reserve, the
      SEC, the BEA and the BLS.
  - name: ownership
    description: Owners of more than 5% from Schedules 13D and 13G.
  - name: prediction-markets
    description: >-
      Binary event contract odds and series across Polymarket, Kalshi and OKX
      plus cross-venue arbitrage spreads.
  - name: tokenized-stocks
    description: >-
      Coinbase stock tokens on Base, priced by their USDC pools, and the stock
      instruments of OKX and Bybit.
  - name: webhooks
    description: >-
      Destinations that receive a signed event when new filings, statements,
      insider forms or macro releases arrive.
externalDocs:
  description: Market coverage
  url: https://docs.darvas.app/market-coverage
paths:
  /crypto/screener:
    post:
      tags:
        - crypto
      summary: Screen crypto markets across 77 real-time metrics
      description: >-
        Evaluates up to 12 conditions on composite technical ratings, momentum,
        trend, volatility, volume, performance, and derivatives metrics across
        live USDT spot, perpetual swap, and futures snapshots. A condition
        compares a metric with a number, a range, or another metric with an
        optional multiplier, detects crossovers, and can read its own timeframe;
        tickers limits the scan to a watchlist. Call GET
        /crypto/screener/metrics first to inspect all 77 valid metric IDs.
      operationId: screenCryptoMarkets
      requestBody:
        required: true
        description: The query of screen crypto markets across 77 real-time metrics.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CryptoScreenerRequest'
            example:
              market_type: swap
              timeframe: 1H
              universe: all
              combine: AND
              conditions:
                - metric: technicalRating
                  operator: gte
                  value: 0.5
                - metric: rsi14
                  operator: between
                  value: 50
                  upper_value: 70
                - metric: price
                  operator: gt
                  right_metric: ema200
                  right_multiplier: 1.05
                - metric: macd.macd
                  operator: crosses_above
                  right_metric: macd.signal
                - metric: rsi14
                  operator: gt
                  value: 50
                  timeframe: 1D
              sort:
                metric: technicalRating
                direction: desc
              limit: 50
      responses:
        '200':
          description: 'Screen crypto markets across 77 real-time metrics: one page.'
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-Quota-Unit:
              $ref: '#/components/headers/QuotaUnit'
            X-Credits-Used:
              $ref: '#/components/headers/CreditsUsed'
            X-Quota-Limit:
              $ref: '#/components/headers/QuotaLimit'
            X-Quota-Remaining:
              $ref: '#/components/headers/QuotaRemaining'
            X-Quota-Reset:
              $ref: '#/components/headers/QuotaReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CryptoScreenerResponse'
              example:
                market_type: swap
                timeframe: 1H
                universe: all
                combine: AND
                total_scanned: 240
                matched: 18
                returned: 1
                complete: true
                as_of: '2026-11-28T12:04:10.000Z'
                results:
                  - ticker: BTC-USDT-SWAP
                    price: 97811.4
                    candle_time: '2026-11-28T12:00:00.000Z'
                    updated_at: '2026-11-28T12:04:10.000Z'
                    metrics:
                      price: 97811.4
                      technicalRating: 0.62
                      rsi14: 64.2
                      ema200: 91200.5
                      macd.macd: 412.8
                      macd.signal: 377.1
                    mtf_metrics:
                      1D:
                        rsi14: 58.7
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    CryptoScreenerRequest:
      type: object
      description: Query payload for POST /crypto/screener.
      additionalProperties: false
      required: []
      properties:
        market_type:
          type: string
          enum:
            - spot
            - swap
            - futures
          default: swap
          maxLength: 10
          description: 'Crypto market segment to scan: spot, swap, or futures.'
          examples:
            - swap
        timeframe:
          type: string
          enum:
            - 5m
            - 15m
            - 1H
            - 4H
            - 1D
          default: 1H
          maxLength: 4
          description: >-
            Candle timeframe of the screen: conditions without their own
            timeframe and the sort read it.
          examples:
            - 1H
        universe:
          type: string
          enum:
            - all
            - altcoins
          default: all
          maxLength: 12
          description: >-
            Instrument universe: all includes BTC pairs; altcoins excludes
            BTC-base pairs.
          examples:
            - all
        combine:
          type: string
          enum:
            - AND
            - OR
          default: AND
          maxLength: 4
          description: 'Logical combinator across supplied screener conditions: AND or OR.'
          examples:
            - AND
        tickers:
          type: array
          minItems: 1
          maxItems: 200
          description: >-
            Optional watchlist of up to 200 OKX instrument IDs; the screen
            evaluates only these instruments.
          items:
            type: string
            pattern: ^[A-Za-z0-9-]{1,64}$
            maxLength: 64
          examples:
            - - BTC-USDT-SWAP
              - ETH-USDT-SWAP
              - SOL-USDT-SWAP
        conditions:
          type: array
          maxItems: 12
          description: >-
            Up to 12 metric conditions; empty lists return all active
            instruments sorted.
          items:
            $ref: '#/components/schemas/CryptoScreenerCondition'
        sort:
          $ref: '#/components/schemas/CryptoScreenerSort'
        limit:
          type: integer
          format: int32
          minimum: 1
          maximum: 200
          default: 50
          description: Maximum matched crypto screener instruments returned (1 to 200).
          examples:
            - 50
      examples:
        - market_type: swap
          timeframe: 1H
          universe: all
          combine: AND
          conditions:
            - metric: technicalRating
              operator: gte
              value: 0.5
            - metric: rsi14
              operator: between
              value: 50
              upper_value: 70
            - metric: price
              operator: gt
              right_metric: ema200
              right_multiplier: 1.05
            - metric: macd.macd
              operator: crosses_above
              right_metric: macd.signal
            - metric: rsi14
              operator: gt
              value: 50
              timeframe: 1D
          sort:
            metric: technicalRating
            direction: desc
          limit: 50
    CryptoScreenerResponse:
      type: object
      description: The answer of POST /crypto/screener.
      additionalProperties: false
      required:
        - market_type
        - timeframe
        - universe
        - combine
        - total_scanned
        - matched
        - returned
        - complete
        - as_of
        - results
      properties:
        market_type:
          type: string
          enum:
            - spot
            - swap
            - futures
          description: Echoed crypto screener market segment.
          examples:
            - swap
        timeframe:
          type: string
          enum:
            - 5m
            - 15m
            - 1H
            - 4H
            - 1D
          description: Echoed crypto screener bar timeframe.
          examples:
            - 1H
        universe:
          type: string
          enum:
            - all
            - altcoins
          description: Echoed crypto screener universe scope.
          examples:
            - all
        combine:
          type: string
          enum:
            - AND
            - OR
          description: Echoed logical combinator applied to conditions.
          examples:
            - AND
        total_scanned:
          type: integer
          format: int32
          minimum: 0
          maximum: 100000
          description: Total active instruments evaluated within the selected universe.
          examples:
            - 240
        matched:
          type: integer
          format: int32
          minimum: 0
          maximum: 100000
          description: Total instruments satisfying the screen conditions.
          examples:
            - 18
        returned:
          type: integer
          format: int32
          minimum: 0
          maximum: 200
          description: Number of matched rows included in this response.
          examples:
            - 1
        complete:
          type: boolean
          description: >-
            True when the entire selected universe was evaluated; the screener
            evaluates every condition on every instrument, so matched is exact.
          examples:
            - true
        as_of:
          type: string
          format: date-time
          maxLength: 30
          description: >-
            Newest snapshot update timestamp across returned screener rows in
            UTC.
          examples:
            - '2026-11-28T12:04:10.000Z'
        results:
          type: array
          maxItems: 200
          description: Matched crypto instruments ordered by sort.
          items:
            $ref: '#/components/schemas/CryptoScreenerRow'
      examples:
        - market_type: swap
          timeframe: 1H
          universe: all
          combine: AND
          total_scanned: 240
          matched: 18
          returned: 1
          complete: true
          as_of: '2026-11-28T12:04:10.000Z'
          results:
            - ticker: BTC-USDT-SWAP
              price: 97811.4
              candle_time: '2026-11-28T12:00:00.000Z'
              updated_at: '2026-11-28T12:04:10.000Z'
              metrics:
                price: 97811.4
                technicalRating: 0.62
                rsi14: 64.2
                ema200: 91200.5
                macd.macd: 412.8
                macd.signal: 377.1
              mtf_metrics:
                1D:
                  rsi14: 58.7
    CryptoScreenerCondition:
      type: object
      description: >-
        One filter predicate comparing a crypto screener metric with a number, a
        range, or another metric.
      additionalProperties: false
      required:
        - metric
        - operator
      properties:
        metric:
          type: string
          enum:
            - price
            - change24h
            - volume24h
            - high24h
            - low24h
            - range24h
            - performance1h
            - performance4h
            - performance7d
            - performance30d
            - openInterestUsd
            - openInterestChange1h
            - openInterestChange24h
            - openInterestVolumeRatio24h
            - fundingRate
            - accountLongShortRatio
            - topTraderLongShortRatio
            - takerBuyRatio1h
            - technicalRating
            - oscillatorRating
            - trendRating
            - rsi7
            - rsi14
            - rsi21
            - macd.macd
            - macd.signal
            - macd.histogram
            - stochRsi.k
            - stochRsi.d
            - mfi14
            - cci20
            - williamsR14
            - adx14.adx
            - adx14.plusDI
            - adx14.minusDI
            - ema9
            - ema20
            - ema21
            - ema50
            - ema100
            - ema200
            - sma20
            - sma50
            - sma200
            - wma20
            - distEma20Pct
            - distEma50Pct
            - distEma200Pct
            - distVwapPct
            - supertrend.line
            - supertrend.direction
            - parabolicSar
            - ichimoku.tenkan
            - ichimoku.kijun
            - ichimoku.senkouA
            - ichimoku.senkouB
            - alphaTrend.line
            - tillsonT3.line
            - mavilimW.line
            - atr14
            - atrPct
            - bollinger.upper
            - bollinger.middle
            - bollinger.lower
            - bollinger.width
            - bollinger.percentB
            - donchian.upper
            - donchian.basis
            - donchian.lower
            - vwap
            - obv
            - volume
            - relativeVolume
            - effortResult.effortResult
            - effortResult.spreadRatio
            - effortResult.zVol
            - priceChange1
          maxLength: 40
          description: Left-hand metric ID to evaluate on each instrument.
          examples:
            - rsi14
        operator:
          type: string
          enum:
            - lt
            - lte
            - gt
            - gte
            - eq
            - between
            - outside
            - crosses_above
            - crosses_below
          maxLength: 13
          description: >-
            lt, lte, gt, gte and eq compare the newest values; between (bounds
            included) and outside test value to upper_value; crosses_above and
            crosses_below match when the left side crossed the right side from
            the previous bar to the newest one.
          examples:
            - between
        value:
          type: number
          format: double
          minimum: -1000000000000
          maximum: 1000000000000
          description: >-
            Constant right-hand threshold, or the lower bound for between and
            outside; omit when setting right_metric.
          examples:
            - 50
        upper_value:
          type: number
          format: double
          minimum: -1000000000000
          maximum: 1000000000000
          description: >-
            Upper bound for between and outside, at least value; refused with
            any other operator.
          examples:
            - 70
        right_metric:
          type: string
          enum:
            - price
            - change24h
            - volume24h
            - high24h
            - low24h
            - range24h
            - performance1h
            - performance4h
            - performance7d
            - performance30d
            - openInterestUsd
            - openInterestChange1h
            - openInterestChange24h
            - openInterestVolumeRatio24h
            - fundingRate
            - accountLongShortRatio
            - topTraderLongShortRatio
            - takerBuyRatio1h
            - technicalRating
            - oscillatorRating
            - trendRating
            - rsi7
            - rsi14
            - rsi21
            - macd.macd
            - macd.signal
            - macd.histogram
            - stochRsi.k
            - stochRsi.d
            - mfi14
            - cci20
            - williamsR14
            - adx14.adx
            - adx14.plusDI
            - adx14.minusDI
            - ema9
            - ema20
            - ema21
            - ema50
            - ema100
            - ema200
            - sma20
            - sma50
            - sma200
            - wma20
            - distEma20Pct
            - distEma50Pct
            - distEma200Pct
            - distVwapPct
            - supertrend.line
            - supertrend.direction
            - parabolicSar
            - ichimoku.tenkan
            - ichimoku.kijun
            - ichimoku.senkouA
            - ichimoku.senkouB
            - alphaTrend.line
            - tillsonT3.line
            - mavilimW.line
            - atr14
            - atrPct
            - bollinger.upper
            - bollinger.middle
            - bollinger.lower
            - bollinger.width
            - bollinger.percentB
            - donchian.upper
            - donchian.basis
            - donchian.lower
            - vwap
            - obv
            - volume
            - relativeVolume
            - effortResult.effortResult
            - effortResult.spreadRatio
            - effortResult.zVol
            - priceChange1
          maxLength: 40
          description: >-
            Right-hand metric ID for metric-to-metric comparisons and
            crossovers; omit when setting value.
          examples:
            - ema200
        right_multiplier:
          type: number
          format: double
          exclusiveMinimum: 0
          maximum: 1000
          description: >-
            Multiplies right_metric before the comparison, such as 1.05 for 5%
            above it; requires right_metric.
          examples:
            - 1.05
        timeframe:
          type: string
          enum:
            - 5m
            - 15m
            - 1H
            - 4H
            - 1D
          maxLength: 4
          description: >-
            Timeframe this condition reads when it differs from the request
            timeframe, such as a daily RSI inside a 1H screen.
          examples:
            - 1D
      examples:
        - metric: rsi14
          operator: between
          value: 50
          upper_value: 70
    CryptoScreenerSort:
      type: object
      description: Sorting rule for matched crypto screener instruments.
      additionalProperties: false
      required:
        - metric
      properties:
        metric:
          type: string
          enum:
            - price
            - change24h
            - volume24h
            - high24h
            - low24h
            - range24h
            - performance1h
            - performance4h
            - performance7d
            - performance30d
            - openInterestUsd
            - openInterestChange1h
            - openInterestChange24h
            - openInterestVolumeRatio24h
            - fundingRate
            - accountLongShortRatio
            - topTraderLongShortRatio
            - takerBuyRatio1h
            - technicalRating
            - oscillatorRating
            - trendRating
            - rsi7
            - rsi14
            - rsi21
            - macd.macd
            - macd.signal
            - macd.histogram
            - stochRsi.k
            - stochRsi.d
            - mfi14
            - cci20
            - williamsR14
            - adx14.adx
            - adx14.plusDI
            - adx14.minusDI
            - ema9
            - ema20
            - ema21
            - ema50
            - ema100
            - ema200
            - sma20
            - sma50
            - sma200
            - wma20
            - distEma20Pct
            - distEma50Pct
            - distEma200Pct
            - distVwapPct
            - supertrend.line
            - supertrend.direction
            - parabolicSar
            - ichimoku.tenkan
            - ichimoku.kijun
            - ichimoku.senkouA
            - ichimoku.senkouB
            - alphaTrend.line
            - tillsonT3.line
            - mavilimW.line
            - atr14
            - atrPct
            - bollinger.upper
            - bollinger.middle
            - bollinger.lower
            - bollinger.width
            - bollinger.percentB
            - donchian.upper
            - donchian.basis
            - donchian.lower
            - vwap
            - obv
            - volume
            - relativeVolume
            - effortResult.effortResult
            - effortResult.spreadRatio
            - effortResult.zVol
            - priceChange1
          maxLength: 40
          description: >-
            Screener metric ID, on the request timeframe, used to order matched
            instruments.
          examples:
            - technicalRating
        direction:
          type: string
          enum:
            - asc
            - desc
          default: desc
          maxLength: 4
          description: >-
            Sort direction for matched screener rows; missing values always sort
            last.
          examples:
            - desc
      examples:
        - metric: technicalRating
          direction: desc
    CryptoScreenerRow:
      type: object
      description: One crypto instrument matching a POST /crypto/screener query.
      additionalProperties: false
      required:
        - ticker
        - price
        - candle_time
        - updated_at
        - metrics
      properties:
        ticker:
          type: string
          pattern: ^[A-Z0-9-]{3,64}$
          description: Matched USDT instrument identifier.
          examples:
            - BTC-USDT-SWAP
        price:
          type:
            - number
            - 'null'
          format: double
          description: Latest traded price of the screened instrument.
          examples:
            - 97811.4
        candle_time:
          type: string
          format: date-time
          maxLength: 30
          description: Start timestamp of the latest evaluated bar in UTC.
          examples:
            - '2026-11-28T12:00:00.000Z'
        updated_at:
          type: string
          format: date-time
          maxLength: 30
          description: >-
            Timestamp when this instrument's screener snapshot was refreshed in
            UTC.
          examples:
            - '2026-11-28T12:04:10.000Z'
        metrics:
          $ref: '#/components/schemas/CryptoScreenerMetricValues'
        mtf_metrics:
          type: object
          description: >-
            Values of conditions that read another timeframe, keyed by
            timeframe; present only when a condition sets timeframe.
          additionalProperties: false
          properties:
            5m:
              $ref: '#/components/schemas/CryptoScreenerMetricValues'
            15m:
              $ref: '#/components/schemas/CryptoScreenerMetricValues'
            1H:
              $ref: '#/components/schemas/CryptoScreenerMetricValues'
            4H:
              $ref: '#/components/schemas/CryptoScreenerMetricValues'
            1D:
              $ref: '#/components/schemas/CryptoScreenerMetricValues'
          examples:
            - 1D:
                rsi14: 58.7
      examples:
        - ticker: BTC-USDT-SWAP
          price: 97811.4
          candle_time: '2026-11-28T12:00:00.000Z'
          updated_at: '2026-11-28T12:04:10.000Z'
          metrics:
            price: 97811.4
            technicalRating: 0.62
            rsi14: 64.2
            ema200: 91200.5
            macd.macd: 412.8
            macd.signal: 377.1
          mtf_metrics:
            1D:
              rsi14: 58.7
    Error:
      type: object
      description: A refusal or failure.
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          pattern: ^[A-Z_]{1,64}$
          description: A stable code.
          examples:
            - NOT_FOUND
        message:
          type: string
          pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
          maxLength: 500
          description: What went wrong, in English.
          examples:
            - No company has this ticker or CIK
      examples:
        - error: NOT_FOUND
          message: No company has this ticker or CIK
    CryptoScreenerMetricValues:
      type: object
      description: >-
        Metric values of one instrument keyed by metric ID: price, the sort
        metric and every metric the conditions name; a metric without a value is
        left out.
      additionalProperties: false
      required: []
      properties:
        price:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for price on the matched instrument.
          examples:
            - 97811.4
        change24h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for change24h on the matched instrument.
          examples:
            - null
        volume24h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for volume24h on the matched instrument.
          examples:
            - 1250000000
        high24h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for high24h on the matched instrument.
          examples:
            - null
        low24h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for low24h on the matched instrument.
          examples:
            - null
        range24h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for range24h on the matched instrument.
          examples:
            - null
        performance1h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for performance1h on the matched instrument.
          examples:
            - null
        performance4h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for performance4h on the matched instrument.
          examples:
            - null
        performance7d:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for performance7d on the matched instrument.
          examples:
            - null
        performance30d:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for performance30d on the matched instrument.
          examples:
            - null
        openInterestUsd:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for openInterestUsd on the matched instrument.
          examples:
            - null
        openInterestChange1h:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for openInterestChange1h on the matched
            instrument.
          examples:
            - null
        openInterestChange24h:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for openInterestChange24h on the matched
            instrument.
          examples:
            - null
        openInterestVolumeRatio24h:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for openInterestVolumeRatio24h on the matched
            instrument.
          examples:
            - null
        fundingRate:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for fundingRate on the matched instrument.
          examples:
            - null
        accountLongShortRatio:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for accountLongShortRatio on the matched
            instrument.
          examples:
            - null
        topTraderLongShortRatio:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for topTraderLongShortRatio on the matched
            instrument.
          examples:
            - null
        takerBuyRatio1h:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for takerBuyRatio1h on the matched instrument.
          examples:
            - null
        technicalRating:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for technicalRating on the matched instrument.
          examples:
            - 0.62
        oscillatorRating:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for oscillatorRating on the matched
            instrument.
          examples:
            - null
        trendRating:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for trendRating on the matched instrument.
          examples:
            - null
        rsi7:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for rsi7 on the matched instrument.
          examples:
            - null
        rsi14:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for rsi14 on the matched instrument.
          examples:
            - 64.2
        rsi21:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for rsi21 on the matched instrument.
          examples:
            - null
        macd.macd:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for macd.macd on the matched instrument.
          examples:
            - 412.8
        macd.signal:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for macd.signal on the matched instrument.
          examples:
            - 377.1
        macd.histogram:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for macd.histogram on the matched instrument.
          examples:
            - null
        stochRsi.k:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for stochRsi.k on the matched instrument.
          examples:
            - null
        stochRsi.d:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for stochRsi.d on the matched instrument.
          examples:
            - null
        mfi14:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for mfi14 on the matched instrument.
          examples:
            - null
        cci20:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for cci20 on the matched instrument.
          examples:
            - null
        williamsR14:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for williamsR14 on the matched instrument.
          examples:
            - null
        adx14.adx:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for adx14.adx on the matched instrument.
          examples:
            - null
        adx14.plusDI:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for adx14.plusDI on the matched instrument.
          examples:
            - null
        adx14.minusDI:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for adx14.minusDI on the matched instrument.
          examples:
            - null
        ema9:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ema9 on the matched instrument.
          examples:
            - null
        ema20:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ema20 on the matched instrument.
          examples:
            - null
        ema21:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ema21 on the matched instrument.
          examples:
            - null
        ema50:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ema50 on the matched instrument.
          examples:
            - null
        ema100:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ema100 on the matched instrument.
          examples:
            - null
        ema200:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ema200 on the matched instrument.
          examples:
            - 91200.5
        sma20:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for sma20 on the matched instrument.
          examples:
            - null
        sma50:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for sma50 on the matched instrument.
          examples:
            - null
        sma200:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for sma200 on the matched instrument.
          examples:
            - null
        wma20:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for wma20 on the matched instrument.
          examples:
            - null
        distEma20Pct:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for distEma20Pct on the matched instrument.
          examples:
            - null
        distEma50Pct:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for distEma50Pct on the matched instrument.
          examples:
            - null
        distEma200Pct:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for distEma200Pct on the matched instrument.
          examples:
            - null
        distVwapPct:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for distVwapPct on the matched instrument.
          examples:
            - null
        supertrend.line:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for supertrend.line on the matched instrument.
          examples:
            - null
        supertrend.direction:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for supertrend.direction on the matched
            instrument.
          examples:
            - null
        parabolicSar:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for parabolicSar on the matched instrument.
          examples:
            - null
        ichimoku.tenkan:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ichimoku.tenkan on the matched instrument.
          examples:
            - null
        ichimoku.kijun:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for ichimoku.kijun on the matched instrument.
          examples:
            - null
        ichimoku.senkouA:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for ichimoku.senkouA on the matched
            instrument.
          examples:
            - null
        ichimoku.senkouB:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for ichimoku.senkouB on the matched
            instrument.
          examples:
            - null
        alphaTrend.line:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for alphaTrend.line on the matched instrument.
          examples:
            - null
        tillsonT3.line:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for tillsonT3.line on the matched instrument.
          examples:
            - null
        mavilimW.line:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for mavilimW.line on the matched instrument.
          examples:
            - null
        atr14:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for atr14 on the matched instrument.
          examples:
            - null
        atrPct:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for atrPct on the matched instrument.
          examples:
            - null
        bollinger.upper:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for bollinger.upper on the matched instrument.
          examples:
            - null
        bollinger.middle:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for bollinger.middle on the matched
            instrument.
          examples:
            - null
        bollinger.lower:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for bollinger.lower on the matched instrument.
          examples:
            - null
        bollinger.width:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for bollinger.width on the matched instrument.
          examples:
            - null
        bollinger.percentB:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for bollinger.percentB on the matched
            instrument.
          examples:
            - null
        donchian.upper:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for donchian.upper on the matched instrument.
          examples:
            - null
        donchian.basis:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for donchian.basis on the matched instrument.
          examples:
            - null
        donchian.lower:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for donchian.lower on the matched instrument.
          examples:
            - null
        vwap:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for vwap on the matched instrument.
          examples:
            - null
        obv:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for obv on the matched instrument.
          examples:
            - null
        volume:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for volume on the matched instrument.
          examples:
            - null
        relativeVolume:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for relativeVolume on the matched instrument.
          examples:
            - null
        effortResult.effortResult:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for effortResult.effortResult on the matched
            instrument.
          examples:
            - null
        effortResult.spreadRatio:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for effortResult.spreadRatio on the matched
            instrument.
          examples:
            - null
        effortResult.zVol:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Screener metric value for effortResult.zVol on the matched
            instrument.
          examples:
            - null
        priceChange1:
          type:
            - number
            - 'null'
          format: double
          description: Screener metric value for priceChange1 on the matched instrument.
          examples:
            - null
      examples:
        - price: 97811.4
          technicalRating: 0.62
          rsi14: 64.2
          ema200: 91200.5
          macd.macd: 412.8
          macd.signal: 377.1
  headers:
    RateLimitLimit:
      description: Requests per minute the key may send; on a 401 the limit a new key gets.
      schema:
        type: integer
        format: int32
        minimum: 1
        maximum: 6000
      example: 60
    QuotaUnit:
      description: >-
        What the quota counts: credits. One credit is one successful call that
        returns data.
      schema:
        type: string
        enum:
          - credits
        maxLength: 7
      example: credits
    CreditsUsed:
      description: >-
        Credits this answer cost: one for a 2xx answer with data, however many
        rows it holds. An empty answer, a refusal, an error and a FINRA
        /short-volume answer cost 0.
      schema:
        type: integer
        format: int64
        minimum: 0
        maximum: 9007199254740991
      example: 1
    QuotaLimit:
      description: >-
        The plan's credits for its period plus the account's pay-as-you-go
        credit balance, as the request found them.
      schema:
        type: integer
        format: int64
        minimum: 0
        maximum: 9007199254740991
      example: 2500000
    QuotaRemaining:
      description: >-
        Credits left after this answer: the plan's own first, then the credit
        balance.
      schema:
        type: integer
        format: int64
        minimum: 0
        maximum: 9007199254740991
      example: 2499999
    QuotaReset:
      description: >-
        When the plan's credits start again, or the trial ends, in seconds since
        1970 (UTC). Pay-as-you-go answers leave it out: their credits never
        expire.
      schema:
        type: integer
        format: int64
        minimum: 0
        maximum: 4102444800
      example: 1767225600
    RetryAfter:
      description: Seconds to wait before the next request.
      schema:
        type: integer
        format: int32
        minimum: 1
        maximum: 60
      example: 1
  responses:
    BadRequest:
      description: A parameter is missing or malformed.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-Quota-Unit:
          $ref: '#/components/headers/QuotaUnit'
        X-Credits-Used:
          $ref: '#/components/headers/CreditsUsed'
        X-Quota-Limit:
          $ref: '#/components/headers/QuotaLimit'
        X-Quota-Remaining:
          $ref: '#/components/headers/QuotaRemaining'
        X-Quota-Reset:
          $ref: '#/components/headers/QuotaReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: VALIDATION_ERROR
            message: Send ticker or cik
    Unauthorized:
      description: The API key is missing, unknown or revoked.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-Quota-Unit:
          $ref: '#/components/headers/QuotaUnit'
        X-Credits-Used:
          $ref: '#/components/headers/CreditsUsed'
        X-Quota-Limit:
          $ref: '#/components/headers/QuotaLimit'
        X-Quota-Remaining:
          $ref: '#/components/headers/QuotaRemaining'
        X-Quota-Reset:
          $ref: '#/components/headers/QuotaReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: UNAUTHORIZED
            message: The API key is not valid
    PlanRequired:
      description: The account of the key has no active data API plan.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-Quota-Unit:
          $ref: '#/components/headers/QuotaUnit'
        X-Credits-Used:
          $ref: '#/components/headers/CreditsUsed'
        X-Quota-Limit:
          $ref: '#/components/headers/QuotaLimit'
        X-Quota-Remaining:
          $ref: '#/components/headers/QuotaRemaining'
        X-Quota-Reset:
          $ref: '#/components/headers/QuotaReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: PLAN_REQUIRED
            message: The account of this key has no active data API plan
    NotFound:
      description: No company has this ticker or CIK.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-Quota-Unit:
          $ref: '#/components/headers/QuotaUnit'
        X-Credits-Used:
          $ref: '#/components/headers/CreditsUsed'
        X-Quota-Limit:
          $ref: '#/components/headers/QuotaLimit'
        X-Quota-Remaining:
          $ref: '#/components/headers/QuotaRemaining'
        X-Quota-Reset:
          $ref: '#/components/headers/QuotaReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: NOT_FOUND
            message: No company has this ticker or CIK
    RateLimited:
      description: >-
        The key sent more requests in a minute than its limit (RATE_LIMITED), or
        its account has no credits left (QUOTA_EXCEEDED).
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-Quota-Unit:
          $ref: '#/components/headers/QuotaUnit'
        X-Credits-Used:
          $ref: '#/components/headers/CreditsUsed'
        X-Quota-Limit:
          $ref: '#/components/headers/QuotaLimit'
        X-Quota-Remaining:
          $ref: '#/components/headers/QuotaRemaining'
        X-Quota-Reset:
          $ref: '#/components/headers/QuotaReset'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: RATE_LIMITED
            message: Too many requests
    InternalError:
      description: Darvas failed; the error is reported.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-Quota-Unit:
          $ref: '#/components/headers/QuotaUnit'
        X-Credits-Used:
          $ref: '#/components/headers/CreditsUsed'
        X-Quota-Limit:
          $ref: '#/components/headers/QuotaLimit'
        X-Quota-Remaining:
          $ref: '#/components/headers/QuotaRemaining'
        X-Quota-Reset:
          $ref: '#/components/headers/QuotaReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INTERNAL_ERROR
            message: Something went wrong
    Unavailable:
      description: The data store is unavailable.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-Quota-Unit:
          $ref: '#/components/headers/QuotaUnit'
        X-Credits-Used:
          $ref: '#/components/headers/CreditsUsed'
        X-Quota-Limit:
          $ref: '#/components/headers/QuotaLimit'
        X-Quota-Remaining:
          $ref: '#/components/headers/QuotaRemaining'
        X-Quota-Reset:
          $ref: '#/components/headers/QuotaReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: UNAVAILABLE
            message: The data service is unavailable
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: 'A Darvas data API key: dvk_ and 43 characters.'
    bearerKey:
      type: http
      scheme: bearer
      description: The same key as a Bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.