Module parser_utils

Module parser_utils 

Source
Expand description

Common parser utilities for exchange data parsing.

This module provides shared utility functions for parsing JSON data from exchange API responses into Rust types.

Functionsยง

datetime_to_timestamp
Convert ISO8601 datetime string to millisecond timestamp.
parse_decimal
Parse a Decimal value from JSON (supports both string and number formats).
parse_timestamp
Parse a timestamp from JSON (supports both string and number formats).
timestamp_to_datetime
Convert millisecond timestamp to ISO8601 datetime string.
value_to_hashmap
Convert a JSON Value into a HashMap<String, Value>.