Subscribe to RSS feed Shares Quantity Now Supports Decimal Values!

By Evankoh posted on 10 Aug 2018  -  45,547 views


Firstly, I would like to apologize to users who were affected by this "migration" last night and seeing errors on many StocksCafe pages. I was making a seemingly simple change, but is actually more complicated. I was making a database change for the field "shares quantity" from only accepting whole numbers (i.e. integers) to allow decimal values (i.e. floats). As integers and floats are considered different beasts (at least in Java), StocksCafe's code needed to be significantly changed since "shares quantity" is used in numerous places.

It should be fine now, but please report if you see any issues.

The main motivation for this change was because it was requested by Friends of StocksCafe, and their reasoning is that with robo-advisor and regular share-buying schemes, partial shares are often being transacted. With the growing popularity of such approaches, it is only reasonable that StocksCafe also starts to support decimal values for shares quantity to keep up with times :)

Thank you all for continuously helping StocksCafe improve!

Happy investing!


Like
5 likes
0 comments



Next Article > < Previous Article
Regularly Export Your StocksCafe ... StocksCafe Now Fully Supports US ...



List All Articles Other articles by Evankoh

Invisible Updates
On average, I spend one to two hours a day working on SGXcafe. Sometimes, the features added are large and obvious. At other times, they are essentially invisible to most users. Today, I would like to share a few "invisible" feature updates that have been made recently. 1) Desktop view on mobile phones As mobile phone screens become larger, there have been requests to view the standard desktop view ...

Are You Using The New Stock Screener? Why or Why Not?
Since the introduction of the new stock screener, I have received numerous requests to add more metrics and/or to add more ways to build the constraints so that different strategies can be easily implemented using the new screener. Hence the number of metrics have grown, from the initial 30 to the current 60+ different metrics covering both technicals and fundamentals. The number of ways to build the ...

Introducing The New Stock Screener
Previously, I mostly viewed "What stocks to buy" as a ranking problem. What this means is that I would rank all the stocks available based on some criteria and pick the top few to purchase. Hence, tools that I built tend to generate a score and ranked accordingly. Examples are iAssist, Dividend Strength and Scorer (Scorer was previously known as Screener). However, after taking the eVIMC course and ...