Skip to main content
Version: 2.x

Portfolio margin

 License: MIT 

Installation

pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>

Client instantiation

PortfolioMarginClient client = new PortfolioMarginClient(key, secret);

Features

Get account infos

try{
AccountInfo res = client.getAccountInfo().sync();
}catch(ApiException e){
//...
}

Get collateral rate

try{
List<CollaterateRateInfo> res = client.getCollateralRate().sync();
}catch(ApiException e){
//...
}