use of org.knowm.xchange.coinbasepro.CoinbaseProExchange in project everytrade-plugins by everytrade-io.
the class CoinbaseProConnector method getTransactions.
@Override
public DownloadResult getTransactions(String downloadState) {
final ExchangeSpecification exSpec = new CoinbaseProExchange().getDefaultExchangeSpecification();
exSpec.setApiKey(apiKey);
exSpec.setSecretKey(apiSecret);
exSpec.setExchangeSpecificParametersItem("passphrase", passPhrase);
final Exchange exchange = ExchangeFactory.INSTANCE.createExchange(exSpec);
final CoinbaseProDownloader coinbaseProDownloader = new CoinbaseProDownloader(exchange, downloadState);
DownloadResult download = coinbaseProDownloader.download(currencyPairs);
return download;
}
Aggregations