Expand description
Utility functions (coin normalization, JSON parsing helpers).
Functions§
- normalize_
coin - Normalize a coin symbol by stripping common suffixes and uppercasing.
- parse_
mid_ price_ from_ l2book - Parse the mid price from an
l2BookJSON response. - parse_
position_ szi - Parse a position’s size and side from a
clearinghouseStateJSON response. - parse_
str_ decimal - Parse a
serde_json::Valueas aDecimal.