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

org.knowm.xchange.truefx.TrueFxExchange Maven / Gradle / Ivy

The newest version!
package org.knowm.xchange.truefx;

import java.io.IOException;
import org.knowm.xchange.BaseExchange;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.exceptions.ExchangeException;
import org.knowm.xchange.truefx.service.TrueFxMarketDataService;
import si.mazi.rescu.SynchronizedValueFactory;

public class TrueFxExchange extends BaseExchange {

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {
    ExchangeSpecification specification = new ExchangeSpecification(this.getClass());
    specification.setShouldLoadRemoteMetaData(false);
    specification.setPlainTextUri("http://webrates.truefx.com/");
    specification.setExchangeName("TrueFX");
    specification.setExchangeDescription("TrueFX exchange");
    return specification;
  }

  @Override
  protected void initServices() {
    this.marketDataService = new TrueFxMarketDataService(this);
  }

  @Override
  public void remoteInit() throws IOException, ExchangeException {
    // there are no suitable API calls to use for remote init
  }

  @Override
  public SynchronizedValueFactory getNonceFactory() {
    return null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy