Skip to content

Commit 397eb1d

Browse files
committed
agent: update websocket docs
1 parent 7038c5c commit 397eb1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/price-feeds/publish-data/pyth-client-websocket-api.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
- [get_product](pyth-client-websocket-api.md#get_product)
99
- [get_all_products](pyth-client-websocket-api.md#get_all_products)
1010

11-
Batch requests are processed in the order the requests appear within the batch.
11+
Batch requests are processed in the order the requests appear within the batch. **Batching is highly recommended if the client sends
12+
updates to over 50 price feeds.**
1213

1314
## get_product_list
1415

@@ -113,6 +114,9 @@ A successful response looks like:
113114

114115
## subscribe_price_sched
115116

117+
**This method can saturate the connection between the agent and the client. Send price updates as soon as they are available
118+
or create a scheduler on the client side to avoid saturating the connection.**
119+
116120
Subscribe to price update schedule. pyth-agent will notify the client whenever it should submit the next price for a subscribed symbol.
117121

118122
The request looks like:

0 commit comments

Comments
 (0)