thiagoprochnow / carteiradeativos Goto Github PK
View Code? Open in Web Editor NEWProjeto da carteira automatica de ativos.
Projeto da carteira automatica de ativos.
Provider needs to be changed so the database will have a table for incomes.
Right now, if a user adds 100 of ITUB4 stock and afterwards adds 200 of ITUB4, it will show as a total of 200 ITUB4.
The correct approch would be to have the sum of both values as total.
Also, it is needed that both values are stored separately on database as for example:
ITUB4, 100, ... 23.50, 10/04/2015
ITUB4, 200, ... 27.62, 17/08/2016
And on the portfolio will show ITUB4 as 300 quantity.
Now there is only a table with stock buys and sells.
Should create a table with the user portfolio so adapter can read values from this table.
Should be like:
StockQuotes:
ITUB4 100 03/05/2015...
ITUB4 100 10/07/2016...
StockPorfolio:
ITUB4 200 (AverageBoughtPrice), (CurrentPrice), (Gain)...
On the add stock form, in the objective field, I cannot input a 2 digits value, for example "12.50". When trying to insert, the value stops at "." and cannot input anything else, it stays as "12.".
This is an idea to simplify our option. Maybe we don't need a separed section for statistics.
Maybe we should add those statistics inside Complete Portfolio section.
Let's discuss about.
When wanting to add a new investiment, like a new stock, now it is showing a DialogFragment when clicking on FAB button. The issue here is to change so it will show the new stock form on a Fragment instead.
When clicking on a the stock cardview, should open a new activity to show more datails of that stock like:
When doing long press on a investment cardview, should appear a dialog to select "Edit" or "Delete" of that investment.
For now, there will be no change on the content provider. The objective is to make the "Edit" and "Delete" option available.
Right now the addDividend function is using a dummy quantity of 100 to multiple by inserted value of per stock.
This needs to change to get the actual value of that stock owned by the user and multiply by the inserted value per stock to get the current total of the income.
Example:
ITUB4|200:
Inserted per stock: R$3,00/stock
Total income: 200 * 3,00 = R$600,00
PETR4|100:
Inserted per stock: R$1,00/stock
Total income: 100 * 1,00 = R$100,00
Start the development of a fragment to register Dividends.
When clicking on the menu option, the intent will receive the selected stock (EX: PETR4), so the user can register a new Dividend with fields "Date of Receive" "Value per Stock" received.
After setting values, will be saved on database as (Stock, Value/stock, date).
Need to add "R$" for all stock value fields:
Exempla: Buy Total now show 2500,00, but should show R$2500,00.
Make the GetStock request for multiple symbols
Delete is not working due to a non existing URI in the provider.
In my opinion it is not necessary to delete the register of table Symbol
This could help user correct the wrong/incomplete form field. Without it, user could not understand what he's filling wrong in the form.
Currently, we're using values/strings.xml for pt-BR. Our app should have at least English and PT-BR.
Develop the repository to be used instead of call the provider directly
Politica-Comercial-de-Market-Data-BMFBOVESPA-VIGENTE.pdf
We all need to read and understand this policy of BMFBOVESPA
Dividend receive value should only be for stocks that were bought before ex date.
Example:
ITUB4 100 buy date: 02/03/2015
ITUB4 200 buy date: 02/03/2017
Receive dividend: R$2,5 per stock Ex date 02/03/2016 -> Total = 1002,50 = 250
Receive dividend: R$2,5 per stock Ex date 03/03/2017 -> Total = 3002,50 = 750
Total received = R$1000,00
I can input "Buy Price" on add stock form with wrong value, for example "34.4567898". It does not show as wrong input value. Maximum should be of 2 digits, like "34.45".
When going to a Buy Form, cannot select date field when in landscape mode.
Need to fix so it can be scrolled through the whole form.
Right now, if you add a dividend when selecting "ITUB4 -> Add Dividend", the added values will also show for other stocks like "PETR4".
To fix this, the database needs to store the symbol value for that income and filter in the adapter to only show the incomes for that stock symbol.
Example:
ITUB4:
Dividend R$32.50
03/05/2012
PETR4:
Dividend R$12.43
01/07/2015
Code clean up and formattting:
On AddStockFormFragment, inputSymbol (String) is being inserted in a INTEGER field (COLUMN_SYMBOL) and the code is working. Need to check why with a wrong value it is still working, may result in inconsistency in the future.
Check for:
// TODO: Check why inputSymbol(string) is working when COLUMN_SYMBOL is INTEGER
When user is inputting a date, it should automaticly input the "/" character when needed. This can be done by regex function.
Should do for all developed fields already.
Do it in the BaseDialogFragment, so all DialogFragments can use the same function.
Need to develop the option for the user to sell a Stock.
For this, it will use the same StockQuote table, but will add a flag field on it saying if operation was "bought" or "sold" stock.
Need to check if user is not selling more stock then he owns.
Example:
Sell 200 Stocks of ITUB4, but owns 100 Stocks of ITUB4. That is an invalid command, because he is selling more stocks than owned.
Stock list layout should be improved to fix items alignment.
There are several items being displayed in two lines, instead of one, for example.
Also, some items are being cropped in the sides.
#Start the development of a fragment to register Bonification.
When clicking on the menu option, the intent will receive the selected stock (EX: PETR4), so the user can register a new Bonification with fields "Date of Receive" "Cost per Stock" "Stocks Received".
After setting values, will add values to that stock profile.
Back button is returning to wrong fragment in Add Stock Form. It is returning to the "Carteira Completa" fragment, when it should return to the Stock Main Fragment.
There is no need to use the components of 'br.com.livroandroid:android-utils:1.0.5'. I also don't know if the license if Opensource usage.
If possible try to remove it
When adding a new stock, need to check if there is income that was received after stock buy date.
Example:
If user registered ex income on 03/05/2015. Afterwards user adds stock bought on 01/05/2015, this added stock will affect received income, so the total value of received income needs to be updated.
Same for when selling a stock, it might have been sold before the ex dividend date.
Add or change the description in README.md to english
@allerasouza
This is a task to make the Currency (Moedas) main screen and when clicking the FAB button should appear the FormFragment to add a new Currency.
The CardView layout will need to be discussed for better showing, for now, leave similar to stock and FII CardViews, even if it results in layout breaking.
The Form fields should be:
1 - Select the currency bought (For now only Dolar, Euro, Ouro)
2 - Select the amount bought of that coin (Ex: 1000,00 Dolares)
3 - Portfolio objective (Ex: 20%)
4 - Date of the buy (dd/mm/aaaa)
After clicking "Comprar", a new currency card view should be added.
Tip: Development is similar to that of FII for now.
On the Stock card view layout, the field for the objective and current percent is moving depending on the added stock quantity.
This is happening because percent layout size is dependent of the quantity layout size.
Start the development of a fragment to register Juros sobre Capital.
When clicking on the menu option, the intent will receive the selected stock (EX: PETR4), so the user can register a new Juros sobre Capital with fields "Date of Receive" "Value per Stock before tax" received.
After setting values, will be saved on database as (Stock, Value/stock, date)
01-29 15:53:28.890 28624 28624 E AndroidRuntime: FATAL EXCEPTION: main
01-29 15:53:28.890 28624 28624 E AndroidRuntime: Process: br.com.carteira, PID: 28624
01-29 15:53:28.890 28624 28624 E AndroidRuntime: java.lang.NumberFormatException: Invalid double: ""
01-29 15:53:28.890 28624 28624 E AndroidRuntime: at java.lang.StringToReal.invalidReal(StringToReal.java:63)
01-29 15:53:28.890 28624 28624 E AndroidRuntime: at java.lang.StringToReal.parseDouble(StringToReal.java:267)
Implement removeStock() to delete a stock from the database along with all of its information.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.