-
Notifications
You must be signed in to change notification settings - Fork 145
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
docs updatee #487
docs updatee #487
Conversation
polygon max retry bug fix
bug fix for spark chart
Update README.md
* Improved messaged with url call * Improved messaged with url call
Docs improvements
My review is in progress 📖 - I will have feedback for you in a few minutes! |
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.
I have reviewed your code and found 6 potential issues. To discuss my individual comments that I have added, tag me in replies using @korbit-ai.
Please react with a 👍 to my comments that you find helpful and a 👎 to those you find unhelpful - this will help me learn and improve as we collaborate.
f"Polygon rate limit reached. Sleeping for {PolygonClient.WAIT_SECONDS_RETRY} seconds before trying again. If you want to avoid this, consider a paid subscription with Polygon at https://polygon.io/?utm_source=affiliate&utm_campaign=lumi10 Please use the full link to give us credit for the sale, it helps support this project. You can use the coupon code 'LUMI10' for 10% off.", | ||
"red", | ||
except MaxRetryError as e: | ||
url = urlunparse(urlparse(kwargs['path'])._replace(query="")) |
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.
@@ -506,7 +511,6 @@ class PolygonClient(RESTClient): | |||
''' Rate Limited RESTClient with factory method ''' | |||
|
|||
WAIT_SECONDS_RETRY = 60 |
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.
@@ -3904,6 +3904,9 @@ def send_spark_chart_to_discord(self, stats_df, portfolio_value, now, days=180): | |||
# Resanple the stats dataframe to daily but keep the datetime column | |||
stats_df = stats_df.resample("D", on="datetime").last().reset_index() | |||
|
|||
# Drop the cash column because it's not needed | |||
stats_df = stats_df.drop(columns=["cash"]) |
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.
"Polygon rate limit reached.\n\n" | ||
f"REST API call affected: {url}\n\n" | ||
f"Sleeping for {PolygonClient.WAIT_SECONDS_RETRY} seconds seconds before trying again.\n\n" | ||
"If you want to avoid this, consider a paid subscription with Polygon at https://polygon.io/?utm_source=affiliate&utm_campaign=lumi10\n" |
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.
@@ -5,7 +5,7 @@ | |||
|
|||
setuptools.setup( | |||
name="lumibot", | |||
version="3.5.10", | |||
version="3.5.12", |
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.
I noticed that the version number has been updated in the setup.py file. It would be helpful to include a brief summary of the changes made in this new version in the pull request summary or in the code comments. This will provide context for the version change and make it easier for others to understand what changes have been made.
logging.error(colored_message) | ||
logging.debug(f"Error: {e}") | ||
time.sleep(PolygonClient.WAIT_SECONDS_RETRY) |
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.
No description provided.