| title | Pyth Price Poker | |||
|---|---|---|---|---|
| author | ApeWorX LTD. | |||
| keywords |
|
|||
| required_configuration |
|
The Price Poker works with the Pyth Network and it's Hermes Real-time API to obtain pricing updates and ensure that the oracle deployed on the given network is kept up to date. This mimics the action of the Pyth "price pusher" scheduler using Silverback.
These variables are required to set up operation of the price pusher
required
The address of the Pyth PriceFeedProxy contract which should be used to update.
required
1 or more named pricefeeds to fetch from the Hermes API and update on chain, if update thresholds are not met.
These should be in their human readable form by symbol, e.g. "ETH/USD" or "BTC/USD".
Multiple should be provided via comma-separated list e.g. PYTH_PRICEFEED_NAMES=ETH/USD,BTC/USD.
These variables configure when a pricefeed update should take place.
optional
Number of seconds before an update is considered "stable". When stale, the bot will update the price on-chain. Defaults to 1 hour.
optional
Percentage change in latest price vs. last on-chain update which should trigger an on-chain update. Defaults to 5%.
optional
The frequency at which the pricefeed check task should run. Defaults to every minute.
Metric(s) that track the current on-chain value of each price feed as it is updated.