All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.cobinhood.service.CobinhoodAccountService Maven / Gradle / Ivy

There is a newer version: 4.3.17.1
Show newest version
package org.knowm.xchange.cobinhood.service;

import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.cobinhood.dto.CobinhoodAdapters;
import org.knowm.xchange.cobinhood.dto.account.CobinhoodCoinBalances;
import org.knowm.xchange.dto.account.AccountInfo;
import org.knowm.xchange.service.account.AccountService;

public class CobinhoodAccountService extends CobinhoodAccountServiceRaw implements AccountService {

  public CobinhoodAccountService(Exchange exchange) {
    super(exchange);
  }

  @Override
  public AccountInfo getAccountInfo() throws IOException {
    CobinhoodCoinBalances balances = getCobinhoodBalances();

    return CobinhoodAdapters.adaptAccountInfo(balances);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy