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"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
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
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in Bitstamp
Implement the four adapter methods (
account,positions,submit_market_orderand 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
- Kraken API Built into AlgoGPLong-running, US-available crypto exchange with granular API key permissions and public OHLC data.
- Coinbase Advanced Trade API GuideCoinbase’s trading API for spot and eligible derivatives, authenticated with CDP keys that sign a JWT per request.
- Gemini API GuideNew York-regulated crypto exchange with REST and WebSocket APIs, HMAC-SHA384 payload signing and a full sandbox.
- Bitfinex API GuideLong-running crypto exchange known for margin funding and deep BTC books; v2 REST and WebSocket APIs with HMAC-SHA384.
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.