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

Test slippage calculation with real data #85

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Test slippage calculation with real data #85

merged 3 commits into from
Aug 22, 2024

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Aug 22, 2024

This PR creates a new set of tests for the prediction of the volatility and calculation of the slippage

It is a follow up to #84, where I added assertion for this algorithm based on how it should behave on certain cases. This cases, were using a small number of points that were made up.

This PR is about sourcing the algorithm with real price points for various markets. This way, we can make sure the algorithm works well with realistic data.

These are the tests I introduced:
Screenshot at Aug 22 14-09-21

There will be one test per file in this folder:
Screenshot at Aug 22 14-09-29

Each file defines the expectations and the prices used to mock the repository, so we can make these tests reproducible.

Screenshot at Aug 22 14-10-44

@anxolin anxolin changed the title Test real data Test slippage calculation with real data Aug 22, 2024
Base automatically changed from slippage-calculation to main August 22, 2024 15:28
@anxolin anxolin merged commit 4eaa935 into main Aug 22, 2024
5 checks passed
@anxolin anxolin deleted the test-real-data branch August 22, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants