Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to estimate slippage for order size #5

Open
tiagosiebler opened this issue Jul 16, 2020 · 0 comments
Open

Add methods to estimate slippage for order size #5

tiagosiebler opened this issue Jul 16, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tiagosiebler
Copy link
Owner

tiagosiebler commented Jul 16, 2020

  • Input: order size & direction (buy/sell)
  • Process: iterate through bid/ask depth until full amount has been covered. Collect avg entry price required to do so.
  • Output: Price slippage in % to meet full order size.

Looks like someone did something similar (using this module as a store):
https://github.com/SantiagoIvan/challenge-ratherlabs-nodejs/blob/master/controller/orderBookController.js#L42-L70

@tiagosiebler tiagosiebler added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant