Shop Forum More Submit  Join Login
Cryptocurrency Ticker - CryptoTicker 2.1 by PuckStar Cryptocurrency Ticker - CryptoTicker 2.1 by PuckStar

I found this Ticker but noticed some meters were not working + I wanted to see more information.

So I updated the script (see here a screenshot).

All meters are working. I also added the rank of the coin and 1h, 24h and 7d price change percentages. All prices in USD.

It's not very difficult to change to different coins or to add a new one. I already left some space for at least 1 new coin.

Add a Comment:
 
:iconazzoubk:
AzzouBK Featured By Owner Apr 18, 2018  Student Digital Artist
Cool, good work !
Reply
:iconpuckstar:
PuckStar Featured By Owner Apr 21, 2018
Thanks!
I noticed there is just 1 thing that sometimes doesn't work and I can't seem to fix it :(.
It's when BTC has a price with only 1 decimal. In that case the price doesn't show at all.
I tried already for a long time to find a different regex for that but either it works with only 1 decimal, but when there are 2 you only see 1, or you have 2 decimals but then it doesn't work when there is only one.
Don't know if you have any regex experience...?
Reply
:iconmikerane:
mikerane Featured By Owner Jul 28, 2018
I fixed the regular expression.

The old one looks like "([0-9]+\.[0-9][0-9])

you want to change it to

"([0-9\.]+)"

be sure to put the double quote at the end of the line
Reply
:iconmikerane:
mikerane Featured By Owner Edited Jul 30, 2018
New update since they added on a lot of other trailing decimal places. The entire line should now look like this:

RegExp=price_usd": "([0-9\.]+\.[0-9]{0,2})[0-9]*"

That will make sure it parses up to 2 decimal places and will allow 1 or 0 decimal places and throw out the rest.
Reply
:iconazzoubk:
AzzouBK Featured By Owner Apr 21, 2018  Student Digital Artist
I'm so sorry, I wish I could help No, I disagree! 
Reply
Add a Comment:
 
×




Details

Submitted on
April 17, 2018
File Size
8.5 KB
Link
Thumb

Stats

Views
3,959
Favourites
2 (who?)
Comments
5
Downloads
1,281