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

© 2026 Gemini Space Station, Inc.

Multi Market Data (Archived)

This documentation is archived for reference only. These APIs have been replaced by the new WebSocket API. Start new integrations with the new WebSocket API.

Multi Market Data

Multi market data is a public API which allows multiple symbols to be streamed via a single endpoint.

WebSocket Request

wss://api.gemini.com/v1/multimarketdata?symbols=BTCUSD,ETHUSD

URL Parameters

ParameterRequiredDefaultDescription
symbolsYes-Symbols to stream (comma-separated)
heartbeatNofalseSet to true for heartbeats every 5 seconds
top_of_bookNofalseIf true, receive top of book only
bidsNotrueInclude bids in change events
offersNotrueInclude asks in change events
tradesNotrueInclude trade events

Response

FieldTypeDescription
typestringheartbeat or update
socket_sequenceintegerMonotonic increasing sequence number

Messages of type update also include:

FieldTypeDescription
eventIdintegerMonotonically increasing sequence number
eventsarrayOrder book changes or trade indications
timestamptimestampTimestamp in seconds
timestampmstimestampmsTimestamp in milliseconds

All elements of events share:

FieldTypeDescription
typestringtrade or change
symbolstringSymbol (e.g. BTCUSD, ETHUSD)

Change Event

FieldTypeDescription
pricedecimalPrice of this order book entry
sidestringbid or ask
reasonstringplace, trade, cancel, or initial
remainingdecimalQuantity remaining at this price level
deltadecimalQuantity changed

Trade Event

FieldTypeDescription
pricedecimalExecution price
amountdecimalAmount traded
makerSidestringbid or ask

Examples

Code
import ssl import websocket def on_message(ws, message): print(message) ws = websocket.WebSocketApp( "wss://api.gemini.com/v1/multimarketdata?symbols=BTCUSD,ETHUSD", on_message=on_message) ws.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})

Trade Event

Code
{ "type": "update", "eventId": 5375547515, "timestamp": 1547760288, "timestampms": 1547760288001, "socket_sequence": 15, "events": [ { "type": "trade", "tid": 5375547515, "price": "3632.54", "amount": "0.1362819142", "makerSide": "ask", "symbol": "BTCUSD" } ] }
Last modified on May 5, 2026
On this page
  • WebSocket Request
  • URL Parameters
  • Response
    • Change Event
    • Trade Event
  • Examples
    • Trade Event
JSON