Join the Graylayer Discord
Request an API key in #api-key-request under the Community tab.
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.Prediction markets
| Method | Path | Description |
|---|---|---|
| GET | /v1/prediction-markets/categories | List categories |
| GET | /v1/prediction-markets/events | List events |
| GET | /v1/prediction-markets/events/{ticker} | Get event by ticker |
| POST | /v1/prediction-markets/positions | Get positions |
| POST | /v1/prediction-markets/orders/active | Get active orders |
| POST | /v1/prediction-markets/orders/history | Get order history |
Market data
| Method | Path | Description |
|---|---|---|
| GET | /v1/book/{symbol} | Order book for symbol |
| GET | /v1/trades/{symbol} | Recent trades |
| GET | /v2/ticker/{symbol} | Ticker data |