Skip to content

GBP vs GBp #282

@Pathfinder075

Description

@Pathfinder075

Ticker treats GBP and GBp the same, so total value and cost, end up being somewhat higher than they should be.

To Reproduce
Create a .ticker.yaml, place two stocks in, example VUAG.L and JEGP.L
Add in the Avg Cost for each one and the amount
JEGP.L will display thousands because the stock is in pence and VUAG.L will display as 100's because the stock is in pounds. This screws up the total value and cost entries as it sees JEGP.L as having a value measured in 1000's.
In the UK our stocks can be displayed on Yahoo Finance in two ways. GBP represents stocks measured in pounds, for example £100.10 (one hundred pounds and ten pence) or GBp which represents stocks measured in pence, for example 5000.50p (50 pounds and half a penny).

Expected behavior
Ticker would differentiate between a GBP and GBp stock. The measurement used is displayed at the top of the page in Yahoo Finance, but I don't know exactly how Ticker gets that information

Screenshots
ticker-example
GBp
GBP

Environment (please complete the following information):

  • OS: Linux / Devuan Chimaera

  • Terminal: rxvt-unicode

  • Terminal Version: v9.22

  • Font: No idea, whatever is default

  • ticker Version: 4.6.3

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions