Skip to content

Commit

Permalink
examples doc
Browse files Browse the repository at this point in the history
  • Loading branch information
calbera committed Oct 25, 2024
1 parent 026af3e commit 43400a1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Examples

This directory contains examples of how to use the Pyth client.

## Lib

The `lib` directory contains shared utilities for the examples.

## Query

The `query` directory contains examples of how to query Pyth using the `Hermes` and `Benchmarks` clients for the latest and historical prices, respectively. The returned price data can then be used in EVM contract transactions from the `lib.PriceUpdate` struct.

### Example 1: Perpetuals

Coming soon.

### Example 2: Lending Markets

Coming soon.

0 comments on commit 43400a1

Please sign in to comment.