You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searchers can request opportunities through an HTTP **GET** call to the [`/v1/opportunities`](https://pyth-express-relay-mainnet.asymmetric.re/docs#tag/opportunity/operation/get_opportunities) endpoint.
73
+
Searchers can request opportunities through an HTTP **GET** call to the [`/v1/opportunities`](https://per-mainnet.dourolabs.app/docs#tag/opportunity/operation/get_opportunities) endpoint.
Opportunities are short-lived and could be executed in a matter of seconds. So, the above endpoint could return an empty response.
81
81
82
82
</Tabs.Tab>
83
83
<Tabs.Tab>
84
-
Searchers can connect to the server via WebSocket to reduce latency and subscribe to various events. The WebSocket endpoint lives at `/v1/ws`(e.g `wss://pyth-express-relay-mainnet.asymmetric.re/v1/ws`).
84
+
Searchers can connect to the server via WebSocket to reduce latency and subscribe to various events. The WebSocket endpoint lives at `/v1/ws`(e.g `wss://per-mainnet.dourolabs.app/v1/ws`).
85
85
Here is a sample JSON payload to subscribe to opportunities:
SearcherscansubmitbidsthroughanHTTPPOSTcalltothe [`/v1/bids`](https://pyth-express-relay-mainnet.asymmetric.re/docs#tag/bid/operation/bid) endpoint. This endpoint accepts a JSON payload containing the details of the bid.
292
+
SearcherscansubmitbidsthroughanHTTPPOSTcalltothe [`/v1/bids`](https://per-mainnet.dourolabs.app/docs#tag/bid/operation/bid) endpoint. This endpoint accepts a JSON payload containing the details of the bid.
293
293
294
294
```bash copy
295
-
curl -X POST https://pyth-express-relay-mainnet.asymmetric.re/v1/bids \
295
+
curl -X POST https://per-mainnet.dourolabs.app/v1/bids \
Copy file name to clipboardExpand all lines: pages/express-relay/websocket-api-reference.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ import { Tabs } from "nextra/components";
3
3
# WebSocket API Reference
4
4
5
5
Searchers can connect to the server via WebSocket to reduce latency and subscribe to various events.
6
-
The WebSocket endpoint lives at `/v1/ws`(e.g `wss://pyth-express-relay-mainnet.asymmetric.re/v1/ws`).
6
+
The WebSocket endpoint lives at `/v1/ws`(e.g `wss://per-mainnet.dourolabs.app/v1/ws`).
7
7
8
8
## General format
9
9
@@ -60,7 +60,7 @@ After a successful subscription, you will receive new opportunities for the sele
60
60
}
61
61
```
62
62
63
-
The schema for the opportunity is similar to what’s returned in the [HTTP requests](https://pyth-express-relay-mainnet.asymmetric.re/docs#tag/opportunity/operation/get_opportunities).
63
+
The schema for the opportunity is similar to what’s returned in the [HTTP requests](https://per-mainnet.dourolabs.app/docs#tag/opportunity/operation/get_opportunities).
64
64
65
65
To unsubscribe from a list of chains, you can send the following message:
0 commit comments