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

[Sumtree]: Spot Price Adjustment for Order Direction #198

Merged
merged 3 commits into from
Jun 29, 2024

Conversation

crnbarr93
Copy link
Collaborator

What is the purpose of the change

These changes update the spot price calculation to account for the order direction. This means that on a tick with a 0.5 tick price the spot price for a Bid order would be 0.5 but for an ask would be 2, i.e. 1/(previous spot price).

Testing and Verifying

Updated the spot price test to account for the adjustment, this can be run using

cargo unit-test test_query_spot_price

@AlpinYukseloglu AlpinYukseloglu merged commit 6eb0431 into main Jun 29, 2024
2 checks passed
@AlpinYukseloglu AlpinYukseloglu deleted the connor/spot-price-adjustment branch June 29, 2024 18:26
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