Skip to main content

Join the Graylayer Discord

Request an API key in #api-key-request under the Community tab.
Platform key: gemini · Upstream: https://api.gemini.com Public endpoints (categories, events, order books, trades, positions, order history) need no platform credentials.
Use the sandbox for testing by setting GEMINI_BASE_URL=https://api.sandbox.gemini.com in .env.
curl -H "X-API-Key: your_key" \
  http://gateway.graylayer.tech/api/v1/gemini/v1/prediction-markets/categories

Prediction markets

MethodPathDescription
GET/v1/prediction-markets/categoriesList categories
GET/v1/prediction-markets/eventsList events
GET/v1/prediction-markets/events/{ticker}Get event by ticker
POST/v1/prediction-markets/positionsGet positions
POST/v1/prediction-markets/orders/activeGet active orders
POST/v1/prediction-markets/orders/historyGet order history
curl -H "X-API-Key: your_key" \
  http://gateway.graylayer.tech/api/v1/gemini/v1/prediction-markets/categories

Market data

MethodPathDescription
GET/v1/book/{symbol}Order book for symbol
GET/v1/trades/{symbol}Recent trades
GET/v2/ticker/{symbol}Ticker data
curl -H "X-API-Key: your_key" \
  http://gateway.graylayer.tech/api/v1/gemini/v2/ticker/BTCUSD

WebSocket

Real-time Gemini data via WebSocket proxy. See Gemini WebSockets.