https://github.com/melizeche/dolarpy-wrapper-java
API wrapper for DolarPy https://github.com/melizeche/dolarPy
https://github.com/melizeche/dolarpy-wrapper-java
api api-rest api-wrapper currency dollar exchange-rate finance guarani
Last synced: 3 months ago
JSON representation
API wrapper for DolarPy https://github.com/melizeche/dolarPy
- Host: GitHub
- URL: https://github.com/melizeche/dolarpy-wrapper-java
- Owner: melizeche
- License: apache-2.0
- Created: 2017-09-05T11:36:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-03T10:43:56.000Z (almost 4 years ago)
- Last Synced: 2025-06-06T23:38:23.011Z (4 months ago)
- Topics: api, api-rest, api-wrapper, currency, dollar, exchange-rate, finance, guarani
- Language: Java
- Homepage: https://dolar.melizeche.com
- Size: 310 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dolarpy-wrapper-java
API wrapper for DolarPy https://dolar.melizeche.com
https://github.com/melizeche/dolarPy## Install
```
TODO
```## Usage
```java
import com.melizeche.dolarpy.DolarPyDolarPy dolar = new DolarPy();
dolar.getProvidersList() // 'bcp', 'maxicambios', 'cambioschaco', etc...
dolar.get() // Returns a Provider Object. default: BCP
dolar.get("maxicambios") // Returns Provider: maxicambios Object
dolar.get("maxicambios").getVenta() //Returns BigDecimal buy value from cambioschaco
dolar.getCompra() // Returns BigDecimal buy value from defaul Provider(bcp)
dolar.getCompra("cambioschaco") // Returns BigDecimal buy value from cambioschaco
dolar.getVenta("amabay") // Returns BigDecimal sell value from Amambay
dolar.get().getUpdated() // Returns LocalDateTime timestamp
```## Provider Object properties and methods
```java
private String name;
private BigDecimal compra;
private BigDecimal venta;
private LocalDateTime updated;public String getName();
public void setName(String name);
public BigDecimal getCompra();
public void setCompra(BigDecimal compra);
public BigDecimal getVenta();
public void setVenta(BigDecimal venta);
public LocalDateTime getUpdated();
public void setUpdated(LocalDateTime updated);
```## Requirements
- Java 8
- Gson 2.8.1## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## TODO
* Testing
* ~~Proper~~ Extend documentation
* More API methods## Credits
* Marcelo Elizeche Landó
## License
This project is licensed under the terms of the Apache 2.0 License - see the [LICENSE](LICENSE) file for details