Skip to content

Commit

Permalink
Adding -s flag
Browse files Browse the repository at this point in the history
```-s``` flag to sort prices by gain/loss
  • Loading branch information
appatalks authored Feb 19, 2025
1 parent 2e4fc07 commit dfdea0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ You can also fetch both stock prices and precious metal prices in a single comma

This will display both the spot prices for the metals and the prices for the given stock symbols.

### Sort Stock Prices by ```gain/loss```

You can also sort the stock prices by ```gain/loss``` percentage with the ```-s``` flag:

./ticker.sh -s AAPL MSFT GOOG BTC-USD

This will sort the stock prices for the given stock symbols.

### Disable Color Output

If you are running the script in an environment that doesn't support color or if you prefer plain text output, you can disable colorization by setting the `NO_COLOR` environment variable:
Expand Down

0 comments on commit dfdea0e

Please sign in to comment.