Giter Club home page Giter Club logo

coinmarketcap-api's Introduction

CoinMarketCap-API

An API implementation written in Java for the CoinMarketCap API.

The library has been updated to work with API v2 from CMC. Please report any issues and/or feature requests here on github.

Installation

I have released this library onto maven central:

<dependency>
    <groupId>com.lucadev</groupId>
    <artifactId>coinmarketcap-api</artifactId>
    <version>2.1</version>
</dependency>

Usage

CoinMarketList coinMarkets  = CoinMarketCap.ticker().setLimit(5).convert(Currency.EUR).get();
coinMarkets.forEach(System.out::println);

//find a market
CoinMarket bitcoinMarket = coinMarkets.getByName("bitcoin");
System.out.println(bitcoinMarket.getUSDPriceQuote().getPrice());

System.out.println("Specific Currency:");

CoinMarket market = CoinMarketCap.ticker(1).get();
System.out.println(market);

System.out.println("Specific currency by market name:");
CoinMarket namedMarket = CoinMarketCap.ticker("bitcoin").get();
System.out.println(namedMarket);

An example implementation can be found in the maven test sources.

License

This project is developed under the GNU GPLv3 license. This license can be found under LICENSE.txt

Changelog

2.1

  • Add CoinMarketCap.ticker(String) method which simplifies CoinMarketCap.ticker(Long)
  • Improve test coverage
  • Cache evict method for coin listings

2.0

  • Upgrade API implementation to match v2 CMC API
  • New models to match new API version
  • Caching for CoinListing

1.*

  • Implement API v1
  • Upgrade JAXRS version

Donations

If you wish to donate to me please use the following addresses:

  • BitCoin: 1CozQVtEKF46cna5QdcvBTyb1T6qt6g67R
  • LiteCoin: LfSix129Ceoo3LFEwe58MNG1Dt7j4t14QF
  • Ethereum: 0x4523E6b7439a3A58BaCD3ca9EAAeDe5875Fd7503
  • NEM(XEM): NCFKOG2FZNVH6QMCRWDZEM67Q65M2UZTI7G3DPXQ

coinmarketcap-api's People

Contributors

camphul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.