Connect Gemini to a trading bot
Crypto · Paper or real money · facts last checked Oct 13, 2026
Create a Gemini API key for one account with the Trader role only. The connection itself is coming soon.
Coming soon: Tallimark can't connect to Gemini yet. This guide gets your keys ready for when it can.
Keep these OFF: they let a key move money out
- Fund Manager: Never add it, because it is the role that can withdraw crypto.
Before you start(2)
New accounts can create API keys only after Gemini's verification is complete.
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because seen only in a search excerpt of the broker's page (the page blocked automated reading); read it by hand.
Source: Gemini support: unable to create an API key (opens in a new tab) (checked Oct 11, 2026)
Gemini lists all 50 US states, DC and Puerto Rico as served.
Source: Gemini: areas of availability (opens in a new tab) (checked Oct 11, 2026)
Practise first, with no real money(2)
Gemini runs a separate sandbox exchange (exchange.sandbox.gemini.com) with its own account and test funds.
Source: Gemini docs: sandbox (opens in a new tab) (checked Oct 11, 2026)
Create sandbox keys the same way, on the sandbox site.
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because the broker shows this screen only after you sign in, and no public page describes it.
Source: Gemini docs: sandbox (opens in a new tab) (checked Oct 11, 2026)
Steps to get ready
Sign in to the exchange and open Settings, then API (exchange.gemini.com/settings/api).
Source: Gemini docs: API keys (opens in a new tab) (checked Oct 11, 2026) · Gemini docs: REST API (opens in a new tab) (checked Oct 11, 2026)
Choose Create a new API Key, and pick your Primary account (an account-level key), not Master.
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because seen only in a search excerpt of the broker's page (the page blocked automated reading); read it by hand.
Source: Gemini support: how to create an API key (opens in a new tab) (checked Oct 11, 2026)
Keep the Trader role only (Gemini's default). Never add Fund Manager, and never use Administrator, which exists only on Master keys.
Source: Gemini docs: roles (opens in a new tab) (checked Oct 11, 2026)
Add Trusted IPs if the Connections page shows server addresses; Gemini asks you to choose Trusted IPs or Unrestricted for every new key.
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because seen only in a search excerpt of the broker's page (the page blocked automated reading); read it by hand.
Source: Gemini support: Trusted IPs (opens in a new tab) (checked Oct 11, 2026)
Copy the API key and API secret; assume the secret is shown only once.
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because the broker shows this screen only after you sign in, and no public page describes it.
Source: Gemini docs: API keys (opens in a new tab) (checked Oct 11, 2026)
Permissions at Gemini
Turn on
- Trader
Leave off
- Fund Manager
- Administrator (Master keys only)
- Requires Heartbeat
Why each setting
Trader (turn on): Lets the bot place and cancel orders and read balances.
Source: Gemini docs: roles (opens in a new tab) (checked Oct 11, 2026) · Gemini docs: orders (opens in a new tab) (checked Oct 11, 2026)
Fund Manager (leave off): Never add it, because it is the role that can withdraw crypto.
Source: Gemini docs: roles (opens in a new tab) (checked Oct 11, 2026)
Administrator (Master keys only) (leave off): Use an account key, not a Master key: a Master key reaches every account you have.
Source: Gemini docs: roles (opens in a new tab) (checked Oct 11, 2026)
Requires Heartbeat (leave off): Leave it off unless the platform asks for it: it cancels open orders after 30 seconds without a request.
Source: Gemini docs: API keys (opens in a new tab) (checked Oct 11, 2026)
IP allow-list
Gemini supports Trusted IPs per key. If the Connections page shows Tallimark's server addresses, add every one of them to the key's IP allow-list. If it shows none, leave the allow-list empty: a list without the server's addresses makes every call fail.
Source: Gemini support: Trusted IPs (opens in a new tab) (checked Oct 11, 2026)
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because seen only in a search excerpt of the broker's page (the page blocked automated reading); read it by hand.
Coming soon: no Gemini connection exists yet. Account keys start with account- (Master keys with master-), so the connection will refuse Master keys.
Does the connection expire? Only after a long time unused
A key unused for 180 days expires.
Not yet checked against the broker's own screen: names may differ slightly.
Why it isn't checked
Because seen only in a search excerpt of the broker's page (the page blocked automated reading); read it by hand.
Source: Gemini support: unable to create an API key (opens in a new tab) (checked Oct 11, 2026)
What Tallimark does: When the connection ships: a running bot keeps the key in use; if Gemini refuses it, bots using it pause and you're asked for a new key.
If something goes wrong(5)
- InvalidSignature
- Why: The API secret was pasted wrongly.
- Fix: Paste the secret again, or make a new key.
Source: Gemini docs: error codes (opens in a new tab) (checked Oct 11, 2026)
- InvalidApiKey (403)
- Why: The key doesn't exist or is disabled.
- Fix: Create a new key.
Source: Gemini docs: error codes (opens in a new tab) (checked Oct 11, 2026) · Gemini docs: API keys (opens in a new tab) (checked Oct 11, 2026)
- MissingRole
- Why: The key lacks the Trader role.
- Fix: Create a new key with the Trader role.
Source: Gemini docs: error codes (opens in a new tab) (checked Oct 11, 2026) · Gemini docs: roles (opens in a new tab) (checked Oct 11, 2026)
- InsufficientFunds
- Why: Not enough balance for the order.
- Fix: Lower the trade size or add funds yourself.
Source: Gemini docs: error codes (opens in a new tab) (checked Oct 11, 2026)
- RateLimit / 429
- Why: More than 600 private requests a minute.
- Fix: Run fewer bots on one key or slower intervals.
Source: Gemini docs: rate limits (opens in a new tab) (checked Oct 11, 2026)
All sources (last checked Oct 13, 2026)
- Gemini support: unable to create an API key (opens in a new tab) · checked Oct 11, 2026
- Gemini: areas of availability (opens in a new tab) · checked Oct 11, 2026
- Gemini docs: sandbox (opens in a new tab) · checked Oct 11, 2026
- Gemini docs: API keys (opens in a new tab) · checked Oct 11, 2026
- Gemini docs: REST API (opens in a new tab) · checked Oct 11, 2026
- Gemini support: how to create an API key (opens in a new tab) · checked Oct 11, 2026
- Gemini docs: roles (opens in a new tab) · checked Oct 11, 2026
- Gemini support: Trusted IPs (opens in a new tab) · checked Oct 11, 2026
- Gemini docs: orders (opens in a new tab) · checked Oct 11, 2026
- Gemini docs: error codes (opens in a new tab) · checked Oct 11, 2026
- Gemini docs: rate limits (opens in a new tab) · checked Oct 11, 2026
- Gemini: home page (opens in a new tab) · checked Oct 13, 2026
Broker screens change often: if a button has moved, follow Gemini's own page.
Ready to build a bot?
Other brokers and exchanges
- AlpacaStocks, ETFs, crypto · Paper or real money
- Coinbase Advanced TradeCrypto · Real money
- KrakenCrypto · Real money
- TradierStocks, ETFs · Paper or real money
- WebullStocks, ETFs, crypto · Paper or real money
- moomooStocks, ETFs · Paper or real money
- TradeStationStocks, ETFs, options, futures · Paper or real money
- Charles SchwabStocks, ETFs · Real money