examples/

directory
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: MIT

README

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL