anychange

AnyChange - Exchange any currency

License

License

APACHE-2.0
GroupId

GroupId

ua.com.lavi
ArtifactId

ArtifactId

anychange
Last Version

Last Version

0.19
Release Date

Release Date

Type

Type

jar
Description

Description

anychange
AnyChange - Exchange any currency
Project URL

Project URL

https://github.com/laviua/anychange
Source Code Management

Source Code Management

https://github.com/laviua/anychange

Download anychange

How to add to project

<!-- https://jarcasting.com/artifacts/ua.com.lavi/anychange/ -->
<dependency>
    <groupId>ua.com.lavi</groupId>
    <artifactId>anychange</artifactId>
    <version>0.19</version>
</dependency>
// https://jarcasting.com/artifacts/ua.com.lavi/anychange/
implementation 'ua.com.lavi:anychange:0.19'
// https://jarcasting.com/artifacts/ua.com.lavi/anychange/
implementation ("ua.com.lavi:anychange:0.19")
'ua.com.lavi:anychange:jar:0.19'
<dependency org="ua.com.lavi" name="anychange" rev="0.19">
  <artifact name="anychange" type="jar" />
</dependency>
@Grapes(
@Grab(group='ua.com.lavi', module='anychange', version='0.19')
)
libraryDependencies += "ua.com.lavi" % "anychange" % "0.19"
[ua.com.lavi/anychange "0.19"]

Dependencies

runtime (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.40

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

AnyChange

GitHub license Maven Central Code Climate

This library gives an ability to make cross converting from one currency to another according to bid/ask rates with the different rates provider.

Motivation: Make a dynamic calculation between several different currencies (fiat, crypto, etc), that's why I decided to use String instead of the "Currency" data type.

Use cases:

For example we need to get a rate of the pair BTCUAH, hence we need to calculate pairs via several providers: BTCUSDT (binance) -> USDTUSD (~static price) -> USDUAH (privat24).

Or we want to get: BTCETH, because only ETHBTC exists in the Binance.

Please feel free to open issues, especially for fix in calculation. Thanks

Versions

Version
0.19
0.18
0.17
0.16
0.15
0.14
0.13
0.12
0.11
0.10
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2