GeminiGemini
SandboxGet API key
  • Crypto Trading
  • Prediction Markets
Changelog
Gemini Crypto Exchange LogoGemini Crypto Exchange Logo

© 2026 Gemini Space Station, Inc.

Gemini API Documentation

Regulated · SOC 2 Type II · Institutional Grade

Gemini Developer Platform

Build trading applications, market data tools, and enterprise crypto solutions on a secure, regulated exchange trusted by millions of users and institutions worldwide.

Get API key

Get Started

Jump-start your integration with step-by-step guides for the most common use cases.

1

Get your API credentials

Sign up at exchange.gemini.com, navigate to Settings → API, and create a key with the Trading scope enabled.

Terminal
export GEMINI_API_KEY="account-xxxxxxxxxxxxxxxx"
export GEMINI_API_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
2

Clone the samples repo and install dependencies

Clone the Gemini API samples repository, navigate to the Python directory, and install the required packages (requests and python-dotenv).

Terminal
git clone https://github.com/gemini/developer-platform.git
cd developer-platform/samples/python
pip install -r requirements.txt
3

Configure your environment

Create a .env file with your API credentials and the sandbox base URL. The sample uses python-dotenv to load these automatically.

Terminal
cat > .env << 'EOF'
GEMINI_API_KEY=account-xxxxxxxxxxxxxxxx
GEMINI_API_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GEMINI_BASE_URL=https://api.sandbox.gemini.com/v1
EOF
4

Run the place order example

Run the example to place a sandbox limit order. The script handles HMAC-SHA384 signing automatically.

Terminal
python place_order.py
5

You're done!

Your order is live in the sandbox. Check the response for order_id and use it to query status or cancel.

Terminal
# Order confirmed ✓
Order placed: {'order_id': '7651834', 'symbol': 'btcusd', 'side': 'buy', ...}

Build with Gemini APIs

Pick the protocol that fits your use case.

Public REST APIAccess real-time and historical market data without authentication. Retrieve ticker prices, order book snapshots, recent trades, and auction data.
GET/v1/pubticker/{symbol}
GET/v1/book/{symbol}
GET/v1/trades/{symbol}
View all endpoints →

Access Gemini products

APIs for every type of user — retail, business, and institutional.

Symbol ReferenceAll trading pairs with minimum sizes, tick sizes, and quote increments.
Order BookCurrent bids and asks grouped by price level for any trading pair.
Candle DataOHLCV data in 1m, 5m, 15m, 30m, 1h, 6h, and 1-day intervals.
Trade HistoryRecent trades, up to 500 records limited to 7 calendar days.
Ticker v2Enhanced ticker with 24-hour hourly price history per symbol.
FX RatesHistorical exchange rates for 14 international currency pairs.
Funding AmountsPerpetual swap funding rates and estimates for derivative symbols.
Fee PromosActive promotional fee structures across available trading symbols.
Network InfoDiscover blockchain networks supporting any tradable token.

Developer Resources

Essential guides and references for every stage of your integration.

Sandbox EnvironmentFull API functionality with simulated funds. Pre-funded with BTC, ETH, and USD. Automated market simulation included.
exchange.sandbox.gemini.com
Authentication GuideHMAC-SHA384 signing walkthrough and API key management for all private REST endpoints.
Guide
Rate LimitsPer-minute and per-second limits for public and private API endpoints, with guidance on backoff strategies.
Reference
Error CodesFull reference for all API error responses — causes, HTTP status codes, and recommended actions.
Reference
Symbols & MinimumsAll trading pairs with minimum order sizes, tick sizes, quote increments, and supported blockchain networks.
Reference
ChangelogStay current with API updates, new endpoints, deprecations, and breaking changes.
Updated Feb 2026

Start building in the sandbox

Access a full-featured test environment with automated market simulation, pre-funded accounts, and support for both REST and WebSocket — no real money needed.

View sandbox docsOpen Sandbox
Last modified on May 5, 2026