ped's People
ped's Issues
`sell` stock with negative quantity registers error in total profit/loss in `view`
sell
stock with negative quantity registers error in total profit/loss in view
When sell
command is used with negative quantity
as seen in bug issue #2, the program incorrectly records it the same way as the buy
command. This can be seen in above screenshot where sell /aapl -1' incremented the number of
aaplstocks from
4to
5when the
viewcommand was called. Due to this incorrect method of updating the stock count, the
Total Profit/Losssection in the
viewcommand registers an
error!` instead of a value as expected in the User Guide.
`sell` Command is accepting negative integers as input
sell
Command is accepting negative integers as input
As per the user guide, the quantity specified by the user to sell the stocks is an integer (as seen in sell /STOCK_TICKER quantity
). However, when a negative integer is being provided as input to quantity as seen in the above screenshot (sell /tsla -1
), the user is still able to sell the stock as though the quantity
provided by the user as input is 1
and not -1
, where an error should be returned for the latter case.
`parseCommand` execution unnecessarily shown
As seen in the above screenshot, information such as the following is being displayed when . a command is called:
Oct 30, 2020 5:27:00 PM seedu.duke.parser.Parser parseCommand
INFO: going to start processing command
Such information is not relevant to the user and the developers can consider removing them.
Failed to fetch price from API in `buy` command
Failed to fetch price from API in buy
command
The buy
command when used correctly as specified in the user guide returned a failure to fetch price of stock from API as seen in the above screenshot for buy /aapl 2
. It was only when the user input the same command with same input arguments again that the program worked as specified.
Details returned by `mark` command not shown as per UG
Details returned by mark
command not shown as per UG
In .jar file
In UG
The details being returned by the mark
command in the program as per the .jar file is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy
, sell
, etc. and in order to maintain consistency in documentation, it should also be done for this mark
command.
Details returned by `bookmarks` command not reflected in UG
In .jar file
In UG
The details being returned by the bookmarks
command in the program as per the .jar file is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy
, sell
, etc. and in order to maintain consistency in documentation, it should also be done for this bookmarks
command.
Details returned by `search` command not specified in User Guide
Details returned by search
command not specified in User Guide
In .jar file
In User Guide
The details being returned by the search
command in the program as per the .jar file
is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy
, sell
, etc. and in order to maintain consistency in documentation, it should also be done for this search
command.
Details returned by `unmark` command not specified in UG
In .jar file
In UG
The details being returned by the unmark
command in the program as per the .jar file is not accurately reflected in the User Guide as seen in the aforementioned screenshots. This is done for other commands such as buy
, sell
, etc. and in order to maintain consistency in documentation, it should also be done for this unmark
command.
No txt file generated
Failed to fetch price from API in `bookmarks` command
`buy` Command is accepting negative integers as input
buy
Command is accepting negative integers as input
As per the user guide, the quantity
specified by the user to purchase the stocks is an integer (as seen in buy /STOCK_TICKER quantity
). However, when a negative integer is being provided as input to quantity
as seen in the above screenshot (buy /fb -2
), the user is technically "selling" the stock instead of the program returning an error. This is a functional bug that can be fixed since the sell
command is reserved for this function.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.