cryptodataapi-com Market Data API

Spot klines, tickers, prices, and exchange info.

Operations 7

GET /api/v1/market-data/klines Get Klines #
GET /api/v1/market-data/ticker/24hr Get Ticker 24Hr #
GET /api/v1/market-data/ticker/price Get Ticker Price #
GET /api/v1/market-data/btc-price-history Btc Price History #
GET /api/v1/market-data/volume-history Volume History #
GET /api/v1/market-data/short-term-price Short Term Price #
GET /api/v1/market-data/exchange-info Get Exchange Info #

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/cryptodataapi-com:cryptodataapi-com-market-data-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cryptodataapi-com-market-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Crypto Data Market Data API
  description: 'Real-time crypto market intelligence API. Built for AI agents: gasless USDC payments via x402 protocol, one-call onboarding, and 180+ endpoints for prices, derivatives, funding, and sentiment.'
  version: '2026-10-28'
servers:
- url: https://cryptodataapi.com
tags:
- name: Market Data
  description: Spot klines, tickers, prices, and exchange info.
paths:
  /api/v1/market-data/klines:
    get:
      tags:
      - Market Data
      summary: Get Klines
      description: OHLCV klines from Binance Spot.
      operationId: get_klines_api_v1_market_data_klines_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: symbol
        in: query
        required: false
        schema:
          type: string
          default: BTCUSDT
          title: Symbol
      - name: interval
        in: query
        required: false
        schema:
          type: string
          default: 1d
          title: Interval
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 200
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KlineResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/market-data/ticker/24hr:
    get:
      tags:
      - Market Data
      summary: Get Ticker 24Hr
      description: 24hr ticker stats from Binance Spot.
      operationId: get_ticker_24hr_api_v1_market_data_ticker_24hr_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: symbol
        in: query
        required: false
        schema:
          type: string
          default: BTCUSDT
          title: Symbol
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TickerResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/market-data/ticker/price:
    get:
      tags:
      - Market Data
      summary: Get Ticker Price
      description: Current price from Binance Spot.
      operationId: get_ticker_price_api_v1_market_data_ticker_price_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: symbol
        in: query
        required: false
        schema:
          type: string
          default: BTCUSDT
          title: Symbol
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/market-data/btc-price-history:
    get:
      tags:
      - Market Data
      summary: Btc Price History
      description: BTC price history with 200D MA.
      operationId: btc_price_history_api_v1_market_data_btc_price_history_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 730
          minimum: 1
          default: 365
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BtcPriceHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/market-data/volume-history:
    get:
      tags:
      - Market Data
      summary: Volume History
      description: Daily volume + buy ratio, derived from our own kline + taker archives.
      operationId: volume_history_api_v1_market_data_volume_history_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 90
          minimum: 1
          default: 30
          title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/market-data/short-term-price:
    get:
      tags:
      - Market Data
      summary: Short Term Price
      description: Short-term BTC price momentum metrics (on-demand computation).
      operationId: short_term_price_api_v1_market_data_short_term_price_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShortTermPriceResponse'
      security:
      - APIKeyHeader: []
  /api/v1/market-data/exchange-info:
    get:
      tags:
      - Market Data
      summary: Get Exchange Info
      description: Exchange pair info from Binance Spot.
      operationId: get_exchange_info_api_v1_market_data_exchange_info_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: symbol
        in: query
        required: false
        schema:
          type: string
          default: BTCUSDT
          title: Symbol
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExchangeInfoResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PriceResponse:
      properties:
        symbol:
          type: string
          title: Symbol
        price:
          type: number
          title: Price
      type: object
      required:
      - symbol
      - price
      title: PriceResponse
      description: Current price.
    BtcPriceHistoryEntry:
      properties:
        date:
          type: string
          title: Date
        price:
          type: number
          title: Price
        ma200:
          title: Ma200
          type:
          - number
          - 'null'
      type: object
      required:
      - date
      - price
      title: BtcPriceHistoryEntry
      description: Single entry in BTC price history.
    ExchangeInfoResponse:
      properties:
        symbol:
          type: string
          title: Symbol
          default: ''
        status:
          type: string
          title: Status
          default: ''
        base_asset:
          type: string
          title: Base Asset
          default: ''
        quote_asset:
          type: string
          title: Quote Asset
          default: ''
        base_precision:
          type: integer
          title: Base Precision
          default: 0
        quote_precision:
          type: integer
          title: Quote Precision
          default: 0
      type: object
      title: ExchangeInfoResponse
      description: Exchange pair info.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    VolumeHistoryResponse:
      properties:
        history:
          items:
            additionalProperties: true
            type: object
          type: array
          title: History
      type: object
      required:
      - history
      title: VolumeHistoryResponse
      description: Daily volume history derived from the local kline archive.
    TickerResponse:
      properties:
        symbol:
          type: string
          title: Symbol
        price_change:
          type: number
          title: Price Change
          default: 0
        price_change_pct:
          type: number
          title: Price Change Pct
          default: 0
        weighted_avg_price:
          type: number
          title: Weighted Avg Price
          default: 0
        last_price:
          type: number
          title: Last Price
          default: 0
        volume:
          type: number
          title: Volume
          default: 0
        quote_volume:
          type: number
          title: Quote Volume
          default: 0
        open_price:
          type: number
          title: Open Price
          default: 0
        high_price:
          type: number
          title: High Price
          default: 0
        low_price:
          type: number
          title: Low Price
          default: 0
        trades:
          type: integer
          title: Trades
          default: 0
      type: object
      required:
      - symbol
      title: TickerResponse
      description: 24hr ticker stats.
    BtcPriceHistoryResponse:
      properties:
        history:
          items:
            $ref: '#/components/schemas/BtcPriceHistoryEntry'
          type: array
          title: History
      type: object
      required:
      - history
      title: BtcPriceHistoryResponse
      description: BTC price history with 200D MA.
    ShortTermPriceResponse:
      properties:
        symbol:
          type: string
          title: Symbol
          default: BTC
        current_price:
          type: number
          title: Current Price
        ma_20:
          type: number
          title: Ma 20
        pct_from_20ma:
          type: number
          title: Pct From 20Ma
        roc_5d_pct:
          type: number
          title: Roc 5D Pct
        consecutive_green_4h:
          type: integer
          title: Consecutive Green 4H
        consecutive_red_4h:
          type: integer
          title: Consecutive Red 4H
        rsi_14:
          title: Rsi 14
          type:
          - number
          - 'null'
        price_change_1h_pct:
          title: Price Change 1H Pct
          type:
          - number
          - 'null'
        price_change_4h_pct:
          title: Price Change 4H Pct
          type:
          - number
          - 'null'
        price_change_24h_pct:
          title: Price Change 24H Pct
          type:
          - number
          - 'null'
        momentum_score:
          type: integer
          title: Momentum Score
      type: object
      required:
      - current_price
      - ma_20
      - pct_from_20ma
      - roc_5d_pct
      - consecutive_green_4h
      - consecutive_red_4h
      - momentum_score
      title: ShortTermPriceResponse
      description: Short-term BTC price momentum metrics.
    KlineResponse:
      properties:
        symbol:
          type: string
          title: Symbol
        interval:
          type: string
          title: Interval
        klines:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Klines
        count:
          type: integer
          title: Count
      type: object
      required:
      - symbol
      - interval
      - klines
      - count
      title: KlineResponse
      description: OHLCV kline data.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key