Questions tagged [pset9]

The tag has no usage guidance.

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

Cs50 Finance :(sell handle valid sales :values appearing in index table but check50 doesnt recognise it

updated the code to display history properly,ie when sold shows negative,and when bought shows positive updated index to remove entire row when stocks is 0 I cant figure out why check 50 is not ...
0
votes
0answers
10 views

How do I get an API key from IEX?

I've just started on pset9 finance, but I can't create an account with IEX. When I try, it tells me that my email address is already in use (this is definitely not true - I'm using a relatively new ...
0
votes
0answers
25 views

Pset9 problem at check50 tests

hello, i've tried "112.00" in my solution and cs50's solution and the result is same "invalid shares" but i don't know why this error occur. i'm really stuck any help please
0
votes
0answers
20 views

Pset Finance - issue with usd

I'm stuck with pset9 Finance... When I try to sell a quote and return to index.html, I have an error with : File "/home/ubuntu/pset9/finance/templates/index.html", line 1, in top-level ...
0
votes
1answer
32 views

What mistake am I doing in the below "buy" and "sell" code.? I get the below errors from check50

I get the below error from check50: :( buy handles invalid ticker symbol application raised an exception (see the log for more details) :( buy handles fractional, negative, and non-numeric shares ...
0
votes
0answers
19 views

My "register" function in pset9 is not working

What mistake am I doing in the code below for pset9 "register" function: @app.route("/register", methods=["GET", "POST"]) def register(): """...
0
votes
1answer
36 views

Buy/Sell on Index - button attributes & form value issues

I've got a couple issues adding my own buy/sell buttons to the index page. First, each "Buy" or "Sell" buttons opens up the form for all of the table rows. How can I modify these ...
0
votes
0answers
134 views

Pset 9 finance-Problems for type= number output on the webpage

I am working on a CS50 task called "finance". The problem is that I get an error when I want to check the integer value of the share amount and put it on a separate template for checking my ...
0
votes
1answer
38 views

Buy Finance Pset9 Cash not working

I am working on pset9 finance and I have been stuck for a while on it, especially this part: cash = db.execute("SELECT cash FROM users WHERE user_id = :userid", userid= ...
0
votes
1answer
44 views

PS9 Finance - Check50 - :( buy handles valid purchase

I am running into an issue with check50 on my buy function. Check50 gives me the following error: :( buy handles valid purchase Cause application raised an exception (see the log for more details) ...
0
votes
0answers
16 views

Index route_TypeError: 'NoneType' object is not subscriptable

I tried to run the program and encountered this error: My code: @app.route("/") @login_required def index(): """Show portfolio of stocks""" # Selecting ...
0
votes
0answers
18 views

database schema for finance PSET9

Just wondering what the best database design is for this particular pset. ATM I have a table for trades which serves to record all transacsatsions (buy and sell), each trade has an unique id, and ...
0
votes
0answers
68 views

C$50 Finance: ":( sell handles valid sale expected to find "56.00" in page, but it wasn't found"

Check50 does not seem to think that the values in my table in index.html are updating correctly. After an afternoon of testing and searching through here and stackoverflow for similar issues, I cannot ...
0
votes
1answer
100 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
0answers
77 views

Pset9 Finance| "Index table" doesn't display all the companies

I'm doing pset9 "Finance" and I've designed the two tables in the database, one with purchases and the other with transactions. Now when I render the index page, the shares of only one ...
0
votes
0answers
35 views

PSET 9Help with SyntaxError: invalid syntax error

The SyntaxError: invalid syntax error points me to line 75, but I cant see what is wrong there. Please I need help to identify possible reason. When i run Flask, the server crashes. 192.168.1.172 -...
0
votes
0answers
99 views

PSet9 Finance: Check50 register function exception - 'NoneType' object not subscriptable

I recently completed Pset9 (everything seems to be running fine on the local server) and decided to run a check50 before submitting. However, Check50 marked two issues in my register function: "...
0
votes
0answers
125 views

What's wrong with my register function? (Pset9 - Finance)

Here's my register function in application.py: @app.route("/register", methods=["GET", "POST"]) def register(): """Register user""" ...