HardlyDifficult / Crypnostic

WIP - C# API for various Crypto Exchanges
MIT License
26 stars 5 forks source link

Calculate marketprice for specific amount #13

Closed ghost closed 6 years ago

ghost commented 6 years ago

Calculate the marketprice for x amount of coins by adding the best bids/asks from the orderbook together while considering their amounts.

HardlyDifficult commented 6 years ago

In addition to checking depth for x amount of coins, could offer:

HardlyDifficult commented 6 years ago

From wumm: The algorithm: https://pastebin.com/U8TuKDkJ

HardlyDifficult commented 6 years ago

WIP. This and the "best" methods are tools. I think we should extract into a separate class.

HardlyDifficult commented 6 years ago

Done. Lemme know if there is something we missed.