public class BitfinexAccountDemo {
public static void main(String[] args) throws IOException {
Exchange bfx = BitfinexDemoUtils.createExchange();
BitfinexAccountServiceRaw accountService = (BitfinexAccountServiceRaw) bfx.getPollingAccountService();
BitfinexMarginInfosResponse[] marginInfos = accountService.getBitfinexMarginInfos();
System.out.println("Margin infos response: " + marginInfos[0]);
}