achannarasappa / ticker

Terminal stock ticker with live updates and position tracking
GNU General Public License v3.0
5.02k stars 273 forks source link

Configuration from the readme does not work with the ticker. #272

Closed webgtx closed 5 months ago

webgtx commented 5 months ago

Describe the bug Configuration from the readme does not work with the ticker.

To Reproduce Steps to reproduce the behavior:

  1. Build ticker
  2. Copy config from the readme to ~/.ticker.yaml
  3. Run ticker --config ~/.ticker.yaml
  4. See following error invalid config: yaml: line 2: mapping values are not allowed in this context

Expected behavior Anything but error

Environment (please complete the following information):

Configuration that I'm using The place where I get it from: https://github.com/achannarasappa/ticker#configuration

i# ~/.ticker.yaml
show-summary: true
show-tags: true
show-fundamentals: true
show-separator: true
show-holdings: true
interval: 5
currency: USD
currency-summary-only: false
watchlist:
  - NET
  - TEAM
  - ESTC
  - BTC-USD # Bitcoin price via Yahoo
  - SOL.X # Solana price via CoinGecko
  - SAMOYEDCOIN.CG # Samoyed price via CoinGecko
  - CARDANO.CC # Samoyed price via CoinCap
lots:
  - symbol: "ABNB"
    quantity: 35.0
    unit_cost: 146.00
  - symbol: "ARKW"
    quantity: 20.0
    unit_cost: 152.25
  - symbol: "ARKW"
    quantity: 20.0
    unit_cost: 145.35
    fixed_cost: 7.00 # e.g. brokerage commission fee
groups:
  - name: crypto
    watchlist:
      - SHIB-USD
      - VGX-USD
    holdings:
      - symbol: SOL1-USD
        quantity: 17
        unit_cost: 159.10
webgtx commented 5 months ago

The configuration I used had a typo. Please ignore this issue, thank you.

jeremy-rutman commented 2 weeks ago

I'm getting invalid config - permission denied for the same (no typo) yaml file, and for which I gave all permissions:

jr@jr-Legion-7-16IAX7:~$ ticker --config ~/.ticker.yaml
Error: invalid config: open /home/jr/.ticker.yaml: permission denied
jr@jr-Legion-7-16IAX7:~$ ls -l .ticker.yaml 
-rwxrwxrwx 1 jr jr 776 Nov 12 12:10 .ticker.yaml