个人理财项目
sb-finance的Python项目详细描述
NOTE:因为我主要使用的编辑vim中韩文打字不方便,所以用英语 一般制作文件,但在这个项目中,使用韩语的听众 因为大部分的关系,所以用韩语写文件。
这个项目的目的大致有两种。
-
自动追踪
- 总资产价值,计算SB基金的价格。 提供
- 长期价值投资所需的辅助工具。
- Asset rebalancing
- Determining net asset values
- Fetching asset prices:从各种数据源获取金融资产价格信息。<首尔>
- 股票:야후 파이낸스收到。虽然是推迟了20分钟的信息,但是因为是以一单位的价格,所以延迟时间并不重要。
- 基金:接受金融投资协会(KOFIA)公示的信息。
Daily Net Asset Values
每日总资产价值(net asset value;NAV)合算,用图表显示。这是。 是计算基金单位价格的必要数据。
(TODO: Prepare an illustration)
- 网络接口:计划制作一眼就能看到端口的接口。正在用第一次使用的Angular制作网页接口。 自动获取
- 数据:需要制造定期收取股票、基金价格等交易所公示价格的东西。要使用的工具是AWS Lambda。
(TODO:继续填充内容)
Some Technical Details
Create Tables
finance create_all
Insert Test Data
finance insert_test_data
Import Stock Values
finance fetch_stock_values 009830.KS | finance import_stock_values 009830.KS
The fetch_stock_values command strictly fetches data from Google Finance as CSV, and the import_stock_values imports the structured data into the database.
PostgreSQL in Docker
docker run -d \ -p 5432:5432 -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=qwerasdf \ -e POSTGRES_DB=finance \ -v $HOME/postgres:/var/lib/postgresql/data \ -t postgres:10
psycopg2 on Mac
If you fail to build the psycopg2 package on Mac OS X with an error message saying the following,
ld: library not found for -lssl
You may want to build pscycopg2 as follows:
env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install psycopg2
That’s assuming you have openssl installed in your system. If you are using brew you may install openssl as following:
brew install openssl
SonarCloud with Travis CI
Set SONAR_TOKEN environment variable on Travis CI repository settings. Refer this document for more details. Then you will need to set up sonar-project.properties file as described here.
- 项目
标签: