diff --git a/pages/lazer/_meta.json b/pages/lazer/_meta.json index 15bf7d81..56da3d0a 100644 --- a/pages/lazer/_meta.json +++ b/pages/lazer/_meta.json @@ -25,6 +25,7 @@ "title": "Reference Material", "type": "separator" }, + "endpoints": "Endpoints", "price-feed-ids": "Price Feed IDs", "websocket-api-reference": { diff --git a/pages/lazer/endpoints.mdx b/pages/lazer/endpoints.mdx new file mode 100644 index 00000000..750af3ef --- /dev/null +++ b/pages/lazer/endpoints.mdx @@ -0,0 +1,27 @@ +# Endpoints + +Pyth Lazer provides real-time price data through WebSocket connections. This page lists the available endpoints for connecting to the Lazer service. + +## WebSocket Endpoint + +The main WebSocket endpoint for Pyth Lazer is: + +``` +wss://pyth-lazer.dourolabs.app/ +``` + +### Stream Endpoint + +Most users will want to connect to the `v1/stream` endpoint: + +``` +wss://pyth-lazer.dourolabs.app/v1/stream +``` + +This endpoint provides real-time price updates and is used for subscribing to price feeds. You'll need an access token to authenticate your connection. + +## Next Steps + +- [Acquire an Access Token](./acquire-access-token.mdx) to authenticate your WebSocket connection +- [Subscribe to Price Updates](./subscribe-price-updates.mdx) to start receiving real-time data +- View the [WebSocket API Reference](https://pyth-lazer.dourolabs.app/docs) for detailed API documentation