# Bitstamp

> Bitstamp: what the collector reads, how to connect it, its permissions, its certification by Atlantic Agentic Labs and its security posture.

Needs onboarding Needs a partner agreement with the vendor, or a client's environment, before it can be built or certified.

Reads a Bitstamp account’s balances and activity, so reconciliation and reporting agents can check them against the books. It is read-only. It reads in place, in your deployment; only ids, hashes and counts reach LightHouse.

It is built from Bitstamp’s public API reference and tested against invented responses; it has not been run against a Bitstamp account (CERTIFICATION.md).

## At a glance

| Collector                   | Bitstamp, version `0.1.1`                                                                    |
| --------------------------- | -------------------------------------------------------------------------------------------- |
| Reads                       | Bitstamp: Bitstamp HTTP API v2 ([the vendor's documentation](https://www.bitstamp.net/api/)) |
| Family                      | Finance                                                                                      |
| Kind                        | Exchange                                                                                     |
| Ways to connect             | Access token                                                                                 |
| Scopes                      | - Read: `Account balance`, `User transactions`                                               |
| Read only                   | Yes, except: \[object Object]; \[object Object]                                              |
| Vendor's API can move money | Yes                                                                                          |
| Personal data               | Financial                                                                                    |
| Hosts it may contact        | `www.bitstamp.net`, `{host}`                                                                 |
| Vendor API versions         | HTTP API v2 (/api/v2), authentication version 2                                              |
| Lowest engine version       | `0.47.1`                                                                                     |

## What it reads

- **Balances:** total, available and reserved per currency; a currency whose amounts are all zero is not written. One record per currency, rewritten only when it changes and removed when it disappears.
- **User transactions:** trades, deposits, withdrawals and sub-account transfers, each with its amounts per currency, the rate, the fee and the order id.
- Transactions are read oldest first from the last transaction id, paged by offset; the first read goes back `history_days` (default 90).

It does not read open orders, crypto transaction details, earn or sub-accounts’ own balances.

## How to connect

1. In Bitstamp, create an API key with only the **Account balance** and **User transactions** permissions, restricted to your deployment’s egress IP addresses, and activate it.
2. In LightHouse, open **Setup and admin, Connectors** and choose **Bitstamp**.
3. Paste the API key and secret, and confirm the key is view-only. Your browser seals them to your deployment; LightHouse never sees them.

The credential is JSON in the variable the source names (`AAL_BITSTAMP` by default): `api_key`, `api_secret`, `access` (`read_only`), and `view_only_confirmed`.

## Permissions

This collector is **read-only** in what it does.

- **Key check: none.** Bitstamp does not state what a key can do, so this collector cannot check it. A key that can trade, pay, transfer or withdraw passes every check the code makes. Your confirmation that the key is read-only (`view_only_confirmed`) is the only gate: nothing is read until you give it. Make the key with only the read permissions in Bitstamp.
- **The credential must say it is read-only:** it names its access level, `access: read_only`. A credential without one, or with any other level, is refused before any request is sent, as is one whose `scopes` or `permissions` name anything but a read (trading, withdrawing, transferring, administering, or any permission the collector does not recognise as a read).
- **Only read endpoints:** the collector holds a list of the Bitstamp endpoints it reads; a request to any other is refused before it is sent.
- **Not stated by Bitstamp:** Bitstamp has no endpoint that answers a key’s permissions, so the collector cannot refuse a key that can trade or withdraw. It reads nothing until you confirm the key is view-only (`view_only_confirmed`); until then the health check reports it unverified.
- **What it sends:** exactly two signed `POST` calls, both reads: `account_balances` and `user_transactions` (the manifest lists them under `read_operations`; the read-only test fails on any other call). Nothing is placed, cancelled or withdrawn.
- **Signing:** each request carries X-Auth-Signature, the hex HMAC-SHA256 of `BITSTAMP <key>`, method, host, path, query, content type, a UUID nonce, a millisecond timestamp, `v2` and the body. The secret never leaves your store.
- **Hosts:** only `www.bitstamp.net`, over https; redirects are never followed.

## Limits

- Up to 1,000 transactions a page.
- Requests are paced and retried on 429 and 5xx with back-off.
- Fees are shown as Bitstamp states them, without a currency, because the transaction does not name one.
- Amounts are exact decimals; a number that arrives as a float is refused.
- Each record is keyed by Bitstamp’s own id, so one read twice is still one record.

## Data handling

- Records hold financial data: balances, trades and transfers. Documents carry the `label` you give the source (default `confidential`).
- Content is read in place, in your deployment. LightHouse receives ids, hashes and counts, never the records, and never opens the credential.
- Errors carry a status and fixed text, never a provider’s body.
- The data is audit-ready for your own agents; nothing here is itself a certification against any standard.

## Troubleshooting

| What you see                                                    | What it means                                                                                   | What to do                                            |
| --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| `Bitstamp does not state a key's permissions; ...`              | The key is not yet confirmed view-only                                                          | Confirm it after checking its permissions in Bitstamp |
| `Bitstamp answered HTTP 401 (the key or signature was refused)` | An API0001 to API0014 code, or HTTP 403: the key, signature, nonce, timestamp or IP was refused | Check the key, secret and the key’s IP restriction    |
| `Bitstamp refused /api/v2/...: API0020`                         | Bitstamp reported another error (its code is shown)                                             | Try again later                                       |

## Certification

Each entry is a run by Atlantic Agentic Labs, newest first. Only a run against the vendor’s sandbox or a client environment certifies a collector; a certification lasts six months, or less if the vendor publishes an API version the collector does not list. See [How collectors are certified](/collectors/certification/).

| Date             | Collector | Engine   | Vendor API                                      | Method                              | Expires        |
| ---------------- | --------- | -------- | ----------------------------------------------- | ----------------------------------- | -------------- |
| 21 November 2026 | `0.1.0`   | `0.47.1` | HTTP API v2 (/api/v2), authentication version 2 | Fixtures only: built, not certified | Not applicable |

## Security posture

From the collector’s last scan on the default branch. What each line means, and what blocks a release: [Security posture](/collectors/security/).

| Last scanned               | 25 November 2026                                                                                                                                                                                                      |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Critical findings          | 0                                                                                                                                                                                                                     |
| High findings              | 0                                                                                                                                                                                                                     |
| Medium findings            | 0                                                                                                                                                                                                                     |
| Low findings               | 0                                                                                                                                                                                                                     |
| Info findings              | 0                                                                                                                                                                                                                     |
| Release blocked            | No                                                                                                                                                                                                                    |
| Network allow-list check   | Pass                                                                                                                                                                                                                  |
| Read-only behavioural test | Pass                                                                                                                                                                                                                  |
| SBOM (CycloneDX)           | Produced                                                                                                                                                                                                              |
| Dependency licences        | Pass                                                                                                                                                                                                                  |
| Scanners                   | bandit 1.9.4, semgrep 1.181.1, pip-audit 2.10.1, osv-scanner 2.7.0, cyclonedx-py 7.5.0, pip-licenses 5.5.5, gitleaks repository job aal-secrets, hosts_check tools/hosts_check.py, read-only test pytest -m read_only |

Source: https://docs.atlanticagenticlabs.com/collectors/catalogue/bitstamp/
