Gemini
Reads a Gemini 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 Gemini’s public API reference and tested against invented responses; it has not been run against a Gemini account (CERTIFICATION.md).
At a glance
Section titled “At a glance”| Collector | Gemini, version 0.2.0 |
|---|---|
| Reads | Gemini: Gemini REST API (the vendor's documentation) |
| Family | Finance |
| Kind | Exchange |
| Ways to connect | Access token |
| Scopes |
|
| Read only | Yes, except: [object Object]; [object Object]; [object Object]; [object Object] |
| Vendor's API can move money | Yes |
| Personal data | Financial |
| Hosts it may contact | api.gemini.com, api.sandbox.gemini.com, {host} |
| Vendor API versions | REST API v1 (/v1) |
| Lowest engine version | 0.47.1 |
What it reads
Section titled “What it reads”- Balances: amount, available and available for withdrawal per currency and account type. One record per currency, rewritten only when it changes and removed when it disappears.
- Trades: for each symbol you name, price, amount, side, aggressor, fee and fee currency, and the order id.
- Transfers: deposits and withdrawals with currency, amount, status, method, destination, transaction hash and fee.
- Trades and transfers are read from the last cursor; the first read goes back
history_days(default 90).
It does not read open orders, derivatives, staking, custody or other accounts under a master key.
How to connect
Section titled “How to connect”- In Gemini, create an account-level API key with only the Auditor role.
- In LightHouse, open Setup and admin, Connectors and choose Gemini, and name the symbols to read trades for (Gemini answers trades per symbol).
- Paste the API key and secret. Your browser seals them to your deployment; LightHouse never sees them.
The credential is JSON in the variable the source names (AAL_GEMINI by
default): api_key, api_secret, and optionally environment (production or sandbox).
Permissions
Section titled “Permissions”This collector is read-only in what it does.
- What the credential says is checked first: a credential whose
accessis not read-only, or whosescopesorpermissionsname anything but a read (trading, withdrawing, transferring, administering, or any permission the collector does not recognise as a read), is refused before any request is sent. The permissions Gemini states for the key are then checked when you connect it and before every read. - Only read endpoints: the collector holds a list of the Gemini endpoints it reads; a request to any other is refused before it is sent.
- Refused by the code (an allow-list): Gemini states a key’s roles (
POST /v1/roles:isAuditor,isTrader,isFundManager, and for a master keyisAccountAdmin; Gemini REST API, Account Administration, Roles). Only the Auditor role is accepted; Gemini documents it as read-only and as not combinable with other roles (Gemini, Roles). Before every read, and in the health check, a key with any true role flag other thanisAuditor, whatever its name, is refused, naming the role, and so is a key whoseisAuditoris not true. - What it sends: exactly four signed
POSTcalls, all reads:roles,balances,mytradesandtransfers(the manifest lists them underread_operations; the read-only test fails on any other call). Nothing is placed, cancelled or withdrawn. - IP restriction: Gemini does not answer whether a key is pinned to addresses; the check tells you to pin it.
- Signing: each request carries the JSON payload (request path and an always-increasing nonce) base64-encoded in X-GEMINI-PAYLOAD and its hex HMAC-SHA384 under the secret in X-GEMINI-SIGNATURE. The secret never leaves your store.
- Hosts: only
api.gemini.com(orapi.sandbox.gemini.com), over https; redirects are never followed.
Limits
Section titled “Limits”- Trades only for the symbols you name.
- Up to 500 trades and 50 transfers a request; a full page moves the start past its newest row.
- 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 Gemini’s own id, so one read twice is still one record.
Data handling
Section titled “Data handling”- Records hold financial data: balances, trades and transfers. Documents
carry the
labelyou give the source (defaultconfidential). - 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
Section titled “Troubleshooting”| What you see | What it means | What to do |
|---|---|---|
Gemini: refused: the credential can trade (Trader role); make a view-only one |
The key holds the Trader (or Fund Manager, or Administrator, or another non-Auditor) role | Make a key with only the Auditor role |
Gemini: refused: the credential can act beyond reading (the key does not hold the Auditor role); ... |
Gemini reports no Auditor role on the key | Make a key with only the Auditor role |
Gemini answered HTTP 400 or HTTP 403 |
The key, signature or nonce was refused | Check the key and secret |
symbols are Gemini symbols, e.g. btcusd |
A symbol is malformed | Use Gemini’s symbol names |
Certification
Section titled “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.
| Date | Collector | Engine | Vendor API | Method | Expires |
|---|---|---|---|---|---|
| 21 November 2026 | 0.1.0 | 0.47.1 | REST API v1 (/v1) | Fixtures only: built, not certified | Not applicable |
Security posture
Section titled “Security posture”From the collector’s last scan on the default branch. What each line means, and what blocks a release: Security posture.
| 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 |