Skip to content

Commit

Permalink
rewrite in python
Browse files Browse the repository at this point in the history
  • Loading branch information
madnight committed Dec 16, 2023
1 parent b05d58d commit 5b547b4
Show file tree
Hide file tree
Showing 32 changed files with 275 additions and 16,096 deletions.
22 changes: 0 additions & 22 deletions .eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc.json

This file was deleted.

69 changes: 10 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,26 @@
# wallstreet
Stock quotes and charts for the terminal

<a href="https://npmjs.com/package/wallstreet"><img height="20" src="https://img.shields.io/npm/v/wallstreet.svg" alt="npm"/></a>
<a href="https://nodejs.org/en/download/releases/"><img height="20" src="https://img.shields.io/badge/node-%3E%3D%2014.0-brightgreen.svg" alt="License: MIT" /></a>
<a href="https://opensource.org/licenses/MIT"><img height="20" src="https://img.shields.io/badge/License-MIT-brightgreen.svg" alt="License: MIT" /></a>
<a href="https://codeclimate.com/github/madnight/wallstreet/issues"><img height="20" src="https://codeclimate.com/github/madnight/wallstreet/badges/issue_count.svg?maxAge=2592000" alt="Issue Count" /></a>
<br> <br>

![image](https://user-images.githubusercontent.com/10064471/63653846-91edf100-c772-11e9-883e-96761e295766.png)
![image](https://github.com/madnight/wallstreet/assets/10064471/61bac8ff-83a7-41f1-8f11-7f1f96cadc54)

# Usage
```bash
# install
npm install wallstreet -g

# (alternative) install with yarn
yarn global add wallstreet

# (alternative) run without install
npx wallstreet

# run default
wallstreet
git clone https://github.com/madnight/wallstreet
cd wallstreet
peotry install

# run with options
wallstreet --zebra
wallstreet --chart MSFT --range 8h
```

# Options

```bash
Usage: wallstreet [options]

Options:
-c , --chart <string> chart for stock symbol e.g. MSFT
-r , --range <string> 1m 5m 10m 15m 20m 30m 40m 50m 1h 2h 3h 4h 8h 1d 2d 5d 1mo 1y 5y 10y
-h , --height <int> Height of the chart
-z , --zebra Visual even-odd zebra-striped table mode
-w , --width <int> Width of the chart
-h, --help output usage information
# run
poetry run python main.py
```

# Config

The list of stocks can be configured via the wallstreet.json file.
```bash
cat $HOME/.config/configstore/wallstreet.json

{
stocks": [
"AAPL",
"MSFT",
"GOOGL",
"INTC",
"AMD",
"PEP",
"MU",
"TSLA",
"NFLX",
"DIS",
"AMZN",
"SBUX",
"FB",
"BRK.B",
"BABA",
"V",
"QQQ",
"SPY"
}
The list of stocks can be configured via the config.ini file.
```ini
[Symbols]
stocks = AAPL,MSFT,GOOGL,INTC,AMD,PEP,MU,TSLA,NFLX,DIS,AMZN,SPY,QQQ
```
![image](https://user-images.githubusercontent.com/10064471/63654140-86042e00-c776-11e9-9e1c-072f733f6631.png)
2 changes: 2 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Symbols]
stocks = AAPL,MSFT,GOOGL,INTC,AMD,PEP,MU,TSLA,NFLX,DIS,AMZN,SPY,QQQ
240 changes: 0 additions & 240 deletions index.js

This file was deleted.

Loading

0 comments on commit 5b547b4

Please sign in to comment.