Skip to content

Latest commit

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

CryptoCompareAPI

A Java implementation of the CryptoCompare API service.

Disclamer

This version of CryptoCompareAPI is not the original one. I duplicate the repository Josh-McFarlin/CryptoCompareAPI

But, for my needs I need to improve it and to follow the API updates. Then, I decided to split the project to make it available for everyone.

Download

Release

Gradle


repositories {
...
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.Wodric:CryptoCompareAPI:0.2.0'
}

Maven

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.Wodric</groupId>
<artifactId>CryptoCompareAPI</artifactId>
<version>0.2.0</version>
</dependency>

Usage

publicclassTest {
privateCryptoCompareAPIapi = newCryptoCompareAPI();
publicstaticvoidmain(String[] args) {
doubledayAverage = api.historic.getDayAverage("BTC", "USD");
System.out.println("Bitcoin day average:");
System.out.println(dayAverage);
Market.ExchangeAverageexchangeAverage = api.market.getExchangeAverage("BTC", "USD", "Coinbase,Kraken,Bitstamp");
System.out.println("Bitcoin average from Coinbase, Kraken, and Bitstamp:");
System.out.println(exchangeAverage.getHigh24Hour());
Map<String, Double> btcPrice = api.market.getPrice("BTC", "USD,EUR");
System.out.println("Bitcoin price in USD and EUR:");
System.out.println(btcPrice);
}
}

An example is provided in the test sources.

Documentation

No documentation avalaible for the moment. You could use the version of Josh McFarlin instead :

Documentation is provided at https://joshmcfarlin.me/CryptoCompareAPI/

License

This project is developed under the MIT license. This can be found at LICENSE.

About

Java implementation of the CryptoCompare API service: Duplicated from Josh-McFarlin/CryptoCompareAPI

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages