XRPL.to API Charts & Analytics API

The Charts & Analytics API from XRPL.to API — 15 operation(s) for charts & analytics.

GitHub OpenAPI

Operations 15

GET /ohlc/{id} OHLC candlestick data #
GET /sparkline/{id} Price sparkline #
GET /holders/info/{id} Holder concentration (top10/20/50/100 %) #
GET /holders/graph/{id} Holder count history #
GET /holders/list/{id} Paginated holder richlist with acquisition tracking #
GET /rsi RSI indicator data #
GET /stats Platform metrics #
GET /stats/rates Exchange rates between tokens #
POST /stats/metrics Historical exchange rates by timestamps (XRP base) #
GET /stats/marketcap-history Daily OMCF-filtered marketcap (same as homepage gMarketcap) back to 2021-09-26 #
GET /holders/ranks/{id} Bulk account-to-rank lookup within the holder richlist #
GET /holders/position/{id}/{address} One account's stake in a token — balance, share of supply and rank, without… #
GET /sparkline/batch Batch sparklines for multiple tokens (each rebuilt on the token's next trade) #
GET /holders/empty/{id} Zero-balance trustlines (dust/airdrop accounts; precomputed bot accounts… #
GET /holders/movers/{id} Top 24h buyers and sellers by holder balance delta #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xrpl-to:xrpl-to-charts-analytics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

xrpl-to-charts-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XRPL.to Charts & Analytics API
  description: 'XRPL token analytics, market data, NFT, trading, and on-chain account API.


    ## Usage policy


    Applies to every caller — no key, Free, and every paid tier alike.


    - **Attribution is required.** Any app, website, bot, or dashboard that displays xrpl.to data must show a visible, clickable credit to xrpl.to on the same screen as that data — not buried in an about page. Use: `Data by xrpl.to`

    - **Redistribution needs permission.** Storing our data and re-serving it from your own API, dataset, or public dashboard requires written permission first. Email hello@xrpl.to — the answer is usually yes, we just need to know who is doing it.

    - **Indexers and aggregators:** use the paginated list endpoints instead of looping one item at a time, cache what you fetch, and honour `Retry-After` on a 429 — a repeated 429 means back off, not retry. Get a key rather than running anonymous so we can raise your limits instead of blocking you.

    - **Partner tier** (invitation-only, free): 100 req/sec, 200M credits/mo, direct support — for integrations that credit us properly. Email hello@xrpl.to or DM @xrplto on X.


    Successful responses on the tiers that pay nothing (anonymous, free, partner) carry an `attribution` string right after `success`, restating this requirement. It is informational — safe to ignore in code, but not optional to comply with.'
  version: '1.20'
  contact:
    name: XRPL.to
    url: https://xrpl.to
servers:
- url: https://api.xrpl.to/v1
  description: Production (canonical)
- url: https://api.xrpl.to/api
  description: Production (alias — identical API, prefer /v1)
tags:
- name: Charts & Analytics
paths:
  /ohlc/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: OHLC candlestick data
      operationId: get_ohlc_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: range
        in: query
        required: false
        description: 1D|5D|7D|1M|3M|1Y|5Y|ALL
        schema:
          type: string
      - name: interval
        in: query
        required: false
        description: 1m|5m|15m|30m|1h|2h|4h|1d|1w
        schema:
          type: string
      - name: vs_currency
        in: query
        required: false
        description: 'XRP|USD|EUR|JPY|CNH (default: XRP). EUR, JPY and CNH candles are converted at the ECB reference rate of their own day (the last business day before a weekend or holiday; CNH uses the ECB''s CNY); a candle with no rate in the week before it is left out. In USD a candle closes at the XRP/USD rate of its end, and its high and low go only as far as a trade certainly reached (each 5-minute high at the lowest XRP/USD rate of those 5 minutes, each low at the highest), so XRP moving inside a candle draws no wick. In every currency a wick more than 5% past a 5-minute candle''s body reaches only as far as real volume traded (2% of the candle''s XRP, at least 10 and at most 1000), so a lone off-market trade draws no spike and a real one still shows'
        schema:
          type: string
      - name: resolution
        in: query
        required: false
        description: int (minutes), or D|W|M (also 1D|1W|1M; a week starts Monday 00:00 UTC, a month on the 1st; 1m is a minute)
        schema:
          type: integer
      - name: cb
        in: query
        required: false
        description: int (candle bar count, max 5000)
        schema:
          type: integer
      - name: to
        in: query
        required: false
        description: 'unix ms (with resolution): a page of history, the cb candles that open before it. Page back by passing the first candle''s time; an empty ohlc means the history ends there. Absent, or inside the current candle: the live window ending now'
        schema:
          type: integer
      - name: invert
        in: query
        required: false
        description: bool
        schema:
          type: boolean
      - name: ind
        in: query
        required: false
        description: 'indicators instead of candles (with resolution, not to): up to 10 studies, comma-separated, each its id from /ohlc/indicators (id@md5: read off that token''s candles instead of this one''s, at the same bars) then its inputs after colons in that order, empty = the default (relative-strength-index:14,macd,bollinger-bands:20:2). Computed on these candles with TradingView''s formulas, each warmed up on the bars before the first one returned'
        schema:
          type: string
      - name: from
        in: query
        required: false
        description: 'unix ms (with ind): the first bar wanted; default the last cb'
        schema:
          type: string
      - name: tail
        in: query
        required: false
        description: 'int (with ind): only the last N bars (a chart''s live update)'
        schema:
          type: string
      - name: ha
        in: query
        required: false
        description: 'bool (with resolution): Heikin Ashi candles (TradingView''s), warmed up on the bars before the window; with ind the studies are computed on them'
        schema:
          type: string
      - name: chg
        in: query
        required: false
        description: 'bool: each row also carries the bar''s change against the bar before''s close and the change in % (format "ohlc_change")'
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, length, format, resolution, interval, interval_seconds, vs_currency, inverted, base_interval, preAgg?, ohlc: [[time, open, high, low, close, volume, ...]] }'
  /sparkline/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: Price sparkline
      operationId: get_sparkline_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: period
        in: query
        required: false
        description: '24h|7d (default: 7d)'
        schema:
          type: string
      - name: vs_currency
        in: query
        required: false
        description: 'XRP|USD (default: XRP)'
        schema:
          type: string
      - name: lightweight
        in: query
        required: false
        description: bool - sample data points
        schema:
          type: boolean
      - name: max_points
        in: query
        required: false
        description: 'int (default: 20, range 2-500; only applies when lightweight=true)'
        schema:
          type: integer
      - name: pro24h
        in: query
        required: false
        description: float - override percentChange/chartColor when period=24h
        schema:
          type: number
      - name: pro7d
        in: query
        required: false
        description: float - override when period=7d
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, chartColor, period, percentChange, lightweight, vsCurrency, data: { prices[], timestamps[], max, min } }'
  /holders/info/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: Holder concentration (top10/20/50/100 %)
      operationId: get_holders_info_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, richInfo: { time, length, holders, top10, top20, top50, top100, active24H } }'
  /holders/graph/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: Holder count history
      operationId: get_holders_graph_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: range
        in: query
        required: false
        description: '1D|7D|1M|3M|1Y|5Y|ALL (default: 7D)'
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, length, history[] }'
  /holders/list/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: Paginated holder richlist with acquisition tracking
      operationId: get_holders_list_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: offset
        in: query
        required: false
        description: int
        schema:
          type: integer
      - name: limit
        in: query
        required: false
        description: 'int (default: 20, max 200)'
        schema:
          type: integer
      - name: freeze
        in: query
        required: false
        description: 'bool - only frozen trustlines (for an MPT: only holders the issuer locked)'
        schema:
          type: boolean
      - name: sort
        in: query
        required: false
        description: 'balance|value|holding|percent|change24h|pnl (value/percent are balance/holding aliases; default: balance desc)'
        schema:
          type: string
      - name: order
        in: query
        required: false
        description: asc|desc
        schema:
          type: string
      - name: search
        in: query
        required: false
        description: account address (min 3 chars)
        schema:
          type: string
      - name: minBalance
        in: query
        required: false
        description: float - min balance (token units)
        schema:
          type: number
      - name: maxBalance
        in: query
        required: false
        description: float - max balance (token units)
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, summary: { top10Hold, top20Hold, top50Hold, top100Hold, frozen }, length (total holders; filtered count when search/minBalance/maxBalance set), richList[]: { account, balance, holding, rank, freeze, frozenByIssuer?, isCreator, xrpBalance, lastActive, name, domain, funder, tradedPct?, tradeCount?, source?, acquisition?, isAMM? } }'
  /rsi:
    get:
      tags:
      - Charts & Analytics
      summary: RSI indicator data
      operationId: get_rsi
      parameters:
      - name: offset
        in: query
        required: false
        description: int
        schema:
          type: integer
      - name: limit
        in: query
        required: false
        description: int (max 100)
        schema:
          type: integer
      - name: sort
        in: query
        required: false
        description: 'rsi15m|rsi1h|rsi4h|rsi24h|rsi7d|rsi30d|rsi90d|marketcap|vol24hxrp|pro24h|pro7d|pro30d|holders|tvl|uniqueTraders24h (default: rsi24h; invalid values fall back)'
        schema:
          type: string
      - name: order
        in: query
        required: false
        description: asc|desc
        schema:
          type: string
      - name: timeframe
        in: query
        required: false
        description: 15m|1h|4h|24h|7d|30d|90d
        schema:
          type: string
      - name: filter
        in: query
        required: false
        description: text search
        schema:
          type: string
      - name: tag
        in: query
        required: false
        description: string
        schema:
          type: string
      - name: origin
        in: query
        required: false
        description: string
        schema:
          type: string
      - name: minMarketCap
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxMarketCap
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minVolume24h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxVolume24h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minPriceChange24h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxPriceChange24h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minRsi15m
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxRsi15m
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minRsi1h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxRsi1h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minRsi4h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxRsi4h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minRsi24h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxRsi24h
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minRsi7d
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxRsi7d
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minRsi30d
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxRsi30d
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: minRsi90d
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: maxRsi90d
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: activeOnly
        in: query
        required: false
        description: bool
        schema:
          type: boolean
      - name: minHolders
        in: query
        required: false
        description: int
        schema:
          type: integer
      - name: minTVL
        in: query
        required: false
        description: float
        schema:
          type: number
      - name: excludeNeutral
        in: query
        required: false
        description: bool
        schema:
          type: boolean
      - name: minUniqueTraders
        in: query
        required: false
        description: int
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, timeframe, sort, order, filters, tokens[], count, total, start, limit, cached? }'
  /stats:
    get:
      tags:
      - Charts & Analytics
      summary: Platform metrics
      operationId: get_stats
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, total, exch, H24, global }'
      parameters: []
  /stats/rates:
    get:
      tags:
      - Charts & Analytics
      summary: Exchange rates between tokens
      operationId: get_stats_rates
      parameters:
      - name: token1
        in: query
        required: false
        description: token id
        schema:
          type: string
      - name: token2
        in: query
        required: false
        description: token id
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, total, exch, H24, global, rate1, rate2 }'
  /stats/metrics:
    post:
      tags:
      - Charts & Analytics
      summary: Historical exchange rates by timestamps (XRP base)
      operationId: post_stats_metrics
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, length, history[]: { timestamp, XRP (USD price), USD (XRP per 1 USD), EUR (XRP per 1 EUR), JPY (XRP per 1 JPY), CNY (XRP per 1 CNY) } }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: '{ timestamps: [unix_ms, ...] }'
      parameters: []
  /stats/marketcap-history:
    get:
      tags:
      - Charts & Analytics
      summary: Daily OMCF-filtered marketcap (same as homepage gMarketcap) back to 2021-09-26
      operationId: get_stats_marketcap_history
      parameters:
      - name: from
        in: query
        required: false
        description: YYYY-MM-DD (required)
        schema:
          type: string
      - name: to
        in: query
        required: false
        description: YYYY-MM-DD (optional, default today)
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, from, to, length, history[]: { date, gMarketcap (XRP, filtered), unfilteredMarketcap (XRP, incl. illiquid), tokenCount } }'
  /holders/ranks/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: Bulk account-to-rank lookup within the holder richlist
      operationId: get_holders_ranks_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: accounts
        in: query
        required: false
        description: comma-separated r-addresses (max 200)
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, ranks: { account: rank|null }, total, source: redis|mongo }'
  /holders/position/{id}/{address}:
    get:
      tags:
      - Charts & Analytics
      summary: One account's stake in a token — balance, share of supply and rank, without…
      operationId: get_holders_position_id_address
      parameters:
      - name: id
        in: path
        required: true
        description: Token md5, slug or issuer_currency
        schema:
          type: string
      - name: address
        in: path
        required: true
        description: XRPL r-address (exact match)
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, account, md5, balance, holding (% of supply, 2dp rounded down - same figure as /holders/list), rank (null until the worker ranks the token), holders }'
  /sparkline/batch:
    get:
      tags:
      - Charts & Analytics
      summary: Batch sparklines for multiple tokens (each rebuilt on the token's next trade)
      operationId: get_sparkline_batch
      parameters:
      - name: md5s
        in: query
        required: false
        description: comma-separated md5 hashes (required, max 100)
        schema:
          type: string
      - name: period
        in: query
        required: false
        description: '24h|7d (default: 7d)'
        schema:
          type: string
      - name: maxPoints
        in: query
        required: false
        description: 'int (default: 50, range 2-500)'
        schema:
          type: integer
      - name: vs_currency
        in: query
        required: false
        description: 'XRP|USD (default: XRP)'
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ sparklines: { <md5>: [price, ...] } }'
  /holders/empty/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: Zero-balance trustlines (dust/airdrop accounts; precomputed bot accounts…
      operationId: get_holders_empty_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: int (1-1000; omit to return the full list)
        schema:
          type: integer
      - name: offset
        in: query
        required: false
        description: 'int (default: 0, only with limit)'
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, accounts[], count, total, excluded, offset?, limit? }'
  /holders/movers/{id}:
    get:
      tags:
      - Charts & Analytics
      summary: Top 24h buyers and sellers by holder balance delta
      operationId: get_holders_movers_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: 'int per side (default: 20, max 50)'
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, summary: { top10Hold, top20Hold, top50Hold, top100Hold, frozen }, length (total holders; filtered count when search/minBalance/maxBalance set), richList[]: { account, balance, holding, rank, freeze, frozenByIssuer?, isCreator, xrpBalance, lastActive, name, domain, funder, tradedPct?, tradeCount?, source?, acquisition?, isAMM? } }'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
    WalletSignature:
      type: apiKey
      in: header
      name: X-Signature
      description: Send X-Wallet, X-Timestamp, X-Signature, X-Public-Key headers.
    AdminKey:
      type: apiKey
      in: header
      name: X-Admin-Key