We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7facf2b commit 7f804ccCopy full SHA for 7f804cc
pyth-sdk-solana/README.md
@@ -42,7 +42,7 @@ let price_account_info: AccountInfo = ...;
42
let price_feed: PriceFeed = load_price_feed_from_account_info( &price_account_info ).unwrap();
43
let current_timestamp = Clock::get()?.unix_timestamp;
44
let current_price: Price = price_feed.get_price_no_older_than(current_timestamp, STALENESS_THRESHOLD).unwrap();
45
-println!("price: ({} +- {}) x 10^{}", current_price.price, current_price.conf, current_price.expo);
+msg!("price: ({} +- {}) x 10^{}", current_price.price, current_price.conf, current_price.expo);
46
```
47
48
The `PriceFeed` object returned by `load_price_feed_from_account_info` contains all currently-available pricing information about the product.
0 commit comments