marcinorlowski / crypto-tracker-plasmoid Goto Github PK
View Code? Open in Web Editor NEWPlasma/KDE multi crypto currency price tracker widget, with support for multiple exchanges and currency pairs.
Plasma/KDE multi crypto currency price tracker widget, with support for multiple exchanges and currency pairs.
Or even ability to add / edit custom api url
Add support for transparent widget background as some users needs that and current, solid one, looks bad on their setup.
For the moment, the different pairs are displayed in horizontal mode, possible to choose between horizontal and vertical?
Binance is one of the leading crypto exchange it would be nice if we could pull data from Binance
I looked through the source code and found the structure of the var exchanges
so I added the following object to it
'binance-com': {
name: 'Binance',
url: 'https://api1.binance.com/',
getRateFromExchangeData: function(data, crypto, fiat) {
return data[0].price
},
getUrl: function(crypto, fiat) {
url= 'https://api1.binance.com/api/v3/trades?symbol=' + crypto + fiat +'&limit=1'
console.error(url)
return url
},
pairs: {
BTC: [
'USDT',
'EUR',
'GBP',
'JPY',
],
ETH: [
'USDT',
'EUR',
'GBP',
'JPY',
],
ETC: [
'USDT',
'EUR',
],
LTC: [
'USDT',
'EUR',
'GBP',
'JPY',
],
XRP: [
'USDT',
'EUR',
'GBP',
'JPY',
],
}
}
This added the binance exchange but it couldn't fetch the data correctly.
I ranjournalctl /usr/bin/plasmashell
to see if the console.error()
was pushed but I couldn't find it.
Any help would be greatly appreciated
Hi,
I'm glad someone finally decided to build a crypto price tracker for KDE.
My main suggestion would be to make it possible to display a neatly stacked, small but high resolution charts for each (or some) selected pairs.
If I could look at a small widget on my desktop and see not only what's going right now with my selected pairs but also how it relates to what's been going on for the past week (for example) I'd be one very happy KDE user.
Since Plasma 6 brings many changes, most of the plasmoids are now incompatible, including this awesome plasmoid.
I am not sure how much work would it be to port it to Plasma/Qt 6, since I have no experience developing for it, but it would be super nice to have this plasmoid even in Plasma 6. It is IMHO by far the best crypto tracker applet out there.
If somebody can point out how to migrate from plasma 5 to 6, I may try to do it, if it is not a complete rewrite. I couldnt find much of a doc, though.
Thanks
Hovering over widget are (when in Panel) could show more verbose information, i.e.- <EXCHANGE LOGO> COIN/PAIR: PRICE
for each pair defined etc.
What's wrong?
Currency appears to default to the first in the list for a given exchange, the selection opens when clicked but not possible to choose from the options.
Steps to reproduce the behavior:
Expected behavior
The clicked currency should be selected.
Runtime environment
plasmashell --version
)lsb_release -d
)Notes
Any additional information that may be helpful diagnosing the problem.
Thanks for making this tracker! Additionally, the crypto value does not update when applying changes, it waits until the next refresh. Not really a bug, but would be cool to see changes reflected immediately via a call to refresh the plasmoid.
Please describe the problem
BTC movements are usually linked to market movements that are reflected in S&P 500 and other indexes that aren't in crypto exchanges.
Describe the solution you'd like to see
Would be nice to support these indexes, either by adding the resources in the menu, or by letting us add a custom resource to read data from.
Notes
Thx for create crypto tracker!
Please describe the problem
First, thank you for you work :).
Main issue with crypto/assets price plasmoids is when I use in my panel. They get a lot of space :/.
Describe the solution you'd like to see
I was thinking; what if we can have a "carousel like" that change and update every X seconds to next pair in the list? It could open like a menu respecting lines x columns config on click.
What's wrong?
Please put a clear and concise description of what the bug is.
BTC is no longer working on any exchange
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen
instead of currently observed behaviour.
BTC to display price
Runtime environment
Widget version (see About dialog)
Plasma version (output of plasmashell --version
)
Name and version of OS: (just paste output of lsb_release -d
)
If you use non-standard dock (i.e. Latte), put its name.
OS: Manjaro 22.0.0 Sikaris
██████████████████ ████████ Kernel: x86_64 Linux 6.0.11-1-MANJARO
██████████████████ ████████ Uptime: 2h 31m
████████ ████████ Packages: 1759
████████ ████████ ████████ Shell: zsh 5.9
████████ ████████ ████████ Resolution: 2560x1440
████████ ████████ ████████ DE: KDE 5.100.0 / Plasma 5.26.4
████████ ████████ ████████ WM: KWin
████████ ████████ ████████ GTK Theme: Breeze [GTK2/3]
████████ ████████ ████████ Icon Theme: breeze
████████ ████████ ████████ Disk: 11T / 110T (10%)
████████ ████████ ████████ CPU: AMD Ryzen 7 5800X 8-Core @ 16x 3.8GHz
████████ ████████ ████████ GPU: AMD Radeon RX 6700 XT (navi22, LLVM 14.0.6, DRM 3.48, 6.0.11-1-MANJARO)
RAM: 4407MiB / 15917MiB
Notes
Any additional information that may be helpful diagnosing the problem.
Add support for crypto-crypto pairs as for now we only have very limited crypt-fiat pairs
What's wrong?
I have the custom grid setting set to display two entries on top of each other. Settings-> Layout -> Use custom grid layout.
Rows: 2
Columns: 1
Several times a day this setting is lost and the display defaults back to no custom layout (Rows: 1 Columns: 1).
Steps to reproduce the behavior:
Expected behavior
Once the setting is set it should retain the layout. The Layout setting is always still checked and displaying the correct settings but those settings are not being displayed properly on the task bar. In order to temporarily fix it, I have to deactivate the setting and activate it again.
Runtime environment
Add option to use custom number format, to override locale provided currency formatting.
Instead of removing decimal part (which won't work too good for crypto-crypto pairs) add rate rounding to user specified number of decimals (with 0 included).
Can't find Bitcoin listed when choosing Kraken ????
Update documentation to cover configuration pane
Hello,
Can you add some currencies like TRY, AUD etc. into selectable part of the plasmoid. Like TRY/USDT would be helpful.
Thanks.
I request addition of RPL, the Rocket Pool token, via Kraken.
It is the leading decentralized staking protocol.
https://api.kraken.com/0/public/Ticker?pair=rplusd
Thank you!
Add custom fonts support. Should be one setting per whole widget with option to set different font for each exchange separately.
Hi
What's wrong?
After I added plasmoid, KDE notifications are not working.
Notification panel say : "notification service not available, notification are provided by kde plasma", like in this post : https://www.reddit.com/r/kde/comments/ibnnuj/does_anyone_know_how_to_enable_notifications_on/
Steps to reproduce the behavior:
Runtime environment
Add option to select action after ticker is clicked. For now we do ticker update, but we may also add option to open exchange website for given pair, open exchange ticker API endpoint for given pair
Please describe the problem
I want to see how much fiat worth of money i have and am aware and not concerned with people seeing that amount on my desktop.
Describe the solution you'd like to see
I would like to configure the amount of coin i have (just as an easy to implement solution for longtimehodlers) in the configuration of this plasmoid. Then this amount is multiplied with the current price and displayed instead of the price for one coin.
Notes
You should be able to specify this amount per entry. In the future it might be feasible to fetch the amount from a provided wallet address, to also support faster traders.
Please describe the problem
the crypto icons are nice but not always easy to recognise
Describe the solution you'd like to see
I'd like an option in each currency setting to input an alphanumeric ID for the currency and an option to display it instead of the crypto icon.
IE : replace the icon by BTC for bitcoin, ETH for etherum etc...
Notes
thanks for this nice widget :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.