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 support for PYTH oracles #9249

Open
4 tasks done
yabirgb opened this issue Jan 14, 2025 · 0 comments
Open
4 tasks done

Add support for PYTH oracles #9249

yabirgb opened this issue Jan 14, 2025 · 0 comments
Milestone

Comments

@yabirgb
Copy link
Member

yabirgb commented Jan 14, 2025

PYTH is a competitor to ChainLink and provides price feeds for several crypto assets. In addition it provides fees for stocks that can be used in the future.

There is an API that can be used to query all the available fees at: https://hermes.pyth.network/v2/price_feeds?asset_type=crypto
Documented at: https://hermes.pyth.network/docs/#/rest/price_feeds_metadata

They provide APIs to query them but the great thing about those fees is that they can be queried on chain using RPC calls. This allows us to avoid rate limits theoretically.

Documentation available at: https://docs.pyth.network/price-feeds/price-feeds

how to query

For example for the ethereum contract (https://etherscan.io/address/0x4305fb66699c3b2702d4d05cf36551390a4c69c6#readProxyContract) we can call the method queryPriceFeed with the uniswap feed ID 0x78d185a741d07edb3412b09008b7c5cfb9bbbd7d568bf00ba737b456ba171501

image

Properties

  • crypto oracle
  • stock oracle
  • current price
  • historical price (using archive nodes)
@yabirgb yabirgb added this to the 1.38.0 milestone Jan 14, 2025
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

No branches or pull requests

1 participant