GeminiGemini
SandboxGet API key
  • Crypto Trading
  • Prediction Markets
Resources
  • Changelog

© 2026 Gemini Space Station, Inc.

Gemini Crypto Exchange LogoGemini Crypto Exchange Logo
Market Makers
    Maker Rebate Program
WebSocket
    AuthenticationMessage Format
    Streams
      Book TickerL2 Partial DepthL2 Differential DepthTrade StreamOrder EventsBalance Updates
    Playground
      Overviewconninfopingtimesubscribeunsubscribelist_subscriptionsdepthorder.placeorder.cancelorder.cancel_allorder.cancel_session
REST APIs
    Order Management
    Positions
    Events
Agentic
Tickers
    OverviewCryptoSportsCommoditiesWeather
Schemas

Utility(3 methods)

conninfo
disconnected

Get the connection rate limits.

Request
Response
Response will appear here...
ping
disconnected

Ping the server to check connectivity.

Request
Response
Response will appear here...
time
disconnected

Get the current server time in milliseconds since Unix epoch.

Request
Response
Response will appear here...

Subscriptions(3 methods)

subscribe
disconnected

Subscribe to data streams. Use {symbol}@bookTicker for live prices, orders@account for order updates, balances@account for balance changes.

Parameters

NameTypeRequiredDescription
paramsarrayrequiredArray of stream names to subscribe to
Request
Response
Response will appear here...
unsubscribe
disconnected

Unsubscribe from data streams.

Parameters

NameTypeRequiredDescription
paramsarrayrequiredArray of stream names to unsubscribe from
Request
Response
Response will appear here...
list_subscriptions
disconnected

Get a list of all active stream subscriptions for the current connection.

Request
Response
Response will appear here...

L2 Data(1 method)

depth
disconnected

Get a snapshot of the order book depth for a prediction market symbol.

Parameters

NameTypeRequiredDescription
symbolstringrequiredPrediction market symbol (e.g., GEMI-PRES2028-VANCE)
limitnumberoptionalNumber of price levels to return (max: 5000)(default: 100)
Request
Response
Response will appear here...

Trading(4 methods)

order.placeAuth Required
disconnected

Place a new prediction market order. Requires authentication. Price must be between $0.01–$0.99. eventOutcome must be YES or NO.

Parameters

NameTypeRequiredDescription
symbolstringrequiredPrediction market symbol (e.g., GEMI-PRES2028-VANCE)
sidestringrequiredOrder side: BUY or SELL
typestringrequiredOrder type: LIMIT or MARKET
timeInForcestringrequiredTime in force: GTC, IOC, FOK, MOC
pricestringoptionalOrder price between 0.01 and 0.99 (required for LIMIT orders)
quantitystringrequiredNumber of contracts
eventOutcomestringrequiredYES (predicting the event happens) or NO (predicting it doesn't)
clientOrderIdstringoptionalClient-provided order ID for tracking
Request
Response
Response will appear here...
order.cancelAuth Required
disconnected

Cancel an existing order by order ID.

Parameters

NameTypeRequiredDescription
orderIdstringrequiredOrder ID to cancel (from the i field in order events)
Request
Response
Response will appear here...
order.cancel_allAuth Required
disconnected

Cancel all existing orders.

Request
Response
Response will appear here...
order.cancel_sessionAuth Required
disconnected

Cancel all existing orders for the current session.

Request
Response
Response will appear here...