Bitstamp Market Data API

Public market data endpoints (no authentication required)

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Market & Financial Data AE-230.20

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

2 of 7 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /api/v2/ticker/{currency_pair}/ Get the ticker for a currency pair · Get ticker data #
Ask an LLM
“What is the last price, bid and ask for BTC/USD?”
“How much volume has BTC/USD traded in the last 24 hours?”
Tell an agent
Get the ticker for {currency_pair}.
Show last price and volume for {currency_pair}.
GET /api/v2/ticker_hour/{currency_pair}/ Get hourly ticker data for a currency pair · Get hourly ticker data #
Ask an LLM
“What were the hourly price changes for ETH/USD?”
“Can I get hourly ticker data for a currency pair?”
Tell an agent
Get hourly ticker data for {currency_pair}.
Show hourly price and volume for {currency_pair}.
GET /api/v2/order_book/{currency_pair}/ Get the order book for a currency pair · Get order book #
Ask an LLM
“What are the best bid and ask prices for BTC/USD?”
“Can I group orders at the same price in the order book?”
Tell an agent
Get the order book for {currency_pair}.
Show the {currency_pair} order book grouped by price {group}.
GET /api/v2/transactions/{currency_pair}/ Get recent trades for a currency pair · Get recent transactions #
Ask an LLM
“What are the most recent trades for ETH/USD?”
“Can I see trades from the last hour for BTC/USD?”
Tell an agent
Get recent trades for {currency_pair}.
Show {currency_pair} trades from the last {time}.
GET /api/v2/trading-pairs-info/ List all trading pairs with details · Get trading pairs info conformant #
Ask an LLM
“Which trading pairs are available and what are their minimum order sizes?”
“What decimal precision does each trading pair use?”
Tell an agent
List all trading pairs with their details.
Show the minimum order size and precision for every pair.
GET /api/v2/ohlc/{currency_pair}/ Get OHLC candlestick data for a currency pair · Get OHLC data #
Ask an LLM
“What were the daily open, high, low and close prices for BTC/USD?”
“Can I get candlestick data for a specific time range?”
Tell an agent
Get {step}-second OHLC data for {currency_pair}.
Show {currency_pair} candles from {start} to {end}, {step} seconds apart.
GET /api/v2/currencies/ List available currencies · Get available currencies conformant #
Ask an LLM
“Which currencies can I trade on Bitstamp?”
“What currency codes are supported?”
Tell an agent
List the available currencies.
Show every currency code I can trade.

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/bitstamp:bitstamp-market-data-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

bitstamp-market-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bitstamp Market Data API
  description: Bitstamp cryptocurrency exchange REST API providing market data including tickers, order books, transactions, OHLC data, and trading pair information.
  version: 2.0.0
  x-jentic-source-url: https://www.bitstamp.net/api/
servers:
- url: https://www.bitstamp.net
  description: Bitstamp production server
security:
- {}
tags:
- name: Market Data
  description: Public market data endpoints (no authentication required)
paths:
  /api/v2/ticker/{currency_pair}/:
    get:
      operationId: getticker
      summary: Get ticker data
      description: Returns ticker data for the specified currency pair including last price, bid, ask, volume, and 24-hour statistics.
      tags:
      - Market Data
      parameters:
      - name: currency_pair
        in: path
        required: true
        description: Currency pair symbol (e.g., btcusd, ethusd, btceur)
        schema:
          type: string
      responses:
        '200':
          description: Ticker data retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticker'
        '400':
          description: Bad request - invalid currency pair
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/ticker_hour/{currency_pair}/:
    get:
      operationId: gethourlyticker
      summary: Get hourly ticker data
      description: Returns hourly ticker data for the specified currency pair.
      tags:
      - Market Data
      parameters:
      - name: currency_pair
        in: path
        required: true
        description: Currency pair symbol (e.g., btcusd, ethusd)
        schema:
          type: string
      responses:
        '200':
          description: Hourly ticker data retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticker'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/order_book/{currency_pair}/:
    get:
      operationId: getorderbook
      summary: Get order book
      description: Returns a JSON dictionary with bids and asks lists of open orders for the specified currency pair.
      tags:
      - Market Data
      parameters:
      - name: currency_pair
        in: path
        required: true
        description: Currency pair symbol (e.g., btcusd, ethusd)
        schema:
          type: string
      - name: group
        in: query
        required: false
        description: Group orders with the same price (0 = disabled, 1 = enabled, 2 = orders grouped by order price with additional decimal places)
        schema:
          type: integer
          enum:
          - 0
          - 1
          - 2
          default: 1
      responses:
        '200':
          description: Order book data retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderBook'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/transactions/{currency_pair}/:
    get:
      operationId: gettransactions
      summary: Get recent transactions
      description: Returns a descending list of recent transactions for the specified currency pair.
      tags:
      - Market Data
      parameters:
      - name: currency_pair
        in: path
        required: true
        description: Currency pair symbol (e.g., btcusd, ethusd)
        schema:
          type: string
      - name: time
        in: query
        required: false
        description: Time interval from which to get transactions (minute, hour, day)
        schema:
          type: string
          enum:
          - minute
          - hour
          - day
          default: hour
      responses:
        '200':
          description: Transaction data retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Transaction'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/trading-pairs-info/:
    get:
      operationId: gettradingpairsinfo
      summary: Get trading pairs info
      description: Returns a list of all available trading pairs with their details including minimum order size and decimal precision.
      tags:
      - Market Data
      responses:
        '200':
          description: Trading pairs info retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TradingPairInfo'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/ohlc/{currency_pair}/:
    get:
      operationId: getohlcdata
      summary: Get OHLC data
      description: Returns OHLC (Open, High, Low, Close) candlestick data for the specified currency pair.
      tags:
      - Market Data
      parameters:
      - name: currency_pair
        in: path
        required: true
        description: Currency pair symbol (e.g., btcusd, ethusd)
        schema:
          type: string
      - name: step
        in: query
        required: true
        description: Timeframe in seconds (60, 180, 300, 900, 1800, 3600, 7200, 14400, 21600, 43200, 86400, 259200)
        schema:
          type: integer
          enum:
          - 60
          - 180
          - 300
          - 900
          - 1800
          - 3600
          - 7200
          - 14400
          - 21600
          - 43200
          - 86400
          - 259200
      - name: limit
        in: query
        required: false
        description: Limit OHLC results (minimum 1, maximum 1000)
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: start
        in: query
        required: false
        description: Unix timestamp from when OHLC data will be started
        schema:
          type: integer
      - name: end
        in: query
        required: false
        description: Unix timestamp to when OHLC data will be shown
        schema:
          type: integer
      - name: exclude_current_candle
        in: query
        required: false
        description: Exclude the current (not yet closed) candle
        schema:
          type: boolean
      responses:
        '200':
          description: OHLC data retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OhlcResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/currencies/:
    get:
      operationId: getcurrencies
      summary: Get available currencies
      description: Returns a list of available currencies.
      tags:
      - Market Data
      responses:
        '200':
          description: Currencies list retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      description: Currency name
                    symbol:
                      type: string
                      description: Currency symbol code
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Transaction:
      type: object
      properties:
        date:
          type: string
          description: Unix timestamp
        tid:
          type: string
          description: Transaction ID
        price:
          type: string
          description: Transaction price
        amount:
          type: string
          description: Transaction amount
        type:
          type: string
          description: Trade type (0 = buy, 1 = sell)
    Ticker:
      type: object
      properties:
        timestamp:
          type: string
          description: Unix timestamp
        open:
          type: string
          description: First price of the day
        high:
          type: string
          description: Highest price of the day
        low:
          type: string
          description: Lowest price of the day
        last:
          type: string
          description: Last BTC price
        volume:
          type: string
          description: Volume-weighted average of all prices of the day
        vwap:
          type: string
          description: Volume weighted average price
        bid:
          type: string
          description: Highest buy order
        ask:
          type: string
          description: Lowest sell order
        side:
          type: string
          description: Side of the last trade (0 = buy, 1 = sell)
        open_24:
          type: string
          description: Price 24 hours ago
        percent_change_24:
          type: string
          description: Percent change in last 24 hours
        market_type:
          type: string
          description: Market type (e.g., SPOT)
    OhlcEntry:
      type: object
      properties:
        timestamp:
          type: string
          description: Unix timestamp
        open:
          type: string
          description: Opening price
        high:
          type: string
          description: Highest price
        low:
          type: string
          description: Lowest price
        close:
          type: string
          description: Closing price
        volume:
          type: string
          description: Volume traded
    TradingPairInfo:
      type: object
      properties:
        name:
          type: string
          description: Trading pair symbol (e.g., BTC/USD)
        url_symbol:
          type: string
          description: URL-friendly pair identifier (e.g., btcusd)
        base_decimals:
          type: integer
          description: Decimal precision for base asset
        counter_decimals:
          type: integer
          description: Decimal precision for counter/quote asset
        instant_order_counter_decimals:
          type: integer
          description: Decimal precision for instant orders
        minimum_order:
          type: string
          description: Minimum order size with currency
        trading:
          type: string
          description: Trading status (Enabled/Disabled)
        instant_and_market_orders:
          type: string
          description: Instant and market orders availability (Enabled/Disabled)
        description:
          type: string
          description: Full pair name description
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          description: Error status
        reason:
          type: string
          description: Error reason
        code:
          type: string
          description: Error code
    OrderBook:
      type: object
      properties:
        timestamp:
          type: string
          description: Unix timestamp
        microtimestamp:
          type: string
          description: Microsecond precision timestamp
        bids:
          type: array
          description: List of buy orders [price, amount]
          items:
            type: array
            items:
              type: string
        asks:
          type: array
          description: List of sell orders [price, amount]
          items:
            type: array
            items:
              type: string
    OhlcResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            pair:
              type: string
              description: Trading pair symbol
            ohlc:
              type: array
              items:
                $ref: '#/components/schemas/OhlcEntry'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Auth
      description: Bitstamp API key for authenticated endpoints
    apiSignature:
      type: apiKey
      in: header
      name: X-Auth-Signature
      description: HMAC-SHA256 request signature