Barfinex
All exchanges
Gemini

Gemini

Coming SoonCrypto — Other
connectorType: "gemini"

Regulated US crypto exchange by the Winklevoss twins

Connection Architecture

Gemini
WebSocket / REST
Connector
libs/exchange-gemini
Provider
:8081/api
Detector
Advisor
Studio

The connector receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.

Technologies

Transport
WebSocketREST
Authentication
API Key + Secret
Data Format
JSON

Best for

  • US-based institutions and funds operating under regulatory requirements that mandate NYDFS-licensed exchange counterparties.
  • Compliance-focused traders who need SOC 2 certified infrastructure and full USD fiat integration for reconciliation.
  • Multi-exchange spot strategies looking to add a US-regulated venue alongside Coinbase Advanced Trade.
  • Custody-aware trading desks that leverage Gemini Custody alongside the exchange for a unified institutional stack.

Connect via code

1Environment variables (.env)

GEMINI_API_KEY=your_key_here
GEMINI_API_SECRET=your_secret_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "gemini",
        "enabled": true,
        "key": "${GEMINI_API_KEY}",
        "secret": "${GEMINI_API_SECRET}",
        "markets": [
          { "marketType": "spot", "symbols": [{ "name": "BTCUSDT" }] }
        ],
        "subscriptions": [
          { "type": "PROVIDER_MARKETDATA_CANDLE", "symbols": ["BTCUSDT"], "intervals": ["min1", "h1"], "active": true },
          { "type": "PROVIDER_MARKETDATA_TRADE", "symbols": ["BTCUSDT"], "active": true },
          { "type": "PROVIDER_MARKETDATA_ORDERBOOK", "symbols": ["BTCUSDT"], "active": true }
        ]
      }
    ]
  }
}

3Verify and query data

# Verify connection
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  https://localhost:8081/api/exchanges/runtime-proof

# Candles (last 7 days)
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  "https://localhost:8081/api/candles/gemini/spot/BTCUSDT/h1?days=7"

Available via Barfinex API

/api/candles/gemini/...
/api/trades/gemini/...
/api/orderbook/gemini/...
/api/account/gemini/...
/api/symbols/gemini/...
/api/assets/gemini/...

Studio graphical setup — in development, coming in the next release.

Important

Gemini supports spot trading only — perpetual or dated futures are not offered on this exchange.
API keys have granular permission scopes (trading, fund management, auditor) — create a trading-scoped key and never grant fund management permissions to automated strategies.
Gemini operates separate production and sandbox (sandbox.gemini.com) environments with independent credentials; test all configurations in sandbox before going live.
The ActiveTrader REST API and the Gemini WebSocket feed have separate rate limits; WebSocket is strongly preferred for real-time orderbook subscriptions to avoid REST rate exhaustion.
US regulatory requirements may require Gemini to request additional identity verification before enabling API trading on new accounts.
Supported Markets
Spot
Founded2014
HeadquartersNew York, USA
Connect in Studio(soon)
Exchange Website

Let’s Get in Touch

Have questions or want to explore Barfinex? Send us a message.