Timeline for cs50 pset7 finance index function, index page returns html table with multiple instances of only one transaction
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 17, 2017 at 5:01 | vote | accept | bobby_pin | ||
Apr 17, 2017 at 5:00 | comment | added | bobby_pin | ok sorted it out, of course I had to use lookup according to the stock that i already own in my holdinds... just got confused that in that way I would be displaying the price that I paid at the time of purchase rather than actual market price. Thanks a lot | |
Apr 16, 2017 at 10:49 | comment | added | DinoCoderSaurus |
There is no such thing as symbol['symbol'] . Read your code carefully.
|
|
Apr 16, 2017 at 7:12 | comment | added | bobby_pin | Ok I have fixed that, but now I can't get the current stock price with lookup function, how to pull current stock price? symbolInfo = lookup(symbol['symbol']) gives me error NameError: name 'symbol' is not defined | |
Apr 15, 2017 at 10:39 | comment | added | DinoCoderSaurus |
for holding in holdings iterates through each element in holdings. Why would you then holding = {} , ie set it to an empty dictionary? See emphasis added to answer for "the part you missed".
|
|
Apr 15, 2017 at 10:35 | history | edited | DinoCoderSaurus | CC BY-SA 3.0 |
emphasis
|
Apr 15, 2017 at 8:46 | comment | added | bobby_pin | I tried, but I still have the same problem, can you please check my code again? Thank you. | |
Apr 12, 2017 at 12:30 | history | answered | DinoCoderSaurus | CC BY-SA 3.0 |