Skip to content

Sabina#5

Open
sabinapun1 wants to merge 4 commits intoalexnaylor99:mainfrom
sabinapun1:sabina
Open

Sabina#5
sabinapun1 wants to merge 4 commits intoalexnaylor99:mainfrom
sabinapun1:sabina

Conversation

@sabinapun1
Copy link
Collaborator

No description provided.




PRICE_DROP_THRESHOLD = 0.25 #THRESHOLD FOR PRICE DROP

Choose a reason for hiding this comment

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

Very good use of variables to avoid magic numbers- falls within good coding standards




#FUNCTION THAT RETURNS LATEST PRICE STOCKS

Choose a reason for hiding this comment

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

Good use of comments to clarify code




time.sleep(300) #CHECKING PRICE AGAIN EVERY FIVE MINS

Choose a reason for hiding this comment

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

Frequency of every 5 mins aligns with the rate at which the source updates its stock prices, and so could have explained that in separate documentation


time.sleep(300) #CHECKING PRICE AGAIN EVERY FIVE MINS

except Exception as e:

Choose a reason for hiding this comment

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

Could have used exceptions more to avoid disruptions that come from all the inputs

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.

2 participants