GeminiGemini
Demo environmentGet API key
  • Overview
  • Crypto Trading
  • Prediction Markets
  • Perpetuals
  • Stocks
  • API Reference
  • SDKs & Tools
Changelog
Gemini logoGemini logo

© 2026 Gemini Space Station, Inc.

Get started
    IntroductionDemo environment
Platform
    Platform overview
    Authentication
      API keysOAuth 2.0
    AccountsRoles & permissionsInstruments & symbolsClient order IDsRate limitsErrors
Build with Gemini
    Build an agent
Resources
Platform

Gemini Developer Platform

Gemini provides a unified developer platform to discover markets, manage accounts, and trade supported assets.

Account model note: Product access and account selection depend on your chosen interface. Always verify credential and account requirements for each product and protocol.

Start with your trading product

Choose what you want to trade before choosing a protocol.

  • Spot crypto — current trading guides and API documentation.
  • Margin — margin concepts and REST reference.
  • Perpetuals — perpetuals concepts and derivatives REST reference.
  • Prediction markets — event-contract guides and API documentation.
  • Stocks — available in the Gemini UI. API trading documentation is coming soon.

Instrument availability, interface coverage, and regional eligibility vary by product. Review product guides for specific rules.

Understand credentials and accounts

Credentials authenticate callers. Accounts define the execution context. Roles and OAuth scopes govern permitted operations, while product settings control asset access.

Current REST documentation describes two API-key patterns:

  • A Master API key can target any subaccount in its group by passing the account shortname in supported requests.
  • An account-scoped API key is bound to one specific account.

OAuth, WebSocket, and FIX have distinct authentication and account-selection rules. Always follow the documentation for your chosen interface.

  • API key authentication
  • OAuth
  • Roles and permissions
  • Accounts and subaccounts

Choose an interface

  • REST APIs for request-and-response operations.
  • WebSocket APIs for streaming data and real-time workflows.
  • FIX APIs for institutional order routing and drop copies.
  • SDKs & Tools for the Gemini MCP server, code samples, and agent skills. SDK packages and the Gemini API CLI are in development.

Use the API Reference for exact endpoint schemas and status codes.

A safe integration flow

  1. Choose a trading product and confirm its availability for your use case.
  2. Create credentials supported by your interface.
  3. Identify your target trading account.
  4. Verify required product access and credential permissions.
  5. Discover active instruments and review product-specific rules.
  6. Preview operations when supported by the API.
  7. Confirm the resolved account before executing mutating requests.
  8. Monitor order status through WebSocket events or REST status endpoints.

Test your implementation in the demo environment before trading live.

Demo environmentPlatform overview
On this page
  • Start with your trading product
  • Understand credentials and accounts
  • Choose an interface
  • A safe integration flow