Comments (4)
Yes, I'm already working on it. The feature will be released soon.
from rate.sx.
@westonal I've added initial support of currencies. There are some things to be completed,
so I don't release the feature (not yet). Could you play with it a little bit, and give me some feedback?
I've added support for ten different (I believe, most important) currencies:
AUD, CAD, CHF, CNY, EUR, GBP, IDR, JPY, KRW, RUB
If you choose one of them, you will get your output in that currency.
How do you choose a currency?
$ curl eur.rate.sx
$ curl gbp.rate.sx
$ curl cad.rate.sx
(it does not matter if you use the upper or the lower case; you can mix them: EUR.rate.sx is ok; CaD.Rate.SX is also ok).
If you use some unknown currency, it silently uses USD. So be careful here (probably, we should print some warning or even error in this case?).
For dollars (USD, AUD, CAD) you have '$' in front of the numbers in the headers (Market Cap: $351,742,820,072). You have to know, what $ is ment here (because you issue the query). I don't know, if it is correct. I suppose yes, in Canada and Australia the $ sign is used for local currencies, right?
Open questions at the moment (things to be implemented):
- 1h and 24h changes are calculated basing on the current currency rate, what is strictly speaking wrong, but not really critical, because these currencies are not really volatile (this bug will be fixed soon; I just want to warn you) (and this bug is critical if we use cryptocurrencies as the target currency: btc.rate.sx; not implemented yet anyway);
- for JPY and KRW, BTC price is displayed in scientific notation (1.31391e+6, 1.26863e+7) what is inconsistent.
Could you please test the new feature and give me some feedback?
from rate.sx.
For dollars (USD, AUD, CAD) you have '$' in front of the numbers in the headers (Market Cap: $351,742,820,072). You have to know, what $ is ment here (because you issue the query). I don't know, if it is correct. I suppose yes, in Canada and Australia the $ sign is used for local currencies, right?
Yes that's right, elsewhere it clearly says "CAD/AUD/USD", so it's obvious which $
it's refering to.
not really critical, because these currencies are not really volatile
Well, they can shift by a 1 or 2% some days, especially GBP with Brexit!
You might find this service useful to get % change in other currencies: https://apiv2.bitcoinaverage.com/#ticker-data-all
But looking good! Thanks!
from rate.sx.
Done
from rate.sx.
Related Issues (20)
- Add The Utility Bixos Token (UBXS) HOT 1
- Invalid coin/currency name: USD
- Invalid coin/currency name: USD HOT 1
- Error 500 or timeout request HOT 1
- Graph endpoint produces HTML instead of ascii/ansi with powershell
- Some tokens not recognized in the graph HOT 1
- -
- Not working for currencies HOT 1
- not updating? HOT 3
- website down HOT 3
- ERROR: Invalid coin/currency name: VET
- Fiat currencies except USD are not supported HOT 4
- rate.sx is not responding HOT 2
- 500 - Internal Server Error HOT 7
- Incorrect and heavily varying prices, as well as.. weird graph? (XRP)
- Worldcoin not showing up
- Wishlist supported coins
- eur.rate.sx Time-out
- Weird question marks on spark column and chart
- http 500 when RUB HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rate.sx.