Price Feeds
get_stale_price_threshold_secs

Get Stale Price Threshold Secs

Get the default stale price threshold in seconds. This quantity is the maximum age of price updates returned by functions like get_price and get_ema_price; these functions revert if the current on-chain price is older than this threshold.

Example Code

use pyth::pyth;
use pyth::price_identifier;
 
pyth::get_stale_price_threshold_secs();
Last updated on