Skip to content

Guide

Does Coinbase have an API?

Yes. Coinbase has an API for spot trading. You create a Secret API key in the Coinbase Developer Platform. Nyria connects Coinbase with the key name and private key. A TradingView alert can't call the API itself. It posts to Nyria's webhook, and the bot places the order.

Official documentation

Connect Coinbase in six steps

  1. 1

    Open Secret API Keys

    Go to the Coinbase Developer Platform. Under API Keys, select Secret API Keys.

  2. 2

    Start a new key

    Select Create API key and enter a nickname.

  3. 3

    Set the permissions

    Pick your portfolio. Turn on View and Trade. Leave Transfer off. Choose ECDSA as the signature algorithm.

  4. 4

    Connect Coinbase in Nyria

    Open the Coinbase card on Integrations. Paste the key name and the whole private key.

  5. 5

    Point TradingView at Nyria

    Create a strategy with TradingView as the source. Under Notifications, tick Webhook URL, paste the strategy's URL, then select Apply.

  6. 6

    Test, then deploy

    Run a paper bot first. Then deploy on Coinbase and set a budget per entry.

What the API does

  • Coinbase's API reads balances and places spot orders.
  • Each private request is signed with your key.
  • Each key has its own permissions, set when you create it.
  • A key can be tied to one portfolio.

Why an alert can't call it

  • A TradingView alert can't call the Coinbase API itself.
  • It sends a webhook. Something has to place the order.
  • Nyria is that receiver, and it never places an order by itself.
  • Your alerts and strategy rules decide every entry and exit.

How Nyria connects Coinbase

  • You paste the key name and the private key once.
  • Nyria stores the keys encrypted at rest.
  • It reads balances and places and cancels orders.
  • It has no feature that moves money.
  • A budget per entry sets the order size.

What it can't do

  • Use a Coinbase US account. That is a separate connection.
  • Short sell on spot.
  • Let an alert set the order size.
  • Move money. Transfer stays off.

Questions

Can a TradingView alert call the Coinbase API?
No. An alert sends a webhook. Nyria receives it and places the order.
Does Nyria need the Transfer permission?
No. Leave Transfer off.
Which signature algorithm should I pick?
ECDSA.
Does the IP allowlist matter?
It's optional. Email contact@nyria.io for Nyria's address if you add one.
Can I test before using real money?
Yes. Run the strategy on Nyria Paper first. It's free.
Does this cover Coinbase US?
No. Coinbase US is a separate connection with its own key.

Next

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.