Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title Pyth Price Poker
author ApeWorX LTD.
keywords
Pyth
Oracle
Trading
required_configuration
PYTH_PRICEFEED_ADDRESS
PYTH_PRICEFEED_NAMES

Overview

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.

Configuration

Pyth Configuration

These variables are required to set up operation of the price pusher

PYTH_PRICEFEED_ADDRESS

required

The address of the Pyth PriceFeedProxy contract which should be used to update.

PYTH_PRICEFEED_NAMES

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.

Update Threshold Configuration

These variables configure when a pricefeed update should take place.

HEARTBEAT_TIMEOUT

optional

Number of seconds before an update is considered "stable". When stale, the bot will update the price on-chain. Defaults to 1 hour.

PRICE_CHANGE_THESHOLD

optional

Percentage change in latest price vs. last on-chain update which should trigger an on-chain update. Defaults to 5%.

PYTH_UPDATE_CRON

optional

The frequency at which the pricefeed check task should run. Defaults to every minute.

Metrics

{PRICEFEED_NAME}

Metric(s) that track the current on-chain value of each price feed as it is updated.

About

Pyth Price updater Silverback bot

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages