question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StockTicker widget shows USD value but locale currency symbol

See original GitHub issue

Same as this https://github.com/qtile/qtile/issues/2470 (CryptoTicker) but for StockTicker widget.

It shows USD value but with locale currency symbol.

I tried market = "USD" just to make sure, but that doesn’t do anything. And there’s no other option to change the currency anyway.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:31 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
elParaguayocommented, Oct 18, 2021

Also, just to be clear, you can call your version of the widget anything you like. It doesn’t have to be Custom... and the file doesn’t have to be custom_...py. The basic rules are just don’t use existing names.

The file name (minus .py) is what you import in your config. So, if you had a file called hamensman.py which contained a widget called MyAwesomeWidget, then, in your config you just do:

from hamensman import MyAwesomeWidget

or

import hamensman

# create your widget like this:
hamensman.MyAwesomeWidget()
1reaction
elParaguayocommented, Oct 18, 2021

I’ve now realised why the widget adds everything in config to the query: that way users can add any other parameters that alphavantage’s API allows without them being part of defaults.

So, really, all we need to do is add sign and symbol to defaults and add symbol to self.query.

I appreciate you’ve put a lot of effort into this (and hopefully it’s been a good learning experience for you) but I think the changes we need are much simpler.

Do you want me to create a Pull Request for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bitcoin Ticker keeps showing locale currency sign · Issue #2470
So let's say BTC is "$44000" in USD and "£31000" in GBP. If ... ... StockTicker widget shows USD value but locale currency...
Read more >
How to Add a Stock Market Ticker to WordPress - GreenGeeks
Adding stock market data to your WordPress website is easy with a stock market ticker plugin. “Ticker” is one of those funny names...
Read more >
See Currency Exchange Rates in Stocks App on iPhone
The iPhone Stocks app and Stocks Notification Center widget ... currency symbols with =X to show the appropriate live exchange rate.
Read more >
Built-in Widgets - Qtile Docs
A simple widget to show the current brightness of a monitor. ... display the average price of bitcoin in local currency widget.CryptoTicker().
Read more >
Windows 10 News and Interests shows Stock info on Taskbar
On most of my Windows 10 PC's, the News and Interests Taskbar icon shows some weather info. On one, it instead shows stock...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found