Closed ghost closed 6 years ago
In addition to checking depth for x amount of coins, could offer:
From wumm: The algorithm: https://pastebin.com/U8TuKDkJ
WIP. This and the "best" methods are tools. I think we should extract into a separate class.
Done. Lemme know if there is something we missed.
Calculate the marketprice for x amount of coins by adding the best bids/asks from the orderbook together while considering their amounts.