Questions tagged [quote]
The quote tag has no summary.
35 questions
0 votes
1 answer
381 views
Why does my lookup function keep returning "None"?
I have the latest (I think) distribution code and I have exported the API key. Here is my code and it keeps returning 'None'. I can't figure out why I can't look up a stock quote. Do I need to change ...
0 votes
1 answer
589 views
PSET 9 Quote function not working correctly
Lookup function always returns "None". Weirdly the same code produced correct results yesterday but as of today it stopped. Any thoughts why? The code for the quoted.html and application.py ...
0 votes
1 answer
1k views
C$50 Finance Buy and Quote not working
When I test my code myself, it seems to work, but check50 is showing otherwise. Quote has a single problem, and buy has two problems, but I am not able to figure out where in the code is the error and ...
4 votes
1 answer
7k views
Pset7 - :( quote handles valid ticker symbol
Check50 showed me expected to find "28.00" in page, but it wasn't found. I don't know where is my mistake. Can anyone help me out? Any help will be greatly appreciated. Here is my quote(): @app....
0 votes
1 answer
419 views
PSET7 Finance- Quote and Buy not passing all checks
I've just come back to CS50 after the semester ended and have been trying to debug my program to no avail. The application appears to be working when I test it myself, passes all checks, but has ...
0 votes
1 answer
500 views
Finance - Quote - 500 Internal Server Error
I'm really at a loss after trying to get Quote to work for the past two days. I'm able to get the quote.html page to seemingly work but the json query and transfer to quoted.html returns a 500 "...
0 votes
1 answer
756 views
pset7 Finance quote not returning anything?
I am working on pset7 finance quote and my code isn't displaying anything in the form that returns the data about the stock to the user. I did some research in the forums and it sounds like there was ...
0 votes
1 answer
280 views
Pset 7 - CS50 Finance: "Quote" keeps redirecting me to a register error
When I enter a symbol (stockticker) on my quote page, when I click "submit" the website redirects me to a register page error (403: Must Provide Username) Why would this happen? I don't even see any ...
0 votes
0 answers
808 views
Pset7 buy and quote do not pass check50
I ran my code through check50 and it didn't clear the following 2 checks: :( quote handles valid ticker symbol expected to find "28.00" in page, but it wasn't found :( buy handles valid purchase ...
1 vote
1 answer
74 views
Helper in finance seems to be missing name
I am currently working on the C$50 Finance problem. The assignment asks to return the stock's name, price and symbol but in the return dict from the helper the name seems missing.. (whereas the ...
0 votes
1 answer
262 views
pset7, html: {{ stock.name }} displays same value as {{ stock.symbol }}?
I have question with displaying values from stock structure that returns by lookup - name and symbol are the same. Here is how quoted.html is called #ask for stock stock_symbol = lookup(request.form....
1 vote
0 answers
148 views
Pset7 - Quote always returning apology
So, I'm struggling with pset7 a lot (mostly because I've never programmed before either =/) now I'm on quote and it's always rendering an apology after I fill in the form. I can't quite figure out ...
0 votes
1 answer
2k views
Pset7 finance quote problem
I'm trying to get the stocks by quote and it worked just fine a week ago but it suddenly stopped working. Can someone please explain me what has changed and how I should alter my code to get it ...
0 votes
1 answer
54 views
else syntax error finance
I am on pset 7 and my quote function is throwing me a syntax error on else. Anyone can detect it? I know that an error where it is obvious mean that the lines before might be errorneous, but I can't ...
0 votes
1 answer
532 views
pset7 finance- quote 'nonetype' object error
I am new to python and am very confused by this error message: AttributeError: 'NoneType' object has no attribute 'startswith' I think it has something todo with nothing being passed into the lookup ...