Join the Graylayer Discord
Request an API key in #api-key-request under the Community tab.
coinbase · Upstream: https://api.exchange.coinbase.com
All listed endpoints are public—no platform credentials needed. US-friendly.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Spot exchange market data via Coinbase Exchange
coinbase · Upstream: https://api.exchange.coinbase.com
All listed endpoints are public—no platform credentials needed. US-friendly.
curl -H "X-API-Key: your_key" \
http://gateway.graylayer.tech/api/v1/coinbase/products
| Method | Path | Description |
|---|---|---|
| GET | /products | List all products |
| GET | /products/{id} | Get product details |
| GET | /products/{id}/ticker | Current ticker |
| GET | /products/{id}/book | Order book |
| GET | /products/{id}/trades | Recent trades |
| GET | /products/{id}/candles | OHLCV candlesticks |
| Parameter | Type | Description |
|---|---|---|
start | string | ISO 8601 start time |
end | string | ISO 8601 end time |
granularity | integer | Seconds per candle: 60, 300, 900, 3600, 21600, 86400 |
curl -H "X-API-Key: your_key" \
http://gateway.graylayer.tech/api/v1/coinbase/products
curl -H "X-API-Key: your_key" \
http://gateway.graylayer.tech/api/v1/coinbase/products/BTC-USD/ticker
curl -H "X-API-Key: your_key" \
"http://gateway.graylayer.tech/api/v1/coinbase/products/BTC-USD/book?level=2"
curl -H "X-API-Key: your_key" \
"http://gateway.graylayer.tech/api/v1/coinbase/products/BTC-USD/candles?granularity=3600"
| Method | Path | Description |
|---|---|---|
| GET | /currencies | List all supported currencies |
| GET | /time | Server time |
curl -H "X-API-Key: your_key" \
http://gateway.graylayer.tech/api/v1/coinbase/currencies