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 2c0c516
Show file tree
Hide file tree
Showing 13 changed files with 276 additions and 2,725 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.

66 changes: 9 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# 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>
Expand All @@ -12,64 +10,18 @@ Stock quotes and charts for the terminal
# Usage
```bash
# install
npm install wallstreet -g
git clone https://github.com/madnight/wallstreet
cd wallstreet
peotry install

# (alternative) install with yarn
yarn global add wallstreet

# (alternative) run without install
npx wallstreet

# run default
wallstreet

# 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 2c0c516

Please sign in to comment.