Use version 1.1 until further notice, as various endpoints used for initial development of this wrapper are now failing.
Java wrapper for the beta 2.0 version of the Bittrex API (version 1.1 here). Methods return a Response object with the following variables:
responseCode
- int set to the response codesuccess
- boolean set to true if the request succededmessage
- String with details if the request is invalidresponse
- String with the actual response
public static void main(String...args) {
Bittrex wrapper = new Bittrex();
wrapper.setAuthKeysFromTextFile("keys.txt");
Response response = wrapper.getOpenOrders();
if(response.isSuccessful())
System.out.println(response.getResult());
}
Please attach your key & secret in a text file and place it in the same folder as your source code. It should be formatted like so:
- apikey: "key"
- secret: "secret"
- Apache HttpClient
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>
Donations are appreciated!
- BTC: 1P2RobdwhT5QmdDqDudXSJ81v4ZKpNWXSb
- DOGE: DCdisnbNQeAaTtdRvwgvu9pL8SVAtZR9Mm