Guide
BrokerMarket dataCrypto API key

Bitstamp API guide

Bitstamp is one of the oldest continuously operating crypto exchanges and a common regulated venue for EUR and USD pairs.

Last verified · Also known as Bitstamp API, Bitstamp by Robinhood

Quick answer

Bitstamp, acquired by Robinhood in 2025, has a v2 REST API with public tickers, order books and OHLC data and private endpoints authenticated with its v2 HMAC-SHA256 scheme (X-Auth, X-Auth-Signature, X-Auth-Nonce, X-Auth-Timestamp). It is regulated in the EU, UK and many US states.

Bitstamp API at a glance

Pricing
Free API; trading fees apply
Availability
EU, UK, US (most states) and more
Paper trading
No sandbox
Integration type
REST + API key
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Auth
v2 HMAC-SHA256 with nonce and timestamp headers
Host
https://www.bitstamp.net/api/v2/
Owner
Robinhood (since 2025)

Public market data from Bitstamp

curl -s "https://www.bitstamp.net/api/v2/ohlc/btcusd/?step=3600&limit=200"
Hourly BTC/USD OHLC (keyless; step in seconds).

Save the bars as CSV and replay them with the exported python backtest.py --csv bars.csv, or use CCXT to read the same candles in one line of Python.

What to know before automating Bitstamp

  • New keys must be activated from a confirmation email before use.
  • Pairs are lower-case without separators (btcusd, etheur).

Build a Bitstamp strategy with AlgoGP

AlgoGP does not connect to Bitstamp natively yet. Bitstamp uses plain HTTPS with an API key, so it is a good candidate for a native adapter; it is not built in yet.

  1. 1

    Design and backtest in AlgoGP

    Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.

  2. 2

    Export the Python project

    Every project exports strategy.py, market_data.py, brokers.py and live.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format.

  3. 3

    Plug in Bitstamp

    Implement the four adapter methods (account, positions, submit_market_order and a candle fetcher) with Bitstamp’s SDK, or keep a built-in platform for paper trading and add Bitstamp when you go live.

Built-in brokers for the same markets: Alpaca, Binance, Kraken, Bybit.

Bitstamp API: frequently asked questions

Can I use the Bitstamp API in the US?

Yes, in most states where Bitstamp USA is licensed.

Design and backtest your Bitstamp strategy first

AlgoGP turns an idea into Python and tests it on years of history before you connect it to Bitstamp. The exported code keeps the broker behind four small adapter methods.

  • AI copilot writes and revises the rules
  • Backtests with realistic costs
  • Exported Python ready to wire to Bitstamp

Free plan, no card required.

Bitstamp alternatives

Frameworks that connect to Bitstamp

Independent guide. AlgoGP is not affiliated with Bitstamp. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.

Build a strategy