Questions tagged [lookup]

The tag has no usage guidance.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
875 views

AlphaVantage API Error “Please consider optimizing your API call frequency”

On C$50 Finance, when I refresh my web server too many times, AlphaVantage stops returning stock quotes. As a result, Flask returns "TypeError: 'NoneType' object is not subscriptable" when my code ...
1
vote
0answers
99 views

Cannot download csv file from yahoo in pset7

i have proxy server in my college through which the internet is accessed. I had setup my appliance to work with proxy as given in the cs50 appliance manual. Now in pset 7 while calling the lookup() ...
0
votes
1answer
99 views

Finance PROBLEM with lookup: TypeError: quote_from_bytes() expected bytes

I have Finance barely ready but like most codes, it has a buggy near the finish line. I have a problem with lookup. Always return None. I check it. and Terminal shows this error: TypeError: ...
0
votes
1answer
209 views

CS50 Finance lookup function always returns NONE

After a week or so of idle i returned to finance and tried to chek my buy function. I bought some stocks of apple(AAPL) but got invalid symbol error, when i tried to use quote(this function always ...
0
votes
0answers
41 views

Pset7 buy route error due to API use by lookup function

I am experiencing an error each time I call the lookup function within the buy route when the request method equals post. However, calling lookup during quote does not result in the same error. I ...
0
votes
0answers
198 views

pset7 - buy() , problem accesing the dictionary that was returned when calling the lookup function

I'd been struggled with this. Here's my code: @app.route("/buy", methods=["GET", "POST"]) @login_required def buy(): if request.method == "GET": return render_template('buy.html') ...
0
votes
1answer
408 views

Not able to get values from lookup function

i am trying to show user his current portfolio but from the output it seems that i am not able to access pre-built lookup function.also i am directed to portfolio page without asking for login or ...
0
votes
1answer
44 views

Why is all my check50 server2 red?

Below are my parse() and lookup() functions for server.c pset6. I have gone over and over but maybe I didn't understand what lookup does. Any help is highly welcome and appreciated. My check50 for ...
0
votes
0answers
39 views

pset6 lookup and parse - don't compile please help

I wrote codes for lookup and parse functions. It does not compile. Can anyone spot obvious errors?
0
votes
0answers
102 views

Test file for pset's 6 lookup creates numerous errors

I've created a new file in order to test my lookup function for pset6. Here's the content of my test file: #include <stdio.h> #include "server.c" int main(int argc, char* argv[]) { ...