Skip to main content

Questions tagged [quote]

0 votes
1 answer
381 views

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 ...
Lperino's user avatar
  • 14
0 votes
1 answer
589 views

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 ...
Alexander Alexandrov's user avatar
0 votes
1 answer
1k views

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 ...
AK2150's user avatar
  • 11
4 votes
1 answer
7k views

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....
Anh Nhat Tran's user avatar
0 votes
1 answer
419 views

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 ...
Billy Currie's user avatar
0 votes
1 answer
500 views

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 "...
Scott's user avatar
  • 3
0 votes
1 answer
756 views

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 ...
CM23's user avatar
  • 21
0 votes
1 answer
280 views

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 ...
user avatar
0 votes
0 answers
808 views

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 ...
Prav Elan's user avatar
1 vote
1 answer
74 views

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 ...
lele701's user avatar
  • 21
0 votes
1 answer
262 views

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....
Nazariy Kushnir's user avatar
1 vote
0 answers
148 views

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 ...
Gabriel Luz Carpes's user avatar
0 votes
1 answer
2k views

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 ...
Wasp's user avatar
  • 5
0 votes
1 answer
54 views

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 ...
Ha Tran's user avatar
  • 74
0 votes
1 answer
532 views

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 ...
Iris Frenzy's user avatar

15 30 50 per page