-
Notifications
You must be signed in to change notification settings - Fork 35
refactor and fix skip gold #196
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the cycle scheduling logic by extracting delay and asset selection into separate methods, and adds logic to skip gold (XAU) trading during inappropriate times.
Key Changes:
- Extracted delay calculation logic into
select_delay()method - Extracted asset selection logic into
select_asset()method with added XAU skip functionality - Removed obsolete comment from
get_latest_asset()method
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| synth/validator/miner_data_handler.py | Removed outdated comment about returning the asset with the least count |
| neurons/validator.py | Refactored schedule_cycle() by extracting delay and asset selection logic into separate methods, and added XAU skip logic |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
c16a513 to
860c96e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.