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

Trade size risk model #1042

Merged
merged 36 commits into from
Sep 24, 2024
Merged

Trade size risk model #1042

merged 36 commits into from
Sep 24, 2024

Conversation

miohtama
Copy link
Collaborator

@miohtama miohtama commented Sep 20, 2024

  • Supports loading of TVL data as the part of load_partial_data
  • There is now PricingModel.get_usd_tvl()
  • Add a model to cap your trade and position sizes based on a risk
    • Fixed per pair
    • Based on collected USD TVL estimations
  • If alpha model portfolio positions become size-capped, redistribute the remaining equity to other positions
  • Supports sorting of credit positions in TradeExecution.get_execution_sort_position()

@miohtama miohtama merged commit 4e609d0 into master Sep 24, 2024
4 of 5 checks passed
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.

1 participant