Skip to content
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

Add ws support for specific feeds #64

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

jacksturt
Copy link
Contributor

Maybe I am using this library wrong, but I could not find a way to only subscribe to specific feeds. This adds support for subscribing to a subset of feeds by providing a list of FeedIds when constructing a PythConnection Object.

@jacksturt
Copy link
Contributor Author

For reference, I am trying to implement the same charts that Pyth does here: https://pyth.network/price-feeds/crypto-sol-usd?range=1H. I don't see a lot of documentation on how they do this. I am looking in the wrong places, or are these just not documented atm?

@guibescos
Copy link
Contributor

guibescos commented Feb 4, 2023

These charts work by putting the prices in an offchain database through a websocket subscription and then displaying them. The process is not open sourced. Thanks for the contribution, please rebase and we'll try to get this merged.

@jacksturt jacksturt force-pushed the add-ws-for-specific-feeds branch from 4ac6b77 to 3ce8d56 Compare February 4, 2023 02:09
@jacksturt
Copy link
Contributor Author

Rebased

Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@jayantk jayantk merged commit 6f64b84 into pyth-network:main Feb 6, 2023
@jayantk
Copy link
Contributor

jayantk commented Feb 6, 2023

FYI: I also cut release v2.14.0 with this change included

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants