simple_pyth_client_rs 0.1.0

Rust wrapper for Pyth Hermes crypto price feeds
Documentation
1
2
3
4
pub fn apply_exponent(price: &str, expo: i32) -> f64 {
    let price_val: f64 = price.parse().unwrap_or(0.0);
    price_val * 10f64.powi(expo)
}