Skip to content

Guide

Does Gemini have an API?

Yes. Gemini has a REST API for spot trading. You create an API key in Settings, then API. Each key comes with an API secret. A TradingView alert can't call the API itself. It posts to Nyria's webhook, and the bot places the order. Nyria connects Gemini in beta with the key and secret.

Official documentation

Connect Gemini in six steps

  1. 1

    Open the API settings

    Log in to Gemini. Go to Settings, then API, and select Create API key.

  2. 2

    Choose the account

    Under Scope, select the account you trade with.

  3. 3

    Set the permissions

    Turn on Trading and Uses a time-based nonce. Leave withdrawals off.

  4. 4

    Copy both values

    Copy the API key and the API secret before you close the window.

  5. 5

    Connect Gemini in Nyria

    Open the Gemini card on Integrations. Paste the API key and the API secret.

  6. 6

    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.

What the API does

  • Gemini's API reads balances and orders.
  • It places and cancels spot orders.
  • Each private request carries your API key and a signature.
  • Gemini makes the signature from your API secret.
  • Each request carries a nonce, so an old request can't be replayed.

Why an alert can't call it

  • A TradingView alert sends a webhook.
  • It can't sign a Gemini request.
  • 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 Gemini

  • You paste the API key and the API secret once.
  • Nyria stores both encrypted at rest.
  • It reads the account and places and cancels orders.
  • It has no feature that moves money.
  • A key with Trading on and withdrawals off can't move funds out.

What it can't do

  • Trade stocks. Gemini lists stock trading in its app, not its API.
  • Move money. Withdrawals stay off.
  • Work with a key that lacks Trading permission.

Questions

Can a TradingView alert call the Gemini API?
No. An alert sends a webhook. Nyria receives it and places the order.
Does Nyria need withdrawals turned on?
No. Leave withdrawals off.
Which nonce setting should I pick?
Uses a time-based nonce. Nyria's Gemini steps ask for it.
Does the key work on every Gemini account?
A key covers the account you pick under Scope.
Can I test before using real money?
Yes. Run the strategy on Nyria Paper first. It's free.

Next

Try a paper bot first

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