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

feature: save logs from sync #24

Merged
merged 2 commits into from
Jun 15, 2023
Merged

Conversation

matiasvillaverde
Copy link
Owner

  • feat: Refactor trade syncing to include broker logs
  • feat: Improve trade syncing functionality and error handling.

- Refactored `create_trade` method to use `DraftTrade` struct for improved readability
- Added new `sync_trade` method to sync trades with broker and update orders, with the ability to save broker log in database
- Improved error handling with better types and error messages
- Modified return types of `sync_trade` methods in multiple files to include `BrokerLog` struct
- Added new trade steps for different stages in trade process and new method to update target price
- Improved formatting and readability with multi-line function parameter formatting
- Add LogView to display broker logs during trade sync
- Update sync_trade function to return a BrokerLog
- Add error handling for account search in SyncTradeDialogBuilder
- Improve create_trade function to handle new order types
- Refactor integration test functions, removing unnecessary print statements and simplifying code
@matiasvillaverde matiasvillaverde merged commit ec49a18 into main Jun 15, 2023
@matiasvillaverde matiasvillaverde deleted the feature/save-logs-sync branch June 15, 2023 15: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.

1 participant