simple_price

Macro simple_price 

Source
macro_rules! simple_price {
    ($ids: expr,
        $vs_currencies: expr) => { ... };
    ($ids: expr,
        $vs_currencies: expr,
        $include_market_cap:expr,
        $include_24hr_vol: expr) => { ... };
    ($ids: expr,
        $vs_currencies: expr,
        $include_market_cap:expr,
        $include_24hr_vol: expr
        ) => { ... };
    ($ids: expr,
        $vs_currencies: expr,
        $include_market_cap:expr,
        $include_24hr_vol: expr,
        $include_24hr_change: expr) => { ... };
    ($ids: expr,
        $vs_currencies: expr,
        $include_market_cap:expr,
        $include_24hr_vol: expr,
        $include_24hr_change: expr,
        $include_last_updated_at: expr) => { ... };
}
Expand description

Get the current price of any cryptocurrencies in any other supported currencies that you need.

Equivalent to the crate::simple::price function.

ยงExamples

rust_gecko::simple_price!(vec!["bitcoin", "litecoin"], vec!["usd", "lkr"]);