Skip to main content
CoinGecko WebSockets are available through Uniblock with separate validation and WSS endpoints.

Endpoints

  • WebSocket (WSS): wss://lively-dust-7404.lively-fog-f2d9.workers.dev/coingecko
  • HTTP (Validation): https://lively-dust-7404.lively-fog-f2d9.workers.dev/coingecko/validate

Authentication

  • Include the X-API-KEY header in both validation and connection requests.

Workflow

  1. Validate the request with the HTTP endpoint.
  2. Connect to the WSS endpoint.
  3. Send your CoinGecko message payload after the connection is established.
CoinGecko uses different message types than standard JSON-RPC-style WebSocket flows. Refer to the official CoinGecko WebSocket documentation for the expected message formats.

Example validation request

curl --request GET \
  --url 'https://lively-dust-7404.lively-fog-f2d9.workers.dev/coingecko/validate' \
  --header 'X-API-KEY: YOUR_UNIBLOCK_API_KEY'

Pricing

Responses are billed using the shared WebSocket pricing formula:
  • 0.1 CU * 3181.819 per response returned