Tuesday, November 15, 2022

Rust pop-quiz: inverse order book ratios

Rust pop-quiz:

My FIN graph examples are directed WITH the flow of the order book ratios.

What happens when I wish to SELL, e.g.: $axlUSDC for $USK?

The ratio is inverted.

Write inverse_ratio that takes an OrderBook and returns the inverse ratio. 


No comments:

Post a Comment