Pay
Installation
- Maven
- Gradle
pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>
build.gradle
implementation '{{groupId}}:{{artifactId}}:{{version}}'
Client instantiation
PayClient client = new PayClient(key, secret);
Features
Get pay trades
- Default
- Framed
- Sync
- Async
try{
TradeHistory res = client.getTrades().sync();
}catch(ApiException e){
//...
}
client.getTrades().async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
TradeHistory res = client.getTrades(new TimeFrame(startTime, endTime, 10)).sync();
}catch(ApiException e){
//...
}
client.getTrades(new TimeFrame(startTime, endTime, 10)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});