Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lowply/stock-exchange
Scrapes websites to get the stock price and USD-JPY TTM of the day
https://github.com/lowply/stock-exchange
Last synced: 2 months ago
JSON representation
Scrapes websites to get the stock price and USD-JPY TTM of the day
- Host: GitHub
- URL: https://github.com/lowply/stock-exchange
- Owner: lowply
- Created: 2020-02-22T15:39:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T12:54:30.000Z (8 months ago)
- Last Synced: 2024-06-20T10:14:38.304Z (6 months ago)
- Language: Go
- Size: 3.72 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stock & Exchange
Scrapes https://finance.yahoo.co.jp and http://www.murc-kawasesouba.jp and get the stock price and USD-JPY TTM of the day. Useful for your RSU calculation in Japan.
## Installation
If you have [Go](https://golang.org/) installed on your machine, just run:
```
go install github.com/lowply/stock-exchange@latest
```If you don't:
- Download [the latest release](https://github.com/lowply/stock-exchange/releases)
- Unarchive it
- Move the `stock-exchange` binary to `/usr/local/bin` or equivalent directory## Usage
Run:
```console
stock-exchange MSFT 2020-02-14
```Result:
```console
Querying https://finance.yahoo.co.jp/quote/MSFT/history?from=20200214&to=20200214&timeFrame=d&page=1 ...
2020/02/14: MSFT = 185.35
Querying http://www.murc-kawasesouba.jp/fx/past/index.php?id=200214 ...
2020/02/14: JPY/USD TTM = 109.89
```## Deployment
```
git tag v0.x.x && git push origin v0.x.x
```## Disclaimer
Please use this tool with your own responsibility.