Skip to content

agent: update websocket docs #408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2024
Merged
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
6 changes: 5 additions & 1 deletion pages/price-feeds/publish-data/pyth-client-websocket-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
- [get_product](pyth-client-websocket-api.md#get_product)
- [get_all_products](pyth-client-websocket-api.md#get_all_products)

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

## get_product_list

Expand Down Expand Up @@ -113,6 +114,9 @@ A successful response looks like:

## subscribe_price_sched

**This method can saturate the connection between the agent and the client. Please create a scheduler on the client side to avoid saturating the connection or
send price updates as soon as they are available.**

Subscribe to price update schedule. pyth-agent will notify the client whenever it should submit the next price for a subscribed symbol.

The request looks like:
Expand Down
Loading