NFT
Installation
- Maven
- Gradle
pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>
build.gradle
implementation '{{groupId}}:{{artifactId}}:{{version}}'
Client instantiation
PortfolioMarginClient client = new PortfolioMarginClient(key, secret);
Get NFT Transaction History
- Default
- Paginated
- Sync
- Async
try{
TransactionHistory res = client.getTransactions(new TransactionHistoryParams(orderType)).sync();
}catch(ApiException e){
//...
}
client.getTransactions(new TransactionHistoryParams(orderType)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
TransactionHistory res = client.getTransactions(new TransactionHistoryParams(orderType), new FramedPaging(startTime, endTime, page, limit)).sync();
}catch(ApiException e){
//...
}
client.getTransactions(new TransactionHistoryParams(orderType), new FramedPaging(startTime, endTime, page, limit)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
Get NFT deposit History
- Default
- Paginated
- Sync
- Async
try{
DepositHistory res = client.getDeposits().sync();
}catch(ApiException e){
//...
}
client.getDeposits().async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
DepositHistory res = client.getDeposits(new FramedPaging(startTime, endTime, page, limit)).sync();
}catch(ApiException e){
//...
}
client.getDeposits(new FramedPaging(startTime, endTime, page, limit)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
Get NFT withdraw History
- Default
- Paginated
- Sync
- Async
try{
WithdrawHistory res = client.getWithdraws().sync();
}catch(ApiException e){
//...
}
client.getWithdraws().async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
WithdrawHistory res = client.getWithdraws(new FramedPaging(startTime, endTime, page, limit)).sync();
}catch(ApiException e){
//...
}
client.getWithdraws(new FramedPaging(startTime, endTime, page, limit)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
Get NFT assets
- Default
- Paginated
- Sync
- Async
try{
WithdrawHistory res = client.getAssets().sync();
}catch(ApiException e){
//...
}
client.getAssets().async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
WithdrawHistory res = client.getAssets(Paging(page, limit)).sync();
}catch(ApiException e){
//...
}
client.getAssets(Paging(page, limit)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});