Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/lazer/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"title": "Reference Material",
"type": "separator"
},
"endpoints": "Endpoints",
"price-feed-ids": "Price Feed IDs",

"websocket-api-reference": {
Expand Down
27 changes: 27 additions & 0 deletions pages/lazer/endpoints.mdx
Original file line number Diff line number Diff line change
@@ -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
Loading