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

# Fixed vs floating funding (Pendle Boros)

> Returns every live Pendle Boros funding-rate market (one per venue perp and maturity: Binance, OKX, Bybit, Gate, KuCoin, Hyperliquid incl. the xyz builder dex, Lighter) with its implied (fixed) APR, the floating APR Boros reports, and Sharpe's own realised 7-day and 30-day funding for the same venue contract, annualised (acc × 365 / days). spread7dApr and spread30dApr are implied − realised: positive means locking the fixed rate beats what the floating leg has paid (the lock-fixed-carry signal); the spreads are gross of Boros and venue fees. A market whose venue contract is not in the funding store keeps its Boros figures and serves realised null with a reason, never 0. Ranked with markets under 3 days to maturity last, then by the 30-day executable edge net of Boros's taker and settlement fees (netEdge30dApr; edge30dApr is bestBidApr − realised30dApr to receive fixed, realised30dApr − bestAskApr to pay fixed, the larger), then the 7-day one: the spread is a valuation at the mark, the edge is what a fill earns.



## OpenAPI

````yaml /openapi.json get /v1/arbitrage/fixed-floating-funding
openapi: 3.0.0
info:
  title: Sharpe API
  version: 1.0.0
  description: >-
    Institutional-grade crypto market data API. Access funding rates, futures,
    arbitrage opportunities, narratives, ecosystems, and more.


    Authentication is supported via two production-safe methods:

    1. **Bearer token** in the Authorization header: `Authorization: Bearer
    sk_live_...`

    2. **X-API-Key header**: `X-API-Key: sk_live_...`


    API keys in query parameters are rejected by default because URLs are
    commonly stored in logs, browser history, analytics tools, and referrer
    headers.


    These `/v1` endpoints send no CORS headers and must be called from a server:
    calling them from a browser would expose your API key in page JavaScript.


    Every endpoint needs an API key, except `/v1/health` and
    `/v1/meta/coverage`. A key works on a paid plan
    (https://www.sharpe.ai/pricing) or during its account's one-time trial of 7
    days and 250 requests; otherwise it answers 401 `expired_api_key`. There is
    no free API tier and no keyless API.
  contact:
    name: Sharpe API Support
    url: https://sharpe.ai
    email: team@sharpe.ai
servers:
  - url: https://www.sharpe.ai/api
    description: Production
security:
  - BearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: System
    description: Health checks and service status
  - name: Account
    description: API key usage and quota information
  - name: Derivatives
    description: Funding rates and futures data
  - name: Market Data
    description: >-
      Heatmaps, correlations, tracker, price predictions, news, gem finder, and
      market cap search
  - name: Arbitrage
    description: >-
      Spot-perp, cross-exchange, dated futures basis, calendar spread,
      perp-dated carry, and transfer arbitrage scanners
  - name: Categories
    description: Narratives, ecosystems, and memecoins data
  - name: New Listings
    description: >-
      Spot listings, Perp listings, delistings, suspensions, scheduled trading
      starts, exchange pages, and narrative flow across CEXs and Perp DEXs.
  - name: Screener
    description: Rug Check security, holders, resolve and trending endpoints.
  - name: Signals
    description: >-
      Composite signal scores derived from cross-exchange derivatives data:
      insider selling pressure and pump-and-dump detection.
  - name: Reports
    description: >-
      Markdown reports rendered on the server from the endpoints above: the
      market briefing, one coin's analysis, and the funding-arbitrage
      opportunities.
paths:
  /v1/arbitrage/fixed-floating-funding:
    get:
      tags:
        - Arbitrage
      summary: Fixed vs floating funding (Pendle Boros)
      description: >-
        Returns every live Pendle Boros funding-rate market (one per venue perp
        and maturity: Binance, OKX, Bybit, Gate, KuCoin, Hyperliquid incl. the
        xyz builder dex, Lighter) with its implied (fixed) APR, the floating APR
        Boros reports, and Sharpe's own realised 7-day and 30-day funding for
        the same venue contract, annualised (acc × 365 / days). spread7dApr and
        spread30dApr are implied − realised: positive means locking the fixed
        rate beats what the floating leg has paid (the lock-fixed-carry signal);
        the spreads are gross of Boros and venue fees. A market whose venue
        contract is not in the funding store keeps its Boros figures and serves
        realised null with a reason, never 0. Ranked with markets under 3 days
        to maturity last, then by the 30-day executable edge net of Boros's
        taker and settlement fees (netEdge30dApr; edge30dApr is bestBidApr −
        realised30dApr to receive fixed, realised30dApr − bestAskApr to pay
        fixed, the larger), then the 7-day one: the spread is a valuation at the
        mark, the edge is what a fill earns.
      operationId: getArbitrageFixedFloatingFunding
      parameters:
        - name: coin
          in: query
          description: Underlying asset, case-insensitive (BTC, ETH, HYPE, BRENTOIL).
          schema:
            type: string
            minLength: 1
        - name: venue
          in: query
          description: >-
            Filter to one venue, case-insensitive: Boros's name (Binance, OKX,
            Hyperliquid, Gate, Kucoin, Lighter, Bybit) or our funding store's
            (Gate.io, KuCoin, tradeXYZ).
          schema:
            type: string
            minLength: 1
            maxLength: 32
      responses:
        '200':
          description: Boros fixed vs floating funding returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FixedFloatingFundingResponse'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-Quota-Limit:
              $ref: '#/components/headers/X-Quota-Limit'
            X-Quota-Remaining:
              $ref: '#/components/headers/X-Quota-Remaining'
            X-Quota-Reset:
              $ref: '#/components/headers/X-Quota-Reset'
            X-Data-Source:
              $ref: '#/components/headers/X-Data-Source'
            X-Data-Stale:
              $ref: '#/components/headers/X-Data-Stale'
            X-Data-As-Of:
              $ref: '#/components/headers/X-Data-As-Of'
            X-Freshness-Sla-Seconds:
              $ref: '#/components/headers/X-Freshness-Sla-Seconds'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    FixedFloatingFundingResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessEnvelope'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/FixedFloatingFundingData'
          required:
            - data
    SuccessEnvelope:
      type: object
      properties:
        data:
          description: >-
            Endpoint-specific response payload. See the operation response
            schema.
        meta:
          $ref: '#/components/schemas/ApiMeta'
      required:
        - data
        - meta
    FixedFloatingFundingData:
      type: object
      properties:
        rows:
          type: array
          items:
            $ref: '#/components/schemas/FixedFloatingFundingRow'
        summary:
          $ref: '#/components/schemas/FixedFloatingFundingSummary'
      required:
        - rows
        - summary
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          format: uri
          description: URI identifying the error type.
          example: https://www.sharpe.ai/errors/invalid_parameter
        title:
          type: string
          description: Short human-readable summary.
          example: Invalid Parameter
        status:
          type: integer
          description: HTTP status code.
          example: 400
        detail:
          type: string
          description: Human-readable explanation specific to this occurrence.
          example: 'Invalid parameter "coin": must not be empty'
        request_id:
          type: string
          description: Unique request identifier for support reference.
          example: req_a1b2c3d4e5f6g7h8i9j0
        doc_url:
          type: string
          format: uri
          description: Link to the relevant documentation page for troubleshooting.
          example: https://www.sharpe.ai/docs/errors#error-codes
        suggested_action:
          type: string
          description: Actionable suggestion for resolving the error.
          example: >-
            Check the 'coin' parameter value and ensure it is a valid ticker
            symbol.
      required:
        - type
        - title
        - status
        - detail
        - request_id
        - doc_url
        - suggested_action
      description: Error response following RFC 9457 (Problem Details for HTTP APIs).
    ApiMeta:
      type: object
      properties:
        request_id:
          type: string
          description: Unique request identifier.
          example: req_a1b2c3d4e5f6g7h8i9j0
        timestamp:
          type: string
          format: date-time
          description: ISO 8601 timestamp of the response.
        elapsed_ms:
          type: integer
          minimum: 0
          description: Server processing time in milliseconds.
        dataset_id:
          type: string
          enum:
            - funding_rates_current
            - funding_rates_history
            - funding_accumulated
            - funding_fee_settlement
            - global_overview_snapshot
            - futures_open_interest
            - futures_basis
            - futures_term_structure
            - futures_liquidations
            - futures_long_short_ratio
            - futures_ohlcv
            - futures_coins
            - rwa_perp_rates_current
            - arbitrage_tickers
            - arbitrage_boards
            - arbitrage_dated_quotes
            - narratives
            - ecosystems
            - memecoins
            - mindshare
            - sectors
            - chains
            - sector_coins
            - chain_coins
            - gem_finder
            - web_traffic
            - heatmap_cache
            - stablecoins
            - news
            - listings
            - memecoin_launches
            - rug_check_inputs
            - rug_check_trending
            - pump_dump
            - insider_pressure
            - price_prediction_inputs
            - correlation_prices
            - market_cap_search
            - coingecko_coin_list
            - boros_markets
            - margin_borrow_rates
          description: >-
            The dataset the answer is read from; /v1/meta/coverage lists each
            product's datasets with their cadence and SLA.
        as_of:
          nullable: true
          type: string
          format: date-time
          description: >-
            When the data was current: the dataset's own time (the newest live
            row, the snapshot or refresh time, the fetch time), not the response
            time. Null when unknown.
        stale_after:
          nullable: true
          type: string
          format: date-time
          description: >-
            `as_of` plus the freshness SLA: after this instant the data is
            stale, whenever the body is read (a cached copy can be re-judged
            against it).
        freshness_sla_seconds:
          type: number
          description: >-
            Seconds after `as_of` the data stays fresh: the writer's cadence
            plus one skipped run.
        freshness_status:
          type: string
          enum:
            - fresh
            - stale
            - unknown
          description: >-
            `fresh` within the SLA at `generated_at`, `stale` past it, `unknown`
            when `as_of` is null.
        runtime_status:
          type: string
          enum:
            - ok
            - degraded
          description: >-
            `degraded` when this read was incomplete: a leg timed out or failed,
            a row budget was hit, or a fallback answered. Degraded answers are
            never cached.
        served_from:
          type: string
          enum:
            - snapshot
            - table
            - matview
            - live
            - last-good
          description: >-
            Where the rows came from: a precomputed snapshot, a table or
            materialized view, the upstream on request, or the server's last
            good answer.
        generated_at:
          type: string
          format: date-time
          description: >-
            When this answer was built (the instant `freshness_status` is judged
            at).
        source:
          type: array
          items:
            type: string
          description: >-
            The upstream sources behind the rows (source ids such as `binance`,
            `coingecko`).
        coverage:
          type: object
          properties:
            expected:
              type: number
            used:
              type: number
            dropped:
              type: object
              additionalProperties:
                type: number
            missing:
              type: array
              items:
                type: string
          required:
            - expected
            - used
            - dropped
          description: >-
            How complete the stored data is (never whether it is cached): `used`
            of `expected` inputs counted; `dropped` counts the rest by reason (a
            halted market is `not_live`, outside `expected`); `missing` names
            the late ones when known.
        warnings:
          type: array
          items:
            type: string
          description: >-
            What the read could not do, in words (an unreadable table, a late
            writer).
        truncated:
          type: boolean
          description: True when a row budget cut the answer short.
      required:
        - request_id
        - timestamp
        - elapsed_ms
    FixedFloatingFundingRow:
      type: object
      properties:
        marketId:
          type: integer
          description: >-
            Boros market id (the key: one venue contract can list twice on
            different collateral).
        market:
          type: string
          description: Boros market symbol, e.g. BINANCE-BTCUSDT-30OCT2026.
        venue:
          type: string
          description: >-
            The venue whose perp funding the market settles against, as Boros
            names it (Binance, OKX, Hyperliquid, Gate, Kucoin, Lighter, Bybit).
        coin:
          type: string
        fundingExchange:
          nullable: true
          description: >-
            Our funding store's exchange for the matched contract (Gate.io,
            KuCoin, tradeXYZ for Hyperliquid's xyz dex); null when not covered.
          type: string
        fundingContract:
          nullable: true
          description: >-
            The matched perp's native symbol as /v1/funding/rates serves it
            (BTCUSDT, BTC-USDT-SWAP, XBTUSDTM, BTC-USD, xyz:BRENTOIL); null when
            not covered.
          type: string
        collateral:
          nullable: true
          description: Boros collateral token (BTC, ETH, USDT, HYPE, BNB).
          type: string
        maturity:
          type: string
          format: date-time
        daysToMaturity:
          type: number
          description: Fractional days from the answer's generation to maturity.
        settlementIntervalHours:
          type: number
          description: >-
            The underlying perp's settlement interval, hours (Boros
            paymentPeriod).
        settlementsToMaturity:
          type: integer
        nextSettlementAt:
          nullable: true
          type: string
          format: date-time
        status:
          type: string
          enum:
            - trading
            - close_only
            - paused
        impliedApr:
          type: number
          description: 'Boros implied (fixed) APR: the market''s mark (fair-value) rate.'
        midApr:
          type: number
        bestBidApr:
          nullable: true
          description: >-
            Best bid APR: the fixed rate a seller of yield (receive fixed, pay
            floating) gets now.
          type: number
        bestAskApr:
          nullable: true
          type: number
        floatingApr:
          type: number
          description: >-
            The underlying (floating) APR as Boros reports it: the venue's
            current funding annualised by Boros's oracle.
        realised7dApr:
          nullable: true
          description: >-
            Our realised funding for the same venue contract over the last 7
            days, annualised: acc_7d × 365 / 7 (funding_accumulated).
          type: number
        realised7dNullReason:
          nullable: true
          type: string
          enum:
            - venue_not_covered
            - contract_not_in_store
            - store_unavailable
            - accumulated_stale
            - listed_within_window
            - history_stale
          description: >-
            Why the realised figure is null (never 0): venue_not_covered (Boros
            quotes a venue or Hyperliquid builder dex our funding store does not
            track), contract_not_in_store (no accumulated funding row for the
            contract), store_unavailable (the funding store could not be read),
            accumulated_stale (the 7/30-day sums are past their freshness SLA),
            listed_within_window (the contract's first stored settlement is
            inside the window), history_stale (its last stored settlement is
            over a day old).
        realised30dApr:
          nullable: true
          description: >-
            Realised funding over the last 30 days, annualised: acc_30d × 365 /
            30.
          type: number
        realised30dNullReason:
          nullable: true
          type: string
          enum:
            - venue_not_covered
            - contract_not_in_store
            - store_unavailable
            - accumulated_stale
            - listed_within_window
            - history_stale
          description: >-
            Why the realised figure is null (never 0): venue_not_covered (Boros
            quotes a venue or Hyperliquid builder dex our funding store does not
            track), contract_not_in_store (no accumulated funding row for the
            contract), store_unavailable (the funding store could not be read),
            accumulated_stale (the 7/30-day sums are past their freshness SLA),
            listed_within_window (the contract's first stored settlement is
            inside the window), history_stale (its last stored settlement is
            over a day old).
        spread7dApr:
          nullable: true
          description: >-
            impliedApr − realised7dApr. Positive: locking the fixed rate beats
            what the floating leg paid over 7 days. Gross: no Boros or venue
            fees.
          type: number
        spread30dApr:
          nullable: true
          description: >-
            impliedApr − realised30dApr: a valuation at the mark, not the rank
            key (netEdge30dApr is). Gross: no Boros or venue fees.
          type: number
        edge7dApr:
          nullable: true
          description: >-
            The 7-day executable edge: bestBidApr − realised7dApr to receive
            fixed, realised7dApr − bestAskApr to pay fixed, the larger. Gross of
            fees; null without a quote or the realised figure.
          type: number
        edge30dApr:
          nullable: true
          description: >-
            The 30-day executable edge: bestBidApr − realised30dApr to receive
            fixed, realised30dApr − bestAskApr to pay fixed, the larger. Gross
            of fees; null without a quote or the realised figure.
          type: number
        edge30dSide:
          nullable: true
          description: >-
            The side edge30dApr trades: receive_fixed (sell yield at the bid) or
            pay_fixed (buy yield at the ask); null without an edge.
          type: string
          enum:
            - receive_fixed
            - pay_fixed
        takerFeeApr:
          nullable: true
          description: >-
            Boros taker fee, a fraction per year of the time to maturity
            (config.takerFee / 1e18): a taker entry held to maturity costs this
            much a year. Null when Boros does not report it.
          type: number
        settleFeeApr:
          nullable: true
          description: >-
            Boros settlement fee, a fraction per year charged on each settlement
            (extConfig.settleFeeRate / 1e18). Null when Boros does not report
            it.
          type: number
        netEdge30dApr:
          nullable: true
          description: >-
            edge30dApr − takerFeeApr − settleFeeApr: the 30-day executable edge
            net of Boros fees, held to maturity (the rank key). Gross of any
            venue fee on a perp held beside it. Null without the edge or either
            fee.
          type: number
        openInterestUsd:
          nullable: true
          description: >-
            Boros open interest, one side: notionalOI (yield units of the
            collateral token) × the collateral's USD price.
          type: number
        volume24hUsd:
          nullable: true
          type: number
        tradeUrl:
          type: string
          description: The market on boros.pendle.finance.
        borosAsOf:
          type: string
          format: date-time
          description: Block time of the Boros indexer head the market was read at.
        fundingAsOf:
          nullable: true
          description: >-
            When the funding_accumulated view behind the realised figures was
            refreshed; null when not covered.
          type: string
          format: date-time
      required:
        - marketId
        - market
        - venue
        - coin
        - fundingExchange
        - fundingContract
        - collateral
        - maturity
        - daysToMaturity
        - settlementIntervalHours
        - settlementsToMaturity
        - nextSettlementAt
        - status
        - impliedApr
        - midApr
        - bestBidApr
        - bestAskApr
        - floatingApr
        - realised7dApr
        - realised7dNullReason
        - realised30dApr
        - realised30dNullReason
        - spread7dApr
        - spread30dApr
        - edge7dApr
        - edge30dApr
        - edge30dSide
        - takerFeeApr
        - settleFeeApr
        - netEdge30dApr
        - openInterestUsd
        - volume24hUsd
        - tradeUrl
        - borosAsOf
        - fundingAsOf
    FixedFloatingFundingSummary:
      type: object
      properties:
        markets:
          type: integer
        matched:
          type: integer
          description: Markets with a realised 7-day figure.
        unmatched:
          type: object
          additionalProperties:
            type: integer
          description: Markets without a realised 7-day figure, by realised7dNullReason.
        borosSyncedAt:
          type: string
          format: date-time
        fundingAccumulatedAt:
          nullable: true
          type: string
          format: date-time
      required:
        - markets
        - matched
        - unmatched
        - borosSyncedAt
        - fundingAccumulatedAt
  headers:
    X-Request-Id:
      schema:
        type: string
      description: Unique request identifier. Include this value when contacting support.
    X-RateLimit-Limit:
      schema:
        type: integer
      description: Requests allowed per minute for the authenticated API key.
    X-RateLimit-Remaining:
      schema:
        type: integer
      description: Requests remaining in the current one-minute rate-limit window.
    X-RateLimit-Reset:
      schema:
        type: integer
      description: Unix timestamp in seconds when the current rate-limit window resets.
    X-Quota-Limit:
      schema:
        type: integer
      description: Monthly request quota for the authenticated API key.
    X-Quota-Remaining:
      schema:
        type: integer
      description: Monthly requests remaining in the current billing period.
    X-Quota-Reset:
      schema:
        type: string
        format: date-time
      description: >-
        ISO 8601 timestamp when the monthly quota resets, when available from
        the quota store.
    X-Data-Source:
      schema:
        type: string
      description: >-
        The sources behind the rows, comma-separated source ids (e.g.
        `binance,bybit`): `meta.source`. /v1/funding/rates and
        /v1/rwa-perps/rates send the origin tier instead, `live` or `supabase`.
    X-Data-Stale:
      schema:
        type: boolean
      description: >-
        True when the data is past its freshness SLA (`meta.freshness_status` is
        not `fresh`), judged for the answer as a whole; rows keep their own
        staleness flags. /v1/funding/rates and /v1/rwa-perps/rates set it when
        the response is empty or at least one returned row exceeds the published
        freshness target.
    X-Data-As-Of:
      schema:
        type: string
        format: date-time
      description: >-
        When the data was current: `meta.as_of` (the newest live row, the
        snapshot or refresh time, or the fetch time). /v1/funding/rates and
        /v1/rwa-perps/rates: the newest source timestamp in the response.
    X-Freshness-Sla-Seconds:
      schema:
        type: integer
      description: >-
        The dataset's freshness SLA in seconds (`meta.freshness_sla_seconds`):
        the writer's cadence plus one skipped run.
    Retry-After:
      schema:
        type: integer
      description: >-
        Seconds to wait before retrying after a per-minute rate-limit or
        monthly-quota rejection.
  responses:
    BadRequest:
      description: Invalid or missing parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/invalid_parameter
            title: Invalid Parameter
            status: 400
            detail: 'Invalid parameter "coin": must not be empty'
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#error-codes
            suggested_action: >-
              Check the parameter value against the endpoint documentation. Use
              GET /v1/futures/coins or GET /v1/meta/coverage to discover valid
              values.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    Unauthorized:
      description: >-
        Missing or invalid API key, or a key without an active plan
        (`expired_api_key`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalid_api_key:
              summary: Missing or invalid API key
              value:
                type: https://www.sharpe.ai/errors/invalid_api_key
                title: Invalid API Key
                status: 401
                detail: >-
                  Missing API key. Pass via Authorization: Bearer <key> or the
                  X-API-Key header.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/authentication
                suggested_action: >-
                  Check your API key is correct. Pass it via Authorization:
                  Bearer <key> or the X-API-Key header.
            expired_api_key:
              summary: The key has no active plan
              value:
                type: https://www.sharpe.ai/errors/expired_api_key
                title: Expired API Key
                status: 401
                detail: >-
                  This API key has no active plan. Subscribe or renew at
                  https://www.sharpe.ai/dashboard/billing.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/authentication
                suggested_action: >-
                  Subscribe or renew at https://www.sharpe.ai/dashboard/billing.
                  The same key works again once the plan is active.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    Forbidden:
      description: The API key lacks a scope this endpoint requires.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/insufficient_scope
            title: Insufficient Scope
            status: 403
            detail: 'This API key requires the following scope(s): read.'
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/authentication
            suggested_action: >-
              Create a new API key with the required scopes, or contact support
              to update scopes on your existing key.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    RateLimited:
      description: >-
        Per-minute rate limit or monthly quota exceeded. Both are temporary;
        retry after the Retry-After header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rate_limit_exceeded:
              summary: Per-minute rate limit exceeded
              value:
                type: https://www.sharpe.ai/errors/rate_limit_exceeded
                title: Rate Limit Exceeded
                status: 429
                detail: Rate limit of 30 requests per minute exceeded.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/rate-limits
                suggested_action: >-
                  Wait until the time in the X-RateLimit-Reset header before
                  retrying. Upgrade your plan for higher limits.
            monthly_quota_exceeded:
              summary: Monthly quota exceeded
              value:
                type: https://www.sharpe.ai/errors/monthly_quota_exceeded
                title: Monthly Quota Exceeded
                status: 429
                detail: >-
                  Monthly quota of 50,000 requests exceeded. Resets at
                  2026-12-01T00:00:00.000Z.
                request_id: req_a1b2c3d4e5f6g7h8i9j0
                doc_url: https://www.sharpe.ai/docs/rate-limits
                suggested_action: >-
                  Retry after the seconds given in the Retry-After header, when
                  the monthly quota resets. Upgrade your plan for a higher
                  monthly quota. Check usage at GET /v1/usage.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-Quota-Limit:
          $ref: '#/components/headers/X-Quota-Limit'
        X-Quota-Remaining:
          $ref: '#/components/headers/X-Quota-Remaining'
        X-Quota-Reset:
          $ref: '#/components/headers/X-Quota-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/internal_error
            title: Internal Server Error
            status: 500
            detail: An unexpected error occurred. Please try again later.
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#retry-guidance
            suggested_action: >-
              Retry with exponential backoff (1s, 2s, 4s, up to 30s). If the
              error persists, contact support with the X-Request-Id.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
    ServiceUnavailable:
      description: The API or quota verification service is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            type: https://www.sharpe.ai/errors/service_unavailable
            title: Service Unavailable
            status: 503
            detail: >-
              API key verification is temporarily unavailable. Please retry
              shortly.
            request_id: req_a1b2c3d4e5f6g7h8i9j0
            doc_url: https://www.sharpe.ai/docs/errors#retry-guidance
            suggested_action: >-
              The API is temporarily unavailable. Retry with exponential
              backoff. If it persists, contact team@sharpe.ai with the
              X-Request-Id.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your API key as a Bearer token in the Authorization header:
        `Authorization: Bearer sk_live_...`
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Alternatively, pass your API key via the X-API-Key header.

````

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