Skip to main content

parse_expiry_date_to_unix

Function parse_expiry_date_to_unix 

Source
pub fn parse_expiry_date_to_unix(
    currency: &str,
    expiry: &str,
) -> Result<u64, String>
Expand description

Parse a YYYY-MM-DD expiry date into the Unix timestamp at which the given currency’s instruments expire on that date.