An open API service indexing awesome lists of open source software.

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

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).