Function cryptocompare::get_price [] [src]

pub fn get_price(
    fsym: &str,
    tsyms: &str,
    options: &Options
) -> Result<Value, Box<Error>>

Get the latest price for a list of one or more currencies.

Example

    let option: Options = Options {exchanges: "Bitfinex", try_conversion: false};
    let price = cryptocompare::get_price("BTC", "USD", &option);