Discover/Bitstamp API
live

Bitstamp APIbitstamp.net

Get live Bitstamp crypto prices, percent changes across 7 timeframes, and OHLCV candle data for any trading pair via two simple endpoints.

This API takes change requests — .
Endpoint health
verified 2h ago
get_candles
get_ticker
2/2 passing latest checkself-healing
Endpoints
2
Updated
3h ago

What is the Bitstamp API?

The Bitstamp API exposes 2 endpoints that return live market data for cryptocurrency trading pairs listed on Bitstamp. The get_ticker endpoint delivers the current price alongside percentage changes across seven timeframes — hourly, daily, weekly, monthly, yearly, year-to-date, and all-time. The get_candles endpoint returns configurable OHLCV candlestick data, letting you set both the candle resolution and how many periods to retrieve.

Try it
Trading pair identifier (e.g. btcusd, ethusd, xrpusd). Case-insensitive; slashes and hyphens are stripped.
api.parse.bot/scraper/b02428bb-a41a-4e87-a39f-f7c763aaa57f/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/b02428bb-a41a-4e87-a39f-f7c763aaa57f/get_ticker?pair=btcusd' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace bitstamp-net-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.


"""Walkthrough: Bitstamp SDK — real-time crypto market data."""
from parse_apis.bitstamp_net_api import Bitstamp, Ticker, InvalidInput

client = Bitstamp()

# Fetch the current BTC/USD ticker snapshot.
ticker = client.tickers.get(pair="btcusd")
print(f"BTC/USD price: {ticker.price}, 24h change: {ticker.percent_change_day}%")

# Get hourly candle data for BTC/USD (most recent 5 candles).
for candle in client.candle_datas.get(pair="btcusd", resolution="60", limit=5):
    print(f"  {candle.time} O:{candle.open} H:{candle.high} L:{candle.low} C:{candle.close} V:{candle.volume}")

# Constructible pattern: build a Ticker from its key and refresh it.
eth_ticker = client.ticker(pair="ethusd")
eth_ticker = eth_ticker.refresh()
print(f"ETH/USD price: {eth_ticker.price}, weekly change: {eth_ticker.percent_change_week}%")

# Typed error handling for invalid input.
try:
    client.candle_datas.get(pair="btcusd", resolution="invalid")
except InvalidInput as exc:
    print(f"Invalid input caught: {exc}")

print("exercised: tickers.get / candle_datas.get / ticker.refresh / InvalidInput")
All endpoints · 2 totalmissing one? ·

Retrieve the current price and percentage changes (hourly, daily, weekly, monthly, yearly, YTD, all-time) for a trading pair. Returns a single snapshot of the latest market state.

Input
ParamTypeDescription
pairstringTrading pair identifier (e.g. btcusd, ethusd, xrpusd). Case-insensitive; slashes and hyphens are stripped.
Response
{
  "type": "object",
  "fields": {
    "pair": "string",
    "price": "string (decimal)",
    "percent_change_all": "number",
    "percent_change_day": "number",
    "percent_change_ytd": "number",
    "percent_change_hour": "number",
    "percent_change_week": "number",
    "percent_change_year": "number",
    "percent_change_month": "number"
  },
  "sample": {
    "data": {
      "pair": "btcusd",
      "price": "62717.10",
      "percent_change_all": -1.666525295308044,
      "percent_change_day": -0.0394314224766121,
      "percent_change_ytd": -1.6101416521789058,
      "percent_change_hour": -0.028851426312500796,
      "percent_change_week": -0.0394314224766121,
      "percent_change_year": -1.6101416521789058,
      "percent_change_month": -0.06318045469212476
    },
    "status": "success"
  }
}

About the Bitstamp API

Ticker Data

The get_ticker endpoint accepts a pair parameter such as btcusd, ethusd, or xrpusd (case-insensitive; slashes and hyphens are stripped automatically). It returns a single snapshot containing the current price as a decimal string alongside nine percent-change fields: percent_change_hour, percent_change_day, percent_change_week, percent_change_month, percent_change_year, percent_change_ytd, and percent_change_all. This gives you a broad sweep of relative performance across every meaningful timeframe in one call.

Candle (OHLCV) Data

The get_candles endpoint returns an array of candle objects, each containing time, timestamp, open, high, low, close, and volume. You control the window through two parameters: resolution (candle width in minutes — e.g. 60 for 1-hour candles, 1440 for daily) and limit (number of candles to return). The returned time range is computed as now − (resolution × limit) to now, so you can back-calculate exactly which period each request covers. The resolution_minutes field in the response confirms the interval used.

Supported Pairs

Both endpoints operate on the same pair parameter format. Bitstamp officially lists dozens of pairs spanning BTC, ETH, XRP, LTC, and other assets against USD, EUR, GBP, and additional quote currencies. Any valid Bitstamp market identifier can be passed to either endpoint.

Reliability & maintenanceVerified

The Bitstamp API is a managed, monitored endpoint for bitstamp.net — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when bitstamp.net changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official bitstamp.net API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2h ago
Latest check
2/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Display a live BTC/USD price ticker with multi-timeframe percent changes on a portfolio dashboard.
  • Alert users when percent_change_day or percent_change_hour crosses a threshold for any watched pair.
  • Plot ETH/USD daily candlestick charts by requesting get_candles with resolution=1440.
  • Backfill short-term OHLCV history for a trading signal model using limit and resolution parameters.
  • Compare year-to-date and all-time performance across multiple pairs by calling get_ticker for each.
  • Calculate intraday volatility using high and low fields from 1-hour or 15-minute candles.
  • Monitor volume trends for XRP/USD by aggregating the volume field across consecutive candle responses.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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 Bitstamp have an official developer API?+
Yes. Bitstamp provides an official public REST API documented at https://www.bitstamp.net/api/. It covers order placement, account management, and market data. This Parse API focuses specifically on the market data surface — current prices and OHLCV candles — without requiring Bitstamp account credentials.
What timeframes does get_ticker cover for percent changes?+
get_ticker returns seven distinct percent-change fields in a single response: percent_change_hour, percent_change_day, percent_change_week, percent_change_month, percent_change_year, percent_change_ytd (year-to-date), and percent_change_all (all-time). These are pre-computed values from Bitstamp's market data — the endpoint does not accept a timeframe parameter.
Can I request candles for a specific historical date range rather than a rolling window?+
Not currently. The get_candles endpoint computes the window as now minus (resolution × limit), so you always get the most recent N candles. Arbitrary start/end timestamps are not supported. You can fork this API on Parse and revise it to add explicit date-range parameters if your use case requires historical back-testing over fixed periods.
Does the API expose order book depth or trade history?+
Not currently. The two endpoints cover the current price snapshot and OHLCV candle data only. Order book bids/asks, recent trade lists, and 24-hour volume summaries are not included. You can fork this API on Parse and revise it to add those endpoints if you need level-2 market data.
How fresh is the price data returned by get_ticker?+
The get_ticker response reflects Bitstamp's current market state at the time of the request — it is a point-in-time snapshot, not a streaming feed. For applications requiring sub-second updates, you would need to poll the endpoint repeatedly or use Bitstamp's official WebSocket API alongside this REST endpoint.
Page content last updated . Spec covers 2 endpoints from bitstamp.net.
Related APIs in Crypto Web3See all →
cex.io API
Access real-time cryptocurrency market data from CEX.io, including live prices, tickers, order books, trade history, and OHLCV candles for spot trading pairs. Monitor market movements and analyze trading opportunities with comprehensive pricing and order depth information across supported cryptocurrencies.
kraken.com API
Get live Kraken exchange market data including supported assets, trading pairs metadata, tickers, OHLCV candlesticks, and bid/ask spread history.
feed.bithumb.com API
Access real-time cryptocurrency market data from Bithumb Korea, including ticker prices in KRW and BTC, order books, transaction history, and candlestick charts. Stay informed with the latest notices, press releases, and trend reports directly from the exchange.
dukascopy.com API
Retrieve historical OHLCV candle data for forex, commodities, indices, stocks, bonds, ETFs, and crypto from Dukascopy's market data feed. Browse available instruments and fetch detailed price history to power trading analysis and backtesting strategies.
bloomberg.com API
Track stock indices, commodities, currencies, and bonds in real-time, while monitoring market movers and staying updated with the latest financial news. Get comprehensive Bloomberg market data to make informed investment decisions across multiple asset classes.
polygon.io API
Access real-time and historical market data for stocks, cryptocurrencies, forex, and commodities—including price aggregates, ticker details, and financial statements—all from a single platform. Get the latest market news, check trading status across exchanges, and retrieve comprehensive ticker information to power your investment analysis and trading decisions.
ca.finance.yahoo.com API
Access real-time financial data from Yahoo Finance, including cryptocurrency prices, stock quotes, and screened lists of stocks meeting custom criteria such as all-time highs, volume thresholds, and price filters.
barchart.com API
Monitor live stock quotes and commodity prices, analyze options chains with gamma exposure data, and access historical market time series to track top-performing stocks. Use real-time and historical data to make informed trading and investment decisions across equities and commodities.