A fast, free, in-browser stock portfolio manager that you can deploy anywhere. You can use the version deployed at https://ssorallen.github.io/finance/ or deploy your own.
- Create an IEX Cloud account if you don't already have one
- Create an IEX API Token on the API Tokens section of the console
- Copy the "publishable" token from the API Token console page
- Open "Settings" in the upper right of your Finance! instance
- Past the "publishable" API token and click "Save"
- Start creating your portfolio!
If you have a spreadsheet (.csv) file containting transactions in your portfolio, you can import the entire file at once in Finance!.
- Click the "Import Portfolio" link in the upper right-ish area of any page
- Select your portfolio file
- If you're importing a Google Finance portfolio the file is potentially called "My Portfolio.csv" since that was the default. Otherwise the filename will be whatever your portfolio was called in Google Finance.
- Click "Open"
- πππ
Your portfolio CSV file is expected to have the following columns:
Symbol,Name,Type,Date,Shares,Price,'Cash value',Commission,Notes
the values should be of the following types:
{
'Cash value': ?number,
Commission: number,
Date: ?string,
Name: ?string,
Notes: ?string,
Price: number,
Shares: number,
Symbol: string,
Type: 'Buy' | 'Sell',
}
Other formats are currently not supported, and Finance! might fall apart if you try to use another format.
If you exported your Google Finance portfolio to a spreadsheet (.csv) file before the site shut down, you can easily import that file into Finance! The data format is fully supported, so jump up to Importing Your Portfolio and follow the steps.
- Click the "Download to spreadsheet" button in the upper right-ish area of any page.
- The file will be called "My Portfolio.csv" and be in the data format described in the Importing Your Portfolio section.
Finance! doesn't collect or store any of your data. Actually, Finance! has no server of any kind, the entire app runs inside your browser.
Your IEX API key, transaction data, and which symbols you're watching are stored entirely in your browser (using local storage). Transaction data is never sent anywhere; it never leaves your computer.
In order to see the value of your portfolio, a list of the symbols in your portfolio is sent to IEX to get the latest quotes for each symbol. None of your transaction data is sent to IEX or to anyone else, only a list of the symbols leaves your computer.
For example, if your portfolio looked like the following:
{
transactions: [
{symbol: 'GM', price: 100, shares: 100},
{symbol: 'GM', price: 150, shares: 100},
{symbol: 'F', price: 50, shares: 100},
{symbol: 'F', price: 100, shares: 1000},
]
}
the following data would be sent to IEX:
// Note: your publishable IEX API key is necessarily used in every API request to IEX
PUBLISHABLE_IEX_API_KEY
['F', 'GM']
That's it. There's no tracking, no advertisements, and no other API requests.
All stock data is provided for free by IEX. Use is subject to IEX Exhibit A.
The IEX API currently does not provide market index data. For more information, check out IEX-API Issue #36.
The best replacement is ETFs that track associated indices like SPY for the S&P500 and DIA for the Dow Jones Industrial Average (DJIA).
-
Clone this repository
-
Use Yarn to install dependencies
$ yarn install
-
(Optional) To develop and make changes, use
start
$ yarn start
-
Build the app for deployment
$ yarn build
All the code necessary to run Finance! is in this repository. There's no database required, no other application server. Once you build the app, you can copy the static files to any webserver you like.
If you want to do this all on GitHub and deploy with GitHub Pages, follow these steps:
-
Fork this repo with the "Fork" button in the upper right
-
Clone your new repo to your computer
-
Change the
"homepage"
in package.json to your site's new home, https://YOURNAME.github.io/finance/ -
Build the app for release using the How to Build instructions
-
Using the gh-pages package that's already installed, deploy to your very own page
$ yarn deploy
-
β¨β¨ Your version of Finance! will be available at https://YOURNAME.github.io/finance/ β¨β¨
As an unsophisticated investor, I liked Google Finance and missed the simple interface for managing a stock portfolio. Alternatives offer more than I need, so I built only the functionality I wanted.
The idea to run this all in a browser was sparked by seeing Todd Schneider's toddwschneider/stocks project.