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

fix: ExecutionResult with triggers #7

Conversation

Detoo
Copy link
Contributor

@Detoo Detoo commented Sep 5, 2024

Hi, I've just run across your project and loving it :)

I noticed a few edge cases where ExecutionResult with triggers (stop-loss, take-profit, etc.) would cause Serde data did not match any variant of untagged enum error, and it turns out that some of the TriggerDescription fields should be optional.

I've added the fix and an additional test to cover it. Please feel free to let me know what you think. Thanks!

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.83%. Comparing base (4f95007) to head (df3885f).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master       #7   +/-   ##
=======================================
  Coverage   89.83%   89.83%           
=======================================
  Files          27       27           
  Lines        1338     1338           
=======================================
  Hits         1202     1202           
  Misses        136      136           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Brendan-Blanchard
Copy link
Owner

This looks great! Thanks for hitting the corners I haven't had a chance to touch yet.

@Brendan-Blanchard Brendan-Blanchard merged commit 84c3a81 into Brendan-Blanchard:master Sep 6, 2024
4 checks passed
@Detoo Detoo deleted the fix_wss_v2_executions_triggers_fields branch September 6, 2024 16:50
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.

3 participants