Monday, November 28, 2022

Rust pop-quiz: parse_estimate

Rust pop-quiz.

Sometimes a FIN order book 24h volume is a number, like 102.93, but sometimes it's an estimate, like 1.19k.



Write a function that receives either of the above as a String and returns the f32 value.

What happens when 24h volume breaks a million tokens, I wonder?

No comments:

Post a Comment