https://github.com/z0rr0/exchange
Exchange rates.
https://github.com/z0rr0/exchange
exchange rate-exchange
Last synced: 5 months ago
JSON representation
Exchange rates.
- Host: GitHub
- URL: https://github.com/z0rr0/exchange
- Owner: z0rr0
- License: agpl-3.0
- Created: 2016-12-17T22:06:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T21:56:23.000Z (over 9 years ago)
- Last Synced: 2025-10-13T13:12:21.082Z (9 months ago)
- Topics: exchange, rate-exchange
- Language: Go
- Homepage: https://r.lus.su/
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# exchange
[](https://godoc.org/github.com/z0rr0/exchange)
It's a web service to return rate exchange for dollars/euros/rubles by incoming comma-separated text messages.
For example:
```
http -b -f POST localhost:8070 q="5 usd, 20 €, 100 рублей" d="2016-12-08"
```
```json
{
"date": "2016-12-08",
"rates": [
{
"msg": "5 usd",
"rate": {
"eur": 4.67,
"rub": 319.56,
"usd": 5
}
},
{
"msg": "20 €",
"rate": {
"eur": 20,
"rub": 1370,
"usd": 21.44
}
},
{
"msg": "100 рублей",
"rate": {
"eur": 1.46,
"rub": 100,
"usd": 1.56
}
}
]
}
```