Skip to content

Commit 04a8b75

Browse files
jayantkJayant Krishnamurthy
andauthored
add docs (#690)
Co-authored-by: Jayant Krishnamurthy <[email protected]>
1 parent 94032fa commit 04a8b75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

target_chains/cosmwasm/pyth-sdk-cw/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ use pyth_sdk_cw::{
3030
....
3131
```
3232

33+
This snippet returns a `PriceFeed` struct which exposes methods for reading the current price along with other useful functionality.
34+
See the [Pyth common SDK documentation](https://github.com/pyth-network/pyth-sdk-rs/tree/main/pyth-sdk#pyth-network-common-rust-sdk) for more information
35+
about this struct.
36+
The common SDK also provides methods for combining price feeds in several useful ways.
37+
These methods allow you to derive prices for alternative quote currencies -- for example, to derive the BTC/ETH price from
38+
the BTC/USD and ETH/USD price feeds -- and to price baskets of currencies.
39+
3340
## Contracts and Price Feeds
3441

3542
Pyth is currently available on the following cosmwasm chains:

0 commit comments

Comments
 (0)