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

⬆️ 🤖 - You are standing on my toes #497

Merged
merged 4 commits into from
Aug 22, 2024
Merged

⬆️ 🤖 - You are standing on my toes #497

merged 4 commits into from
Aug 22, 2024

Conversation

mraniki
Copy link
Owner

@mraniki mraniki commented Aug 21, 2024

Auto Release

Summary by Sourcery

Add a new DegiroHandler class to support trading operations using the Degiro API, enhancing the system's capability to interact with Degiro for financial trading.

New Features:

  • Introduce a new DegiroHandler class to handle trading operations via the Degiro API, including methods for fetching quotes, account balance, account position, and executing orders.

Copy link

sourcery-ai bot commented Aug 21, 2024

Reviewer's Guide by Sourcery

This pull request introduces a new DegiroHandler class for handling Degiro API interactions within the cefi/handler module. The changes include adding a new file degiro.py with the DegiroHandler class implementation and updating the init.py file to import this new handler (currently commented out).

File-Level Changes

Files Changes
cefi/handler/degiro.py Added a new DegiroHandler class that extends CexClient to interact with the Degiro API
cefi/handler/degiro.py Implemented methods for fetching quotes, account balance, positions, and executing orders using the Degiro API
cefi/handler/__init__.py Added commented-out import for DegiroHandler in the handler module's init.py

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mraniki - I've reviewed your changes - here's some feedback:

Overall Comments:

  • The entire implementation is commented out, making it difficult to review. Please uncomment the code when it's ready for review and ensure all TODOs are addressed.
  • Consider adding documentation and tests for the new DegiroHandler to ensure its functionality and ease of use.
  • There seems to be a mix of async and sync operations in the code. Please ensure consistency in the asynchronous approach throughout the handler.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 34.00000% with 33 lines in your changes missing coverage. Please review.

Project coverage is 69.26%. Comparing base (115f99c) to head (28fff57).

Files Patch % Lines
cefi/handler/degiro.py 31.25% 33 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #497      +/-   ##
==========================================
- Coverage   74.48%   69.26%   -5.23%     
==========================================
  Files           7        8       +1     
  Lines         439      488      +49     
==========================================
+ Hits          327      338      +11     
- Misses        112      150      +38     

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

@mraniki mraniki merged commit f4d07ec into main Aug 22, 2024
3 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