# Bullish

> Bullish: 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 Bullish 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 Bullish’s public API reference and tested against invented responses; it has not been run against a Bullish account (CERTIFICATION.md).

## At a glance

| Collector                   | Bullish, version `0.1.1`                                                                                 |
| --------------------------- | -------------------------------------------------------------------------------------------------------- |
| Reads                       | Bullish: Bullish Exchange trading API ([the vendor's documentation](https://docs.exchange.bullish.com/)) |
| Family                      | Finance                                                                                                  |
| Kind                        | Exchange                                                                                                 |
| Ways to connect             | Access token                                                                                             |
| Scopes                      | - Read: `read-only HMAC API key`                                                                         |
| Read only                   | Yes                                                                                                      |
| Vendor's API can move money | Yes                                                                                                      |
| Personal data               | Financial                                                                                                |
| Hosts it may contact        | `api.exchange.bullish.com`, `{host}`                                                                     |
| Vendor API versions         | Trading API v1 (/trading-api/v1)                                                                         |
| Lowest engine version       | `0.47.1`                                                                                                 |

## What it reads

- **Balances:** available, locked, borrowed and loaned quantity per asset in the trading account you name. One record per asset, rewritten only when it changes and removed when it disappears.
- **Trades:** symbol, side, price, quantity, quote amount, base and quote fees, taker flag and the order id.
- **Custody transactions:** deposits and withdrawals with quantity, fee, network, status, address and blockchain transaction id. Bullish documents that “the JWT generated using an HMAC API Key is only valid for trading endpoints” ([Bullish, Authentication](https://docs.exchange.bullish.com/rest/authentication)), and custody endpoints (`/wallets/*`) are not trading endpoints. Custody reads need an ECDSA API key, which this collector does not yet support, so with an HMAC key Bullish is expected to refuse the custody read and the pull stops there. This has not been run against a Bullish account.
- Trades and custody transactions are read from the last creation time, following Bullish’s next-page links; the first read goes back `history_days` (default 90).

It does not read open orders, AMM positions, borrowing history or other trading accounts.

## How to connect

1. In Bullish, create an HMAC API key, IP-whitelisted to your deployment’s egress addresses, and note the trading account’s id. Bullish has no read-only key setting (see Permissions).
2. In LightHouse, open **Setup and admin, Connectors** and choose **Bullish**.
3. Paste the public key, the secret and the trading account id, and confirm the key is read-only. Your browser seals them to your deployment; LightHouse never sees them.

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

## Permissions

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

- **Key check: none.** Bullish 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. Bullish offers no read-only key (see below).
- **Bullish keys cannot be made read-only.** Bullish’s key settings are the key type (HMAC or ECDSA), a name and an optional IP whitelist; it documents no read-only or permission setting ([Bullish, Authentication](https://docs.exchange.bullish.com/rest/authentication)). An HMAC key can therefore place and cancel orders. It cannot withdraw: Bullish requires withdrawals to be signed with an ECDSA key. The collector never sends an order, but it cannot stop a key that is able to.
- **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 Bullish endpoints it reads; a request to any other is refused before it is sent.
- **Not stated by Bullish:** Bullish 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 read-only (`view_only_confirmed`); until then the health check reports it unverified.
- **What it sends:** `GET` requests only: the HMAC login, then the reads with the session token as a Bearer token. Nothing is placed, cancelled or withdrawn.
- **Signing:** the login carries BX-PUBLIC-KEY, BX-TIMESTAMP, an increasing BX-NONCE and BX-SIGNATURE, the hex HMAC-SHA256 of timestamp, nonce, `GET` and the login path. The secret never leaves your store; the session token is kept in memory for the run only.
- **Hosts:** only `api.exchange.bullish.com`, over https; redirects are never followed.

## Limits

- One trading account per source.
- Pages of 100 rows.
- Requests are paced and retried on 429 and 5xx with back-off.
- Amounts are exact decimals; a number that arrives as a float is refused.
- Each record is keyed by Bullish’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                                                                                         |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
| `Bullish does not state a key's permissions; ...`            | The key is not yet confirmed read-only                                                                       | Confirm it after checking the key in Bullish                                                       |
| `Bullish answered HTTP 401` or `HTTP 403`                    | The login or a read was refused; on the custody read, an HMAC key’s session does not reach custody endpoints | Check the public key, secret and trading account id; custody needs an ECDSA key, not yet supported |
| `trading_account_id is the Bullish trading account's number` | The account id is missing or malformed                                                                       | Copy it from Bullish                                                                               |

## 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` | Trading API v1 (/trading-api/v1) | 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/bullish/
