com.xeiam.xchange.examples.bitfinex.account.BitfinexAccountDemo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-examples Show documentation
Show all versions of xchange-examples Show documentation
Provides a set of examples that demonstrate how to use XChange in client applications
The newest version!
package com.xeiam.xchange.examples.bitfinex.account;
import java.io.IOException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.bitfinex.v1.dto.account.BitfinexMarginInfosResponse;
import com.xeiam.xchange.bitfinex.v1.service.polling.BitfinexAccountServiceRaw;
import com.xeiam.xchange.examples.bitfinex.BitfinexDemoUtils;
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]);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy