maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Stockona - Google finance stock quote client (https://talk.maemo.org/showthread.php?t=73653)

sony123 2011-07-17 07:44

Re: [Announce] Stockona - Google finance stock quote client
 
Version 0.1.7 has been pushed to extras-devel. This is mainly a fine-tune/bug-fix release. What's new:
- Tweak to widget view to display more symbols. (+2 from 10 to 12)
- Improve position view memory usage, now Stockona memory usage drops down to ~13% on N900. This translate into a noticeable improvement to the scrolling smoothness.
- Error handling improvements for various error condition, e.g. local position error.
- Fix setting loading bug.
- Fix landscape chart view bug.
- Make all local portfolio operations immediate.
- Small tweak to make the progress bar at news view smooth instead of having a faint horizontal thin line.

I also created a blog to document the development work of Stockona:

http://sonyfever.blogspot.com/


Hopefully I could get some discussions that also improve my QT/QML coding.


BTW: I think this will be the near-final version for Meego coding competition as I will have very limited time to work on Stockona in the next two weeks.

Pencil 2011-07-18 06:05

Re: [Announce] Stockona - Google finance stock quote client
 
I've updated to the latest version and since than every time when I opened the program it said 'cannot load local portfolio'. Do I need to creat a local portfolio and how? If I don't have one can I shout down this feature? Thx.

sony123 2011-07-18 08:09

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by Pencil (Post 1053110)
I've updated to the latest version and since than every time when I opened the program it said 'cannot load local portfolio'. Do I need to creat a local portfolio and how? If I don't have one can I shout down this feature? Thx.

Thanks for reporting the bug. I should have realized the changes made to error handling would cause this false warning.

A bug-fixing release (0.1.8) has been released to extras-devel to fix the issue.

anismistry 2011-07-19 21:25

Re: [Announce] Stockona - Google finance stock quote client
 
can you please add chart support for index like .DJI and XJO

thanks

sony123 2011-07-19 23:24

Re: [Announce] Stockona - Google finance stock quote client
 
This is due to Google and Yahoo using difference symbol names.
The first one seems to be convertible because there seems to be a common rule, i.e. .DJI* in google = ^DJI* in yahoo. But for XJO, I don't see a general pattern to do the conversion so I'm afraid I can not do anything about it.

I will add .* conversion to the next release. One workaround for now is to create a local yahoo portfolio for yahoo symbols. I remember you had used it? How do you like it?

sony123 2011-07-20 17:45

Re: [Announce] Stockona - Google finance stock quote client
 
A new release (0.1.9) is available in extras-devel.

- Enhance yahoo symbol conversion so for symbols starting with . in google finance, their charts can be fetched correctly.
- Disable all C-side qDebug message to optimize performance.

anismistry 2011-07-21 23:40

Re: [Announce] Stockona - Google finance stock quote client
 
Hi William

i tried to make local portfolio and added JBH.AX as the only stock.

it shows the stock but it does not load the chart or the news.

this is problem with local portfolio only. Thanks

sony123 2011-07-22 22:25

Re: [Announce] Stockona - Google finance stock quote client
 
Thanks anismistry, I can re-produce the bug. Also from the issue you raised, I realized the exchange field is not needed it only adds confusion. I will fix that after July. This is a busy month for me : p

menno 2011-07-24 11:10

Re: [Announce] Stockona - Google finance stock quote client
 
My Stockona seems to have broken after the latest updates. It starts up and just shows a black screen.

I tried removing it and re-installing, but same result.

There is no /home/user/.stockona directory so not sure what the problem is. Any ideas?

sony123 2011-07-24 17:04

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by menno (Post 1057287)
My Stockona seems to have broken after the latest updates. It starts up and just shows a black screen.

I tried removing it and re-installing, but same result.

There is no /home/user/.stockona directory so not sure what the problem is. Any ideas?

Could you try launching Stockona in xterm by
1) Launch xterm
2) Type 'run-standalone.sh /opt/stockona/bin/stockona'

And tell me the debug message in the xterm. The sequence should be:

Code:

State.login
State.loadPortfolio
https://finance.google.com/finance/feeds/default/portfolios
loadOnePosition: https://finance.google.com/finance/feeds/xxx/portfolios/2/positions false true 1
State.main


sony123 2011-07-24 18:25

Re: [Announce] Stockona - Google finance stock quote client
 
Hi menno,

I think I have an idea what might be wrong...... could you check if you're seeing "httpss" appearing in the log?

sony123 2011-07-26 07:59

Re: [Announce] Stockona - Google finance stock quote client
 
A bug-fixing release has been uploaded to extras-devel. While porting to Harmattan, I found two bugs and I suspect one of them was the black screen issue experienced by menno.

The other bug was introduced due to the performance optimization I did... new users should see this issue when they log in for the first time, the app would not correctly load the position data and see "API return 0" error message appearing.

menno 2011-07-26 12:07

Re: [Announce] Stockona - Google finance stock quote client
 
I get the following errors when I do that:

Code:

Nokia-N900:~# apt-get install stockona
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  stockona
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 114kB of archives.
After this operation, 545kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free stockona 0.1.10 [114kB]
Fetched 114kB in 0s (188kB/s)
Selecting previously deselected package stockona.
(Reading database ... 35799 files and directories currently installed.)
Unpacking stockona (from .../stockona_0.1.10_armel.deb) ...
Processing triggers for catorise ...
##########################################################################################
Setting up stockona (0.1.10) ...
Nokia-N900:~# run-standalone.sh /opt/stockona/bin/stockona
file:///opt/stockona/qml/stockona/main.qml:1:1: module "QtQuick" is not installed
    import QtQuick 1.0
    ^


menno 2011-07-26 12:11

Re: [Announce] Stockona - Google finance stock quote client
 
Code:

apt-get install qtquickcompat
fixed the error. Looks like you may be missing that dependency in your debian package.

Although I'm not sure if that is my only problem. Stockona now loads up, but I get a very sluggish user interface, sometimes freezing. CPU usage for stockona and dbus-daemon spike. Top shows:

Code:

Mem: 240532K used, 5008K free, 0K shrd, 1364K buff, 74980K cached
CPU: 73.0% usr 25.4% sys  0.0% nice  1.3% idle  0.0% io  0.1% irq  0.0% softirq
Load average: 1.54 1.41 1.21
  PID  PPID USER    STAT  RSS %MEM %CPU COMMAND
  723    1 messageb R <  2052  0.8 39.5 /usr/bin/dbus-daemon --system --nofork
 3605  1088 user    R    38392 15.5 37.2 /opt/stockona/bin/stockona


sony123 2011-07-26 15:03

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by menno (Post 1058549)
Code:

apt-get install qtquickcompat
fixed the error. Looks like you may be missing that dependency in your debian package.

Although I'm not sure if that is my only problem. Stockona now loads up, but I get a very sluggish user interface, sometimes freezing. CPU usage for stockona and dbus-daemon spike. Top shows:

Code:

Mem: 240532K used, 5008K free, 0K shrd, 1364K buff, 74980K cached
CPU: 73.0% usr 25.4% sys  0.0% nice  1.3% idle  0.0% io  0.1% irq  0.0% softirq
Load average: 1.54 1.41 1.21
  PID  PPID USER    STAT  RSS %MEM %CPU COMMAND
  723    1 messageb R <  2052  0.8 39.5 /usr/bin/dbus-daemon --system --nofork
 3605  1088 user    R    38392 15.5 37.2 /opt/stockona/bin/stockona


About the dependency... yeah I should add the dependency in the debian control file. I have tried it once and remember it didn't work and I have since forgot this.

About the CPU usage, could you try increase the update interval?
The memory usage looks ok, but CPU if constantly staying at 30+ is not normal. I cannot reproduce this and feel it's a system issue. If increasing update interval doesn't help can you reboot and see if it helps?

menno 2011-07-29 13:51

Re: [Announce] Stockona - Google finance stock quote client
 
The problem was it was defaulted to a 5 seconds refresh. Which didnt work too well with my 48 share portfolio.

High cpu usage meant the gui was so sluggish I struggled to bring the menu up to change the refresh interval :)

I set the refresh higher and now it works fine. Only thing I noticed is that the graphing doesnt work now. When I click on a time period just a thin horizontal bar is drawn.

Cheers,
Menno

sony123 2011-08-04 08:05

Re: [Announce] Stockona - Google finance stock quote client
 
A significant bug-fixing release (0.1.11) is pushed to extra-devel.

Bug fixes are:
1) There are various bugs in local portfolio. In particular:
- Improve delete button precision so less likely to accidentally delete portfolio/position.
- Fix a bug that make position in-deletable after creation.
- Fix a mouse focus issue that causes focus to leak to back button in position edit view.
- Add calculation of value/cost/gain/gain percentage for Yahoo positions. Please note that the "cost" you enter when creating a position is per-share cost. The app calculates the total cost for you.
2) Fix a layout issue in landscape mode when Yahoo position doesn't have daily price change.
3) Improve error message when there is no portfolio in google account.
4) Improve re-login procedure.

For the performance issue, I will try to isolate the impact on google and yahoo data processing to see which part takes more resource... the C rewrite of data processing is progressing slowly, I only got the login part done : p

sony123 2011-08-04 08:14

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by menno (Post 1060595)
The problem was it was defaulted to a 5 seconds refresh. Which didnt work too well with my 48 share portfolio.

High cpu usage meant the gui was so sluggish I struggled to bring the menu up to change the refresh interval :)

I set the refresh higher and now it works fine. Only thing I noticed is that the graphing doesnt work now. When I click on a time period just a thin horizontal bar is drawn.

Cheers,
Menno

Well, to be honest Stockona isn't exactly efficient in network traffic (due to me wanting to pull many information) and data processing (due to Javascript). I will try figuring out which part of Javascript processing is more heavy than maybe re-write that in C++ first. But this is for longer term..

Pencil 2011-09-01 05:04

Re: [Announce] Stockona - Google finance stock quote client
 
Hi, I am using this apps everyday and is great. The only issue for me is that it cannot plot graphs for me. Is there anything I can do?

sony123 2011-09-01 06:34

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by Pencil (Post 1079831)
Hi, I am using this apps everyday and is great. The only issue for me is that it cannot plot graphs for me. Is there anything I can do?

Good to know you like the app. Could you let me know the symbol you are having problem with so I can look into the issue? Thanks in advance.

sony123 2011-09-01 06:50

Re: [Announce] Stockona - Google finance stock quote client
 
An update on the status of Stockona.. for the last month or so, I worked on Meego Harmattan version only. The good news is that Harmattan version is now available in Nokia Store, and I believe I have eliminated many of the bugs with local portfolio creation.

The bad news is.... well, since I re-worked the UI with Qt components and re-wrote some of the codes, Maemo 5 and Harmattan no longer use the same code base. I am inclined not to merge the changes back to Maemo 5, since there might be Qt component support for Maemo 5 in the near future. I guess I will wait and see how the Qt component support goes, if it's not working well I will do backport at some point in the future.

Pencil 2011-09-02 02:20

Re: [Announce] Stockona - Google finance stock quote client
 
When I get to the detail page of a stock and tryto plot the graph. nothing has shown but leave a blank area. Is there any cure for it? Thanks in adv.

sony123 2011-09-02 08:19

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by Pencil (Post 1080355)
When I get to the detail page of a stock and tryto plot the graph. nothing has shown but leave a blank area. Is there any cure for it? Thanks in adv.

Does it happen to all symbols in your portfolio, or only to some of them? I am thinking it's the latter, so if you can give me a few symbols to debug that would help me pinpoint what went wrong.

Also, are the symbols you are having problems with non-US stocks? If so, it's likely due to the symbol format is not converted correctly to Yahoo's format.

Pencil 2011-09-03 00:52

Re: [Announce] Stockona - Google finance stock quote client
 
All of them have the same problem and I am talkijng about HK stocks. It is not the symbol that have problem but I cannot plot time graphs of the stocks. Pls. help thx.

sony123 2011-09-09 19:34

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by Pencil (Post 1080904)
All of them have the same problem and I am talkijng about HK stocks. It is not the symbol that have problem but I cannot plot time graphs of the stocks. Pls. help thx.

I tried this symbol 0386:HKG (SINOPEC) and I could see the graph/chart. Could you add this symbol to your portfolio and see if the graph is displayed correctly on your device?

sony123 2011-09-10 18:19

Re: [Announce] Stockona - Google finance stock quote client
 
Good news!

I have backported the changes from Harmattan to Maemo5 to keep their codes more in sync. The major changes are:

1) Local portfolio is working much better than before. Also now you have to press the store (v) button to save any change you made. But delete action is still immediate in Maemo 5 version. (In Harmattan, a dialog will ask you to confirm the deletion.)
2) Multi-threaded for Google Portfolio, which means less chance of UI blocking. (Local portfolio still uses single-thread code.)
3) Small UI tweaks. One of them is utilizing the header bar to display the view information, e.g. in related-news for GOOG it will display "GOOG News."
4) I also finally specified the dependency on QtQuick namespace package.

The release has been submitted to extras-devel, but I will publish it to Ovi Store too later.

sony123 2011-11-10 19:49

Re: [Announce] Stockona - Google finance stock quote client
 
I'm glad to see Meego Coding Competition 2011 voting finally goes live. If you like Stockona, I would appreciate you take the time and vote for it.

Now, a few status updates for Maemo 5. First of all, my N900 is dead :(. I dropped it on the ground and the eMMC went dead. There have been several updates to Harmattan version, e.g. less resource-demanding position update, option to bypass google login, etc. I am still developing some new features for Harmattan, but I hope I will backport some of the changes to Maemo 5 maybe late this year/early next year.

sony123 2011-12-06 00:30

Re: [Announce] Stockona - Google finance stock quote client
 
Thanks to all for your voting. Stockona didn't win anything but it's your support/feedback that makes the app what it is today :)

sony123 2012-03-25 09:10

Re: [Announce] Stockona - Google finance stock quote client
 
A quick note to users (using harmattan devices).....

Google now also provides currency info, but somehow Google doesn't let users add currency symbol into a Google portfolio for tracking. Stockona+ has Market Overview to show the currency info, but currently the currencies covered are limited.

I just found out it is possible add currencies into a local portfolio so you can add currency rates that you are interested in. Here's the how-to:

1. When creating a symbol, type in the currency symbol you're interested in, e.g. USDCNY.
(Unfortunately you cannot rely on the search button to help you find the symbol name since Google Finance's search doesn't search into currencies...)
2. Type 'Currency' in the exchange field.

There you go now you can track any currency rate that Google provides!

sony123 2012-04-26 06:58

Re: [Announce] Stockona - Google finance stock quote client
 
Around the time I started developing Stockona, Google deprecated Finance API. Now one year later, Google has announced that they are discontinuing Finance API in Oct this year. It's a pity because I just have the symbian version ready and also added sync-to-google feature...

The known impact is, Stockona will lose the ability to fetch/update your Google portfolio after Oct 20. Otherwise, (I hope) the app will still be usable.

My current plan is to:
1) Relying on Google Drive as the cloud storage... but honestly, I don't want to touch Google API again.
2) Create Google Finance-compatible import/export files so users can sync portfolios manually. Possibly use the sharing framework for easier transfer.

jehan 2012-04-26 08:37

Re: [Announce] Stockona - Google finance stock quote client
 
good to read that stockona will not die

sony123 2012-05-22 04:11

Re: [Announce] Stockona - Google finance stock quote client
 
A how-to video for local portfolio editing.

http://www.youtube.com/watch?v=zMWq6XImHrA

Patrickcctx 2012-08-24 04:46

Re: [Announce] Stockona - Google finance stock quote client
 
Hi,

I don't know if you've got my messages, but there is a problem with implementation on the 808 Pureview. Once installed the app works the first time, then even with the paid version, the second time onwards using it, it fails.

Please could you check into this.

Thanks,

Patrick

sony123 2012-08-24 09:34

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by Patrickcctx (Post 1255164)
Hi,

I don't know if you've got my messages, but there is a problem with implementation on the 808 Pureview. Once installed the app works the first time, then even with the paid version, the second time onwards using it, it fails.

Please could you check into this.

Thanks,

Patrick

Hi Patrick,

Thanks for reporting. I did see your comments on Nokia Store but have no way to reach out to you.

Can you let me know after you click the icon, does the running indicator shows up on the top-left corner of the icon?

sony123 2012-10-10 04:22

Re: [Announce] Stockona - Google finance stock quote client
 
Just a friendly reminder to Stockona users:

Google will terminate Finance API on Oct 25, and Google portfolio will no longer works afterwards. For Harmattan and Symbian users, this means you need to set "Bypass Google login" to continue using Stockona. A future update will eliminate Google authentication. For Maemo 5 users, unfortunately this will be the end of the road since I didn't implement local portfolio feature in Maemo 5's version.

I am aware there is an app to run Harmattan app on Maemo 5 and Qt component for fremantle. My N900 died so I cannot test them myself, but I am open to provide the necessary support for people to experiment with those options. If you are interested, PM me.

Thanks again for using Stockona, and as always feedback are welcomed.

fredson 2012-10-24 16:21

Re: [Announce] Stockona - Google finance stock quote client
 
Hi sony123,

I really like stockona, it's a great app. Thanks for your hard work.

I think I found a bug, so I'd like to report it. While editing your portfolio you can add stocks and enter the amount of shares and the 'price per share'. So far everything is fine but if I want to enter the price, I can't enter decimal values (e.g. 5.50). Maybe this is related to the fact, that for me (N9, german language) the keyboard only shows a comma (,) as a decimal separator and stockona expects a full stop?
After entering 5,50 for examle, and pressing save it shows "Buy @ NaN".

Edit: Changing keyboard layout to "swype" at least enables you to input fullstops instead of commas only. So issue fixed :D

And one more thing: Is ist possible to localize stockona? I think it would be nice to have your native language available :). As for me I could help to translate stockona to german.

Best regards
Fredson

sony123 2012-10-28 06:42

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by fredson (Post 1284961)
Hi sony123,

I really like stockona, it's a great app. Thanks for your hard work.

I think I found a bug, so I'd like to report it. While editing your portfolio you can add stocks and enter the amount of shares and the 'price per share'. So far everything is fine but if I want to enter the price, I can't enter decimal values (e.g. 5.50). Maybe this is related to the fact, that for me (N9, german language) the keyboard only shows a comma (,) as a decimal separator and stockona expects a full stop?
After entering 5,50 for examle, and pressing save it shows "Buy @ NaN".

Edit: Changing keyboard layout to "swype" at least enables you to input fullstops instead of commas only. So issue fixed :D

And one more thing: Is ist possible to localize stockona? I think it would be nice to have your native language available :). As for me I could help to translate stockona to german.

Best regards
Fredson

Thanks for the feedback!
Yes, the app expects a dot for fractional numbers. The issue is an easy-fix, I will add a function to convert comma to dot.

For localization, sure I will look into this. Actually, I should have done this but keep pushing it off.... I will post here when I am ready to take the translation files.

sony123 2012-10-28 06:43

Re: [Announce] Stockona - Google finance stock quote client
 
Quote:

Originally Posted by sony123 (Post 1278639)
Just a friendly reminder to Stockona users:

Google will terminate Finance API on Oct 25, and Google portfolio will no longer works afterwards. For Harmattan and Symbian users, this means you need to set "Bypass Google login" to continue using Stockona. A future update will eliminate Google authentication. For Maemo 5 users, unfortunately this will be the end of the road since I didn't implement local portfolio feature in Maemo 5's version.

I am aware there is an app to run Harmattan app on Maemo 5 and Qt component for fremantle. My N900 died so I cannot test them myself, but I am open to provide the necessary support for people to experiment with those options. If you are interested, PM me.

Thanks again for using Stockona, and as always feedback are welcomed.

For whatever reasons, I am still able to login to Google and see my Google portfolios...

sony123 2012-11-07 08:29

Accepting localization!
 
I am glad to announce that Stockona is ready for localization and welcome users' contributions. Currently, I only have traditional Chinese done. If you feel like helping with other languages, contact me by PM or stockona@ovi.com.

You will need Qt Linguist from Qt SDK to do the translation. Thanks in advance!

meegofan 2012-11-12 20:50

Hi!

First of all, thanks for the great app! I immediately purchased the pro version! Is it possible to select the portfolio which is shown by default? Right now I've set up stockona to show the portfolio view after starting. However, it always shows the first portfolio. Is there any way to select a certain portfolio to be shown to default? Or is out possible to change the order of the portfolios?


All times are GMT. The time now is 14:59.

vBulletin® Version 3.8.8