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

refactor: use only one target as a limit order #15

Merged
merged 3 commits into from
Jun 3, 2023

Conversation

matiasvillaverde
Copy link
Owner

  • refactor: save target as a limit order
  • feat: Add fee field to Stop and Target dialogs in trust-cli dispatcher.rs.

…r.rs.

- Add fee field to Stop and Target dialogs
- Changes made to dispatcher.rs
- Omitted some big changes in the diff summary
- Improvements to create_stop and create_target functions
… unnecessary parameters.

- Refactored various methods in different files to improve code readability and maintainability.
- Introduced a new `DraftTrade` struct and modified the `create_trade` function to use `DraftTrade` object instead of individual parameters for stop price, entry price, and target price.
- Removed unnecessary parameters, methods, and types to simplify the codebase.
- Improved user input validation in the `quantity` method of the trade dialog.
@matiasvillaverde matiasvillaverde merged commit f02f039 into main Jun 3, 2023
@matiasvillaverde matiasvillaverde deleted the refactor/orders branch June 12, 2023 16:06
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