All Projects → platelminto → java-bittrex

platelminto / java-bittrex

Licence: MIT License
Java wrapper for the Bittrex API

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to java-bittrex

bittrex-java-client
Java client for the bittrex.com v1.1 API
Stars: ✭ 30 (+25%)
Mutual labels:  bittrex, bittrex-api
Bittrex.Api.Client
A C# http client wrapper for the Bittrex cryptocurrency trading platform api
Stars: ✭ 14 (-41.67%)
Mutual labels:  bittrex, bittrex-api
bittrex-api
PHP client for the Bittrex API
Stars: ✭ 25 (+4.17%)
Mutual labels:  bittrex, bittrex-api
coinaly
🚀 Fast and easy to use mobile trade interface for cryptocurrencies. Track your trades to the moon and beyond. Currently only for Bittrex.
Stars: ✭ 32 (+33.33%)
Mutual labels:  bittrex, bittrex-api
BitView
A crypto portfolio written in Flutter. It supports Binance, Bittrex, HitBTC, Coinbase, Coinbase Pro and Mercatox
Stars: ✭ 50 (+108.33%)
Mutual labels:  bittrex
bittrex
💸 Haskell bindings to the Bittrex cryptocurrency exchange
Stars: ✭ 24 (+0%)
Mutual labels:  bittrex
libcryptomarket
Powerful cryptocurrency market analysis toolkit
Stars: ✭ 43 (+79.17%)
Mutual labels:  bittrex
BittrexSharp
C# Api Wrapper for Bittrex
Stars: ✭ 30 (+25%)
Mutual labels:  bittrex
crypto-database
Database for crypto data, supporting several exchanges. Can be used for TA, bots, backtest, realtime trading, etc.
Stars: ✭ 72 (+200%)
Mutual labels:  bittrex
BittrexRx
BittrexRx is a rxjs node wrapper for the Bittrex Api
Stars: ✭ 16 (-33.33%)
Mutual labels:  bittrex
Welcome
Welcome to PTDefender
Stars: ✭ 27 (+12.5%)
Mutual labels:  bittrex
easypump
EasyPump makes the coin pump easy and profitable
Stars: ✭ 14 (-41.67%)
Mutual labels:  bittrex
Unofficial-Robinhood-Api
Java Wrapper for the Robinhood Investing App/Service
Stars: ✭ 28 (+16.67%)
Mutual labels:  java-wrapper
mcafee2cash
A crypto trading bot powered by McAfee tweets
Stars: ✭ 38 (+58.33%)
Mutual labels:  bittrex-api
python-bittrex-websocket-aio
Python websocket for Bittrex (async).
Stars: ✭ 35 (+45.83%)
Mutual labels:  bittrex
java-phantomjs-wrapper
A Java wrapper around the PhantomJS binaries including a packaged HTML to PDF render script
Stars: ✭ 54 (+125%)
Mutual labels:  java-wrapper
guncontrol
🔔 GunControl • Custom *nix launcher for GunBot
Stars: ✭ 16 (-33.33%)
Mutual labels:  bittrex
trader
a ping pong and maker/taker order bot for trading cryptocurrency on Waves Exchange, Poloniex, Bittrex, and Binance
Stars: ✭ 23 (-4.17%)
Mutual labels:  bittrex
Jikan4java
Kotlin wrapper for Jikan, an myanimelist api
Stars: ✭ 27 (+12.5%)
Mutual labels:  java-wrapper
BitUtils
Systematic coin price notifier, Telegram public channel history parser, Trading tool with python
Stars: ✭ 48 (+100%)
Mutual labels:  bittrex-api

java-bittrex

Java wrapper for the 1.1 version of the Bittrex API. Methods return a String with the response in JSON format, and can then easily be requested for information by converting them into a map using the static getMapsFromResponse() method.

Usage

public static void main(String...args) {

	Bittrex wrapper = new Bittrex();
	wrapper.setAuthKeysFromTextFile("keys.txt");

	String rawResponse = wrapper.getMarketSummary("BTC-LTC");
	List<HashMap<String, String>> responseMapList = Bittrex.getMapsFromResponse(rawResponse);
			
	// In some cases, only 1 map is actually returned - if this is assured:
	HashMap<String, String> onlyMap = responseMapList.get(0);
			
	// See available information using present keys
	for(String key : onlyMap.keySet())
				
		System.out.print(key + " ");
			
	System.out.println();		
	
	// Get wanted value using a key found in the KeySet
	onlyMap.get("Volume");
		
	// Some responses have more than 1 map - the List must be traversed in these cases.
	String otherRawResponse = wrapper.getBalances();
	List<HashMap<String, String>> allBalancesMapList = Bittrex.getMapsFromResponse(otherRawResponse);
		
	for(HashMap<String, String> map : allBalancesMapList)
		
		System.out.println(map);
			
	// And then the wanted map can be used
		
	allBalancesMapList.get(3).get("Balance");
}

Additionally, if a constant internet connection isn't available, connection attempts & handling of connection failures can be specified in the constructor, with the handling of the ReconnectionAttemptsExceededException.

	// Construct wrapper object with 3 connection attempts, and a 10 second delay between each attempt.
	Bittrex wrapper = new Bittrex(3, 10);
	wrapper.setAuthKeysFromTextFile("keys.txt");

	try {
			
		final String response = wrapper.getBalance("DOGE");
			
		System.out.println(response);
		System.out.println(Bittrex.getMapsFromResponse(response).get(0).get("Balance"));
		System.out.println(Bittrex.getMapsFromResponse(wrapper.getBalance("BTC")).get(0).get("Balance"));
			
	 // If all 3 attempts fail, an unchecked exception is thrown, and can be handled with a simple try/catch.
	} catch (ReconnectionAttemptsExceededException e) {

		System.err.println("Connection failed.");
	}

Key & Secret

Please attach your key & secret in a text file, with the following format, and place it in the same folder as the source code.

 - apikey: "key"
 - secret: "secret"

Donate

Donations are appreciated!

  • BTC: 1EryF7zrsL2dXCfcsVzkdPfQcDTL9qqFA1
  • DOGE: DTe4YtwKpwMp83RDozouK3A4ThBD2D3L3B
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].