Skip to main content

Module util

Module util 

Source
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 l2Book JSON response.
parse_position_szi
Parse a position’s size and side from a clearinghouseState JSON response.
parse_str_decimal
Parse a serde_json::Value as a Decimal.