https://github.com/rodoufu/currency-values
https://github.com/rodoufu/currency-values
bitcoin currency-converter quotation spring-boot
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rodoufu/currency-values
- Owner: rodoufu
- Created: 2019-01-31T22:23:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T19:33:44.000Z (over 7 years ago)
- Last Synced: 2025-06-04T21:45:14.616Z (about 1 year ago)
- Topics: bitcoin, currency-converter, quotation, spring-boot
- Language: Java
- Size: 43 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# currency-values
* Functional requirements
* Read input data from any http source every x seconds-minutes
* Process data with any rules
* Put it in the any in-memory database (H2)
* By the request in browser show the last 10 entries (no UI, just json) by reading from the in-memory db
* Non functional requirements
* Framework for tests: junit
* Do not spend time for complex processing logic.
* Java 8
* spring boot
* Don’t use hibernate.
The application reads the Bitcoin quotation from a Brazilian exchange at:
https://broker.negociecoins.com.br/api/v3/btcbrl/ticker
Then it modifies the data by mixing it with the currencies quotations from:
https://api.exchangeratesapi.io/latest?base=BRL
Generating a Bitcoin quotation for each currency found.
The data is saved in-memory with H2 the the last 10 entries can be obtained accessing the '/' address using the GET method.
It is possible to configure the time between each time a Bitcoin quotation is requested,
this can be done on the file 'application.properties' on the property 'bitcoin.price.job.interval',
this value is the amount of milliseconds between two requests.