C2C
Installation
- Maven
- Gradle
pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>
build.gradle
implementation '{{groupId}}:{{artifactId}}:{{version}}'
Client instantiation
BLVTClient client = new BLVTClient(key, secret);
Features
Get trades
- Purchases (Enum)
- Sales (String)
- Sync
- Async
try{
TradeHistory res = client.getTrades(new TradeHistoryParams(TradeType.BUY)).sync();
}catch(ApiException e){
//...
}
client.getTrades(new TradeHistoryParams(TradeType.BUY)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
TradeHistory res = client.getTrades(new TradeHistoryParams("SELL")).sync();
}catch(ApiException e){
//...
}
client.getTrades(new TradeHistoryParams("SELL")).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});