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

org.knowm.xchange.coinmate.service.CoinmateMetadataServiceRaw Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package org.knowm.xchange.coinmate.service;

import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.client.ExchangeRestProxyBuilder;
import org.knowm.xchange.coinmate.Coinmate;
import org.knowm.xchange.dto.meta.ExchangeMetaData;

public class CoinmateMetadataServiceRaw extends CoinmateBaseService {
  private final Coinmate coinmate;

  public CoinmateMetadataServiceRaw(Exchange exchange) {
    super(exchange);
    this.coinmate =
        ExchangeRestProxyBuilder.forInterface(Coinmate.class, exchange.getExchangeSpecification())
            .build();
  }

  public ExchangeMetaData getMetadata() throws IOException {
    ExchangeMetaData metaData = coinmate.getMetadata();

    return metaData;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy