Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: XRPL.to Market 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: Market
paths:
/market/funding:
get:
tags:
- Market
operationId: get_market_funding
parameters:
- name: asset
in: query
required: false
description: XRP|BTC|ETH (default XRP)
schema:
type: string
responses:
'200':
description: '{ success, asset, venues[] { venue, instrument, fundingRate, intervalHours, fundingRate8h, nextFundingTime, openInterest, openInterestUsd, at }, openInterestTotal { openInterest, openInterestUsd, fundingRate8hWeighted, venues[] }, longShortRatios[] { venue, measure, longShortRatio, longShare?, shortShare?, longAccounts?, shortAccounts?, period, at }, takerVolume[] { venue, hourStart, buyVolume, sellVolume, buySellRatio }, longShort { longShortAccountRatio, at }, note, source }'
summary: Perpetual funding rates and open interest on OKX, Binance, Bybit, Hyperliquid…
/market/funding-history:
get:
tags:
- Market
operationId: get_market_funding_history
parameters:
- name: asset
in: query
required: false
description: XRP|BTC|ETH (default XRP)
schema:
type: string
- name: days
in: query
required: false
description: int 1-30 (default 7; today included, still open)
schema:
type: string
responses:
'200':
description: '{ success, asset, days, from, funding[] { date, venues { <venue>: { sum, payments } } }, openInterest { <venue>: [{ at, openInterest, openInterestUsd? }] }, unavailable?, note, source }'
summary: 'Funding and open interest over the last days: the funding rates settled per UTC…'
/market/liquidations:
get:
tags:
- Market
operationId: get_market_liquidations
parameters:
- name: asset
in: query
required: false
description: XRP|BTC|ETH (default XRP)
schema:
type: string
responses:
'200':
description: '{ success, asset, venue, instrument, contractSize, window { from, to, events }, longsLiquidated { count, size, usd }, shortsLiquidated { count, size, usd }, largest[], gate { venue, instrument, last24h { from, to, hours, longsLiquidated { size, usd }, shortsLiquidated { size, usd } }, last7d { … }, days[] { date, hours, longsLiquidated, shortsLiquidated }, largestHours[] { hourStart, longsLiquidated, shortsLiquidated } }, streams { collectingSince, venues { <venue>: { connected, collectingSince, lastMessageAt, last24h, last7d { longs, shorts { count, size, usd } } } }, days[] { date, venues }, largest24h[] { venue, side, size, price, usd, time }, note }, note, source }'
summary: Liquidations on perpetuals.
/market/liquidation-levels:
get:
tags:
- Market
operationId: get_market_liquidation_levels
parameters:
- name: asset
in: query
required: false
description: XRP|BTC|ETH (default XRP)
schema:
type: string
responses:
'200':
description: '{ success, asset, estimate: true, price, at, window { from, to, hours }, venues[], openInterestShare, assumptions { leverage, maintenanceMarginRate, margin, rangePct }, longs { totalUsd, levels[] { fromPct, toPct, priceLow, priceHigh, usd, cumulativeUsd }, largest[] }, shorts { … }, note, source }'
summary: 'ESTIMATED liquidation levels (a heatmap): where positions opened in the last 7…'
/market/global:
get:
tags:
- Market
operationId: get_market_global
parameters: []
responses:
'200':
description: '{ success, totalMarketCapUsd, totalVolume24hUsd, marketCapChange24hPct, dominancePct, xrp { priceUsd, marketCapUsd, rank, volume24hUsd, change24hPct, athUsd, athDate, circulatingSupply, at }, at, source }'
summary: 'The whole crypto market (all venues): total market cap, 24h volume…'
/market/tickers:
get:
tags:
- Market
operationId: get_market_tickers
parameters:
- name: currency
in: query
required: false
description: 3-character code or 40-hex currency (required)
schema:
type: string
- name: issuer
in: query
required: false
description: r-address (required)
schema:
type: string
responses:
'200':
description: '{ success, listed, coinId?, name?, tickers[] { market, centralized, pair, last, lastUsd, volume24hUsd, spreadPct, trust, stale, anomaly, lastTradedAt }, note, source, at? }'
summary: 'An XRPL token''s markets on other venues, from CoinGecko: every market it tracks…'
/market/korea-premium:
get:
tags:
- Market
operationId: get_market_korea_premium
parameters: []
responses:
'200':
description: '{ success, upbit { xrpKrw, usdtKrw, xrpUsdt }, binance { xrpUsdt }, premiumPct, note, source, at }'
summary: 'XRP''s price on Upbit against Binance: Upbit KRW-XRP converted at Upbit''s own…'
/market/coinbase-premium:
get:
tags:
- Market
operationId: get_market_coinbase_premium
parameters: []
responses:
'200':
description: '{ success, coinbase { xrpUsd, usdtUsd, xrpUsdt }, binance { xrpUsdt }, premiumPct, note, source, at }'
summary: 'XRP''s price on Coinbase against Binance: Coinbase XRP-USD converted at…'
/market/xrpl-cex-ranking:
get:
tags:
- Market
operationId: get_market_xrpl_cex_ranking
parameters: []
responses:
'200':
description: '{ builtAt, coinsListed, coinsRead, tokens: [{ coinId, name, issuer, currency, centralizedExchanges, activeOnCentralized, exchanges[], decentralizedMarkets }], note, source }'
summary: 'XRPL-issued tokens ranked by how many centralized exchanges list them: every…'
/market/etf-flows:
get:
tags:
- Market
operationId: get_market_etf_flows
parameters: []
responses:
'200':
description: '{ latest, lastWeek { from, to, tradingDays, netInflowUsd }, funds: [{ ticker, name, exchange, date, netInflowUsd, cumInflowUsd, netAssetsUsd, priceUsd, sponsorFeePct }], days: [{ date, netInflowUsd, netAssetsUsd, cumNetInflowUsd, valueTradedUsd, xrpClose, xrpHeldEstimate }], note, source, at }'
summary: 'US spot XRP ETFs from SoSoValue: daily net inflow, value traded, net assets and…'
/market/predictions:
get:
tags:
- Market
operationId: get_market_predictions
parameters:
- name: topic
in: query
required: false
description: fed|crypto|economy (default fed)
schema:
type: string
responses:
'200':
description: '{ success, topic, events[] { title, url, endDate, volume24hUsd, markets[] { question, outcomes[] { name, probability }, volume24hUsd } }, note, source, at }'
summary: Active Polymarket prediction markets on a topic, busiest first, with each…
/market/history:
get:
tags:
- Market
operationId: get_market_history
parameters:
- name: asset
in: query
required: false
description: BTC|ETH|XRP|SOL|BNB|DOGE|ADA|LTC|XLM|HBAR (required)
schema:
type: string
- name: days
in: query
required: false
description: int 1-365 (default 30)
schema:
type: string
responses:
'200':
description: '{ success, asset, quote, days, closes[] {date, close}, note, source }'
summary: Daily closes of a major crypto asset from Binance spot (USDT, UTC days; the…
/market/macro:
get:
tags:
- Market
operationId: get_market_macro
parameters:
- name: id
in: query
required: false
description: 'DFF|DGS10|CPIAUCSL|UNRATE|ICSA|DTWEXBGS|M2SL (optional: one series'' history instead)'
schema:
type: string
- name: months
in: query
required: false
description: int 1-24 (default 12, with id)
schema:
type: string
responses:
'200':
description: '{ success, series[] { id, name, units, value, date, previous { value, date }, url }, source, note }; with id { success, id, name, units, url, months, from, observations[] { date, value }, source, note }'
summary: 'Latest US macro readings from FRED: effective fed funds rate, 10-year Treasury…'
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