Discover/cex.io API
live

cex.io APIcex.io

Access CEX.io market data via API: live tickers, order books, trade history, OHLCV candles, and spot pair info for BTC, ETH, and more.

Endpoints
7
Updated
14d ago
Try it

No input parameters required.

api.parse.bot/scraper/1dd8fdd2-c4cf-435c-94b9-f27cfe6abb11/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/1dd8fdd2-c4cf-435c-94b9-f27cfe6abb11/get_prices' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 7 totalclick to expand

Retrieve current prices and market caps for all supported tokens as a quick snapshot from the marketing API.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "data": "array of objects with price, change, quote, baseName, base, and marketCap for each token"
  },
  "sample": {
    "data": [
      {
        "base": "BTC",
        "price": 80125,
        "quote": "USD",
        "change": -1.6,
        "baseName": "Bitcoin",
        "marketCap": 1603009354318
      },
      {
        "base": "ETH",
        "price": 2295.5,
        "quote": "USD",
        "change": -2.14,
        "baseName": "Ethereum",
        "marketCap": 276390239866
      }
    ],
    "status": "success"
  }
}

About the cex.io API

This API exposes 7 endpoints covering CEX.io cryptocurrency market data, from real-time price snapshots to full order book depth. The get_ticker endpoint returns last price, bid, ask, 24h high/low, and volume for any trading pair, while get_ohlcv delivers 1-minute, 1-hour, and 1-day candlestick arrays for completed historical dates. Both the legacy REST and newer Spot Trading APIs are represented.

Market Data Coverage

The API spans two generations of CEX.io market data endpoints. The legacy REST layer handles get_ticker, get_order_book, get_trade_history, and get_ohlcv. The Spot Trading layer adds get_spot_pairs_info and get_spot_ticker, which use a BASE-QUOTE pair format (e.g. BTC-USD) and return fields like bestBid, bestAsk, volumeUSD, and priceChangePercentage. A separate get_prices endpoint returns a flat snapshot of all supported tokens with price, marketCap, change, base, and baseName fields — useful for a quick cross-market scan without specifying a pair.

Order Books and Trade History

get_order_book accepts symbol1, symbol2, and an optional depth integer to cap the number of bid/ask levels returned. The response includes bids and asks as [price, amount] arrays alongside sell_total and buy_total aggregate figures. get_trade_history returns recent fills in reverse chronological order, each with type (buy or sell), date as a Unix timestamp string, amount, price, and a tid transaction ID. The since parameter accepts a tid to page through history, but note that tid values are pair-specific and non-transferable across pairs.

OHLCV Candles

get_ohlcv takes a date in YYYYMMDD format and a trading pair. It returns three candle resolutions in the same response: data1m, data1h, and a daily candle, each serialized as a JSON string array. The endpoint only returns data for completed historical days — requests for today or very recent dates return empty arrays. Omitting the date parameter defaults to 7 days prior to the current date.

Spot Pairs Metadata

get_spot_pairs_info returns constraint data for all tradeable pairs: baseMin, baseMax, baseLotSize, quoteMin, quoteMax, and precision settings. This is useful for validating order sizes before submitting trades or for building pair selection interfaces that respect exchange minimums.

Common use cases
  • Displaying a live BTC-USD price ticker with bid, ask, and 24h change using get_ticker
  • Visualizing order book depth charts from get_order_book bids and asks arrays
  • Backtesting trading strategies against 1-minute OHLCV candles from get_ohlcv
  • Building a market cap dashboard using marketCap and price fields from get_prices
  • Monitoring recent fill activity and trade direction (buy/sell) via get_trade_history
  • Validating order size constraints before execution using baseMin/baseMax from get_spot_pairs_info
  • Aggregating spread data across all pairs using bestBid and bestAsk from get_spot_ticker
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does CEX.io have an official developer API?+
Yes. CEX.io publishes an official REST API documented at https://cex.io/rest-api. It covers both public market data and authenticated trading endpoints. This Parse API surfaces the public market data portion.
What does `get_ohlcv` return and what are its date constraints?+
get_ohlcv returns three candle resolutions — data1m (1-minute), data1h (1-hour), and daily — all in a single response for the specified trading pair and date. The date parameter must be in YYYYMMDD format and must refer to a fully completed historical day. Requests for today's date or very recent dates return empty data arrays.
Are `tid` values from `get_trade_history` usable across different trading pairs?+
No. The since parameter accepts a tid to retrieve trades after a specific transaction, but tid values are pair-specific. A tid obtained from BTC-USD trade history cannot be used to page through ETH-USD history and will not return the expected results.
Does this API cover authenticated endpoints like order placement or account balances?+
Not currently. The API covers public market data: tickers, order books, trade history, OHLCV candles, and spot pair metadata. Authenticated endpoints such as order placement, account balances, and withdrawal history are not included. You can fork this API on Parse and revise it to add those endpoints if CEX.io's authenticated API suits your use case.
Can I retrieve OHLCV data for candle intervals other than 1-minute and 1-hour?+
The get_ohlcv endpoint returns 1-minute (data1m), 1-hour (data1h), and 1-day candles in each response. Other intervals such as 4-hour or 15-minute candles are not currently returned. You can fork this API on Parse and revise it to derive or aggregate additional intervals from the available 1-minute data.
Page content last updated . Spec covers 7 endpoints from cex.io.
Related APIs in Crypto Web3See all →
opensea.io API
Search NFT collections and discover detailed stats, browse individual items, and track collection activity all in one place. Get real-time insights into collection performance and find the NFTs you're looking for on OpenSea.
ens.vision API
Search and explore ENS domains across the marketplace, discover owner portfolios and activity feeds, and resolve names to addresses with complete text records. Get domain details, browse categories, view offers and recommendations, and track all marketplace listings in one place.
nseindia.com API
Track live NSE stock prices, monitor indices, analyze option chains, and access corporate announcements with real-time market data from India's National Stock Exchange. View equity quotes with full order books, identify top gainers/losers, analyze 52-week highs/lows, and explore historical price trends all in structured JSON format.
blur.io API
Access NFT collection data on Blur.io, including floor prices, best bids, listed tokens, and recent activity. Authenticate with an Ethereum wallet to place collection bids and retrieve portfolio holdings.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
studio.glassnode.com API
Access comprehensive on-chain and market analytics for cryptocurrencies, including asset fundamentals, supply dynamics, futures data, and profit/loss metrics. Search and analyze assets with historical chart data and market overview information to track crypto performance and trends.
crypto-fundraising.info API
Track cryptocurrency fundraising activity by searching projects and investors, viewing deal details, and staying updated with the latest crypto funding news and top active venture funds. Monitor major fundraising rounds, explore investor portfolios, and research emerging crypto projects all in one place.
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.