switchboard-on-demand 0.1.0

A Rust library to interact with the Switchboard Solana program.
docs.rs failed to build switchboard-on-demand-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: switchboard-on-demand-0.12.1

Switchboard Logo

switchboard-on-demand

A Rust library to interact with Switchboard accounts on Solana.

Crates.io Badge

Discord Badge

Twitter Badge

    let feed = PullFeedAccountData::parse(account_info)?;
    let max_stale_slots = 100;
    let min_samples = 5;
    let price: Decimal = feed.get_value(&Clock::get()?, max_stale_slots, min_samples, true)?;