Function cryptocompare::get_history_hour [] [src]

pub fn get_history_hour(
    fsym: &str,
    tsym: &str,
    options: &Options,
    limit: &u64
) -> Result<Value, Box<Error>>

Get open, high, low, close, volumefrom and volumeto from the each hour historical data.

It uses BTC conversion if data is not available because the coin is not trading in the specified currency.

Example

    let option: Options = Options { exchanges: "Bitfinex", try_conversion: false };
    let limit: u64 = 3;
    let history_hour = cryptocompare::get_history_hour("BTC", "USD", &option, &limit);