Skip to main content

normalize_asset_key

Function normalize_asset_key 

Source
pub fn normalize_asset_key(code: &str) -> String
Expand description

Normalizes a venue asset key whose casing is not guaranteed.

The Kraken Futures account endpoints key balances by their own spelling, which is not consistently upper case, so match on the upper-cased key and return the standard code.