Skip to main content

Connection

Connect to the Gemini WebSocket endpoint:

Subscribing to markets

Once connected, send a JSON message to subscribe using market_id:

Unsubscribing

Message types

Price messages

Orderbook messages

Trade messages

Full example

Important notes

  • Authentication required via api_key query parameter
  • Use market_id (Gemini market identifier) to subscribe
  • Messages are only sent for markets you have explicitly subscribed to
  • Multiple markets can be subscribed in a single message
  • Trades must be explicitly requested (not included in the default subscription)