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

Automatically calculate observation change lots #73

Open
Henry-E opened this issue Mar 25, 2024 · 0 comments
Open

Automatically calculate observation change lots #73

Henry-E opened this issue Mar 25, 2024 · 0 comments

Comments

@Henry-E
Copy link
Collaborator

Henry-E commented Mar 25, 2024

There's a variable max_observation_change_per_update_lots which is now used to update the TWAP. The problem is that these updates lots vary based on the base and quote lots. So a $5 change might be 5_000 lots or 50_000 lots depending on the base lot size. Therefore to avoid any unfortunate mistakes, we should add a function that takes some absolute dollar value, e.g. $5 / 5_000_000 and automatically calculates the correct max_observation_change_per_update_lots based on the base and quote lots of the market.

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

No branches or pull requests

1 participant