Comments (5)
Import history data feature is not available yet.
from jstock.
WARNING: this answer is a HACK and you are on your own if you mess up your data...
Having said that, almost all JStock data is stored in simple CSV files. Look under your "Documents and Settings" (XP) or Users (Vista, 7, etc) and eventually you will find a .JStock folder. A la [Documents-n-Settings][YourUsername].jstock\1.0.7....
Have a peek in there and it is fairly straight forward to sort out where the various bits are stored. As these as just simple CSV files you can edit them manually or use the ETL tool of your choice to automate it and do it on a repeatable fashion.
BUT BE CAREFUL! Some advise...
-
Make note of the line ends. From my brief inspection I can't tell if the are CR or LF but it certainly isn't both (the windows standard). My guess is that they are the Unix standard whatever that is; either CR or LF.
-
be sure that JStock is NOT running when you edit these directly. You would risk corrupting your data if JStock was running when you tinker with them directly.
-
Look closely at your existing JStock data to understand how the data should be formatted, eg date formats, etc.
-
And finally, and this should be obvious... DO A BACKUP BEFORE YOU START MUCKING AROUND!
Good luck,
-randall
from jstock.
@yccheok thanks for the quick reply and please consider this option in the next version.
@RandallSell I am not worried about the hack even if it caused any problem i can reinstall jstock. But i am using a ubuntu system and I dont know how to link the csv. from your hints i have tried this sofar
In ubuntu jstock has a hidden folder in the home directory home/.jstock
and i am able to find out my stock details here home/.jstock/1.0.7/country_name/
and inside it has four folders databases, history, portfolios and watchlist. Inside watchlist folder there is another folder called "my watchlist" with a file realtimestock.csv. and inside "history" folder there are some csv file with filename similar to 3002w.LY B-start..csv and its content looks like this
code=3002w.LY
symbol=My Industries
name=My Industries
board=Unknown
industry=Unknown
Date Open High Low Close Volume
Dec 29, 2014 17.6 18.55 17.6 17.1 1818580
Dec 30, 2014 17.9 18.35 17.75 17.9 2823011
Dec 31, 2014 17.95 18.1 17.1 17.15 2367274
...
...
...
My guess is that our watchlist pimary details are saved inside realtimestock.csv and historical data's inside "history" folder as a csv. But how to link realtimestock.csv to history/3002w.LY B-start..csv .
from jstock.
Well, I guess my short answer is - you can't. there is no "inter-linking" of these CSVs. I was merely pointing out that the storage of the JStock data is fairly basic, meaning it can easily be manipulated/hacked by third party tools.
-randall
from jstock.
K thanks for the answer any way i will try to hack myself and let you know if succeeded :)
from jstock.
Related Issues (20)
- Colors for volume, trendline, TA
- Fails to load Indian Stock Exchange BOM data
- Issue with hdpi and dimension of fonts HOT 2
- Question: Compare by percent & Not able to simulate
- Add Stock: All stocks are added
- Java null exception when enabling email alert
- Question: Data source in the code HOT 4
- F-Droid
- LPPF.JK show "Pacific Utama Tbk", instead of "PT Matahari Department Store Tbk"
- Incorrectly calculated lastPrice in candlestick charts on weekly and monthly base
- Increasing decimals for Bitcoins
- Metals / Commodity not working
- ExceptionInInitializationError: jstock does not start HOT 4
- Broker Setup for Indian Trading house and Exchanges
- Can't find on Google Drive HOT 2
- WARNING: An illegal reflective access operation has occurred
- Please convert the project to maven and java 8 atleast so that more people could use it
- JStock Desktop Version Dividend Information ??? HOT 1
- Technical analysis not working on some stocks
- Upgrade the project to support java 17 and onwards
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.
from jstock.