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.

API Reference overview
REST
    Orders
    Market Data
    Margin Trading
    Staking
    Clearing
    Instant Orders
    Fund Management
    Derivatives
    Prediction markets
    Common
WebSocket
    Core protocol
      IntroductionCoreAuthenticationCoreMessage formatCore
      Shared streams
        Book tickerL2 partial depthL2 differential depthTrade streamOrder eventsBalance updates
      Shared methods
    Prediction-market extensions
      Streams
        Position updatesPredictionContract statusPrediction
      Combo RFQ
        OverviewPredictionWebSocket streamsPredictionQuote methodsPredictionMaker integrationPredictionExamplesPrediction
FIX
Authentication and account context
Prediction markets schemas
API Reference

API Reference

Use API Reference when you already know which technical interface you need. Start with a protocol, then choose the product and capability documented by that interface.

Scope labels

Core API

Start here. Core APIs provide the shared protocol, request shape, and behavior used across supported trading products.

Perpetuals

These pages document perpetuals-specific positions, margin, funding, and risk behavior.

Prediction markets

These pages document the few additions that apply only to Prediction Markets.

An untagged reference may still have product or account requirements. Confirm the applicability stated on the operation or stream before integrating it.

REST

REST covers public market data and supported authenticated account and trading operations. Each operation page defines its request, authentication requirements, permissions, and response.

  • REST API overview
  • Trading REST API
  • Margin REST API
  • Perpetuals REST API
  • Prediction Markets REST API
  • Common administration REST API

WebSocket

The WebSocket API has one core protocol. Connection, authentication, message envelopes, standard streams, and methods are shared across supported products. Prediction Market order events use the same order stream and add an outcome field.

Core protocol

  • Connection and session behavior
  • Authentication
  • Message format
  • Shared market data and account streams
  • Position updates
  • Shared methods playground

Prediction-market extensions

  • Contract status
  • Combo RFQ streams

FIX

Use the FIX reference for provisioned sessions, order entry, market data, drop copy, and message dictionaries. FIX session credentials and account mapping are interface-specific.

  • FIX API overview

Authentication and account context

Before calling a private operation, verify all three separately:

  1. The credential type is supported by the protocol and operation.
  2. The credential has the required API-key role or OAuth scope.
  3. The operation is resolved to the intended account using that interface's documented mechanism.
  • API key authentication
  • OAuth
  • Roles and permissions
  • Accounts and subaccounts

The reference remains organized under current public routes while canonical /api-reference/... operation URLs are introduced in later migration phases.

REST
On this page
  • Scope labels
  • REST
  • WebSocket
    • Core protocol
    • Prediction-market extensions
  • FIX
  • Authentication and account context