https://github.com/meain/tock
Check Alphavantage for stock price
https://github.com/meain/tock
alphavantage-api shell stock-market
Last synced: 11 months ago
JSON representation
Check Alphavantage for stock price
- Host: GitHub
- URL: https://github.com/meain/tock
- Owner: meain
- Created: 2019-10-23T09:12:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-10T12:54:35.000Z (over 6 years ago)
- Last Synced: 2025-04-03T10:43:45.190Z (about 1 year ago)
- Topics: alphavantage-api, shell, stock-market
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `tock`
Simple shell script to check [Alphavantage](https://www.alphavantage.co/) for stock price.
Shows current price and change from yesterday
### Installation
```
curl -o /usr/local/bin/tock https://raw.githubusercontent.com/meain/tock/master/tock
```
> Needs [`fzf`](https://github.com/junegunn/fzf) to be installed for search.
### Usage
You will have to get a **free** api key from Alphavantage from [here](https://www.alphavantage.co/support/#api-key).
Keep the key in and env variable called `ALPHA_VANTAGE_KEY`.
- Check stock: `tock SYMBOL`
- Search stock: `tock search keyword`
> Add --may-wait to handle api rate limiting (sleeps until available)
Idea from [pstadler/ticker.sh](https://github.com/pstadler/ticker.sh), but was not available for listings in India (NSE or BSE).