Function cryptocompare::get_history_day [] [src]

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

Get open, high, low, close, volumefrom and volumeto daily historical data.

The values are based on 00:00 GMT time. 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_day = cryptocompare::get_history_day("BTC", "USD", &option, &limit);