Skip to content

Connect Coinbase Advanced Trade to a trading bot

Crypto · Real money · facts last checked Oct 13, 2026

Connect your Coinbase account with a Coinbase Developer Platform (CDP) secret API key that can view and trade and can't move money out.

Tallimark connects to Coinbase Advanced Trade today. You paste the key into your own account; Tallimark never holds your money.

Keep these OFF: they let a key move money out

  • Transfer: Never turn this on, because with Transfer anyone holding the key could send all your crypto out of the account. The platform refuses keys that have it.
Before you start(3)
Practise first, with no real money(1)
  • Coinbase's Advanced Trade sandbox returns fixed, pre-written answers and has no real order matching, so it isn't paper trading. Practise with the platform's own paper trading instead, then connect with a small dedicated portfolio.

    Source: Coinbase docs: Advanced Trade sandbox (opens in a new tab) (checked Oct 11, 2026)

Steps

  1. Sign in at the Coinbase Developer Platform (portal.cdp.coinbase.com), open the API Keys tab and choose Secret API Keys, then Create API key.

    Source: Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026)

  2. Give the key a nickname, then expand API restrictions and Advanced Settings.

    Source: Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026)

  3. Under the signature algorithm choose ECDSA. Don't keep Ed25519: Coinbase's own page says it isn't supported for the Coinbase App APIs our connector uses.

    More detail

    Coinbase's general CDP page defaults to Ed25519, so this needs an explicit change.

    Source: Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: CDP authentication overview (opens in a new tab) (checked Oct 11, 2026)

  4. Set permissions to View and Trade only, and leave Transfer off. Scope the key to one portfolio (the key's portfolio field) holding only what the bot may trade: the key can touch nothing outside it.

    Source: Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: key permissions (View, Trade, Transfer) (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: Get API key permissions (opens in a new tab) (checked Oct 11, 2026)

  5. Creating a separate portfolio happens in Coinbase's Advanced Trade screen (Portfolios).

    Not yet checked against the broker's own screen: names may differ slightly.

    Why it isn't checked

    Because Coinbase's help article on portfolios blocked automated reading.

    Source: Coinbase help: multiple portfolios (opens in a new tab) (checked Oct 11, 2026)

  6. Optionally restrict the key to IP addresses in the IP allowlist section (see the IP advice below), then choose Create API key and download the key file.

    Source: Coinbase docs: key security (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026)

  7. Copy the key name and the private key now: assume the private key is shown only this 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; Coinbase's docs don't say whether it can be shown again.

    Source: Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026)

  8. In Tallimark, open Connections, choose Coinbase Advanced Trade, paste the key name (it looks like organizations/.../apiKeys/...) into "CDP API key name" and the whole private key, including the BEGIN and END lines, into "CDP API private key".

    Source: Coinbase docs: JWT authentication (opens in a new tab) (checked Oct 11, 2026)

Permissions at Coinbase Advanced Trade

Turn on

  • View
  • Trade

Leave off

  • Transfer
Why each setting

What to paste into Tallimark

CDP API key name
Coinbase Advanced Trade calls it: API key name (organizations/{org_id}/apiKeys/{key_id})
The whole name, from organizations/ to the end.
CDP API private key
Coinbase Advanced Trade calls it: Private key (-----BEGIN EC PRIVATE KEY----- ...)
Paste it whole with its line breaks, including the BEGIN and END lines.

IP allow-list

Coinbase supports an IP allowlist (IPv4 and IPv6) on the 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: Coinbase docs: key security (opens in a new tab) (checked Oct 11, 2026)

What Tallimark checks: Tallimark asks Coinbase what the key may do (its key-permissions endpoint) and refuses a key that can transfer funds or can't trade. The check runs again before every trading cycle.

Does the key expire? No date: it works until you replace it

Coinbase documents no expiry date for secret API keys: a key works until you delete or regenerate it. (Each request signs a fresh token that lasts 2 minutes; that happens automatically.)

Source: Coinbase docs: JWT authentication (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026)

What Tallimark does: If Coinbase refuses the key on 3 bot cycles in a row (outages don't count), bots using it pause: they send no orders, not even exits, and nothing at Coinbase is canceled, so resting orders such as protective stops stay there and can still fill. A position with no stop resting at Coinbase is not being managed until the key works: check it at Coinbase and close it there if you need to. Connections shows it, and Tallimark emails every verified address on your account. Replace the key: the bots check their positions with Coinbase and resume on their own once it works.

If something goes wrong(6)
401 Unauthorized when adding the key
Why: The private key lost its line breaks, the key name was cut short, or the key uses Ed25519 instead of ECDSA.
Fix: Paste both values again exactly as downloaded. If the key is Ed25519, create a new ECDSA key.

Source: Coinbase docs: JWT authentication (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: API key authentication (opens in a new tab) (checked Oct 11, 2026)

The key can transfer funds (refused)
Why: Transfer was ticked when the key was created, and the platform never accepts that.
Fix: Delete that key at Coinbase and create a new one with View and Trade only.

Source: Coinbase docs: Get API key permissions (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: key permissions (View, Trade, Transfer) (opens in a new tab) (checked Oct 11, 2026)

The key can't trade (refused)
Why: Trade wasn't ticked, or the key is limited to a portfolio you didn't mean.
Fix: Create a new key with View and Trade on the portfolio the bot should use.

Source: Coinbase docs: Get API key permissions (opens in a new tab) (checked Oct 11, 2026) · Coinbase docs: Create order (opens in a new tab) (checked Oct 11, 2026)

INSUFFICIENT_FUND / INSUFFICIENT_FUNDS
Why: The key's portfolio doesn't hold enough of the currency the order spends.
Fix: Move funds into that portfolio yourself in Coinbase, or lower the trade size.

Source: Coinbase docs: Create order (opens in a new tab) (checked Oct 11, 2026)

INVALID_SIZE_PRECISION / INVALID_PRICE_PRECISION
Why: The size or price has more decimals than the market allows.
Fix: The platform sizes orders to the market's step; if you see this, report it with the bot's name.

Source: Coinbase docs: Create order (opens in a new tab) (checked Oct 11, 2026)

429 rate_limit_exceeded (Too many requests)
Why: Too many requests from this key.
Fix: Run fewer bots on one key or a slower interval.

Source: Coinbase docs: rate limiting (opens in a new tab) (checked Oct 11, 2026)

Replacing a key, and other notes for Coinbase Advanced Trade

Replacing a key: Create a new key with the same portfolio and permissions, use “Replace key” here, then delete the old key in the Developer Platform. A key for a different portfolio is refused.

All sources (last checked Oct 13, 2026)

Other brokers and exchanges