get_currency

Function get_currency 

Source
pub fn get_currency(code: &str) -> Currency
Expand description

Returns a currency from the internal map or creates a new crypto currency.

Uses Currency::get_or_create_crypto to handle unknown currency codes, which automatically registers newly listed BitMEX assets.