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

© 2026 Gemini Space Station, Inc.

API Specifications

Use these machine-readable source specifications when generating clients, validating payloads, or giving agents a stable contract to inspect.

Spec catalog

  • Spec catalog — JSON index of every published OpenAPI and AsyncAPI source file, including canonical URLs, compatibility aliases, versions, and related docs.

Crypto Trading

  • Crypto Trading REST OpenAPI spec — source contract for Gemini Exchange REST APIs. Compatibility alias: /rest.yaml. Rendered reference: Crypto Trading REST API reference.
  • Crypto Trading WebSocket AsyncAPI spec — source contract for the production wss://ws.gemini.com WebSocket request/response methods, market data streams, and authenticated streams. Compatibility alias: /websocket.yaml.

Prediction Markets

  • Prediction Markets OpenAPI spec — source contract for Prediction Markets REST APIs. Compatibility alias: /prediction-markets.yaml. Rendered reference: Prediction Markets API reference.
  • Prediction Markets WebSocket AsyncAPI spec — shared WebSocket source contract covering Prediction Markets streams, authenticated streams, order methods, and combo RFQ messages. Compatibility alias: /websocket.yaml.

WebSocket coverage

SurfaceMachine-readable coverageNotes
Request/response envelopeFullStandard id, method, params, status, result, and error shapes are modeled.
Utility methods (conninfo, ping, time)PartialRequest envelopes are modeled; result bodies are broad because the docs do not enumerate every field.
Subscription methods (SUBSCRIBE, UNSUBSCRIBE, LIST_SUBSCRIPTIONS)FullUppercase Prediction Markets and lowercase Trading variants are both accepted in the spec.
Market data streamsFullBook ticker, partial depth, differential depth, and trade stream payloads are modeled.
Trading methodsPartialorder.place, order.cancel, order.cancel_all, and order.cancel_session requests are modeled; order lifecycle state is modeled on the orderUpdate stream.
Authenticated account streamsFullOrder, balance, and position stream payloads are modeled.
Contract lifecycle streamFullcontractStatus payloads are modeled.
Combo RFQ streams and methodsFullPublic/private RFQ deliveries and quote submit/withdraw/confirm methods are modeled.
Archived WebSocket v1/v2 APIsDocs-onlyArchived APIs remain documented for reference but are intentionally excluded from the current AsyncAPI contract.

Agent usage

Agents should fetch /llms.txt first for the documentation index, then /specs/index.json for machine-readable API contracts. Use the catalog entry's url field as the canonical spec URL; root-level aliases remain available for existing integrations. For WebSocket coverage, read the AsyncAPI spec's x-gemini-coverage metadata before assuming a method response body is fully enumerated.

Last modified on July 21, 2026
On this page
  • Spec catalog
  • Crypto Trading
  • Prediction Markets
  • WebSocket coverage
  • Agent usage