package org.knowm.xchange.enigma;

import org.knowm.xchange.BaseExchange;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.enigma.dto.account.EnigmaCredentials;
import org.knowm.xchange.enigma.dto.account.EnigmaLoginResponse;
import org.knowm.xchange.enigma.service.EnigmaAccountService;
import org.knowm.xchange.enigma.service.EnigmaMarketDataService;
import org.knowm.xchange.enigma.service.EnigmaTradeService;
import org.knowm.xchange.utils.nonce.CurrentTimeNonceFactory;
import si.mazi.rescu.SynchronizedValueFactory;

import java.io.IOException;

public class EnigmaExchange extends BaseExchange {

  private static final String SSL_URI = "https://test.enigma-securities.io/";
  //  private static final String SSL_URI = "https://api.enigma-securities.io/";
  private static final String HOST = "api.enigma-securities.io";

  private SynchronizedValueFactory<Long> nonceFactory = new CurrentTimeNonceFactory();

  @Override
  protected void initServices() {
    this.marketDataService = new EnigmaMarketDataService(this);
    this.tradeService = new EnigmaTradeService(this);
    this.accountService = new EnigmaAccountService(this);
  }

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {

    ExchangeSpecification exchangeSpecification =
        new ExchangeSpecification(this.getClass().getCanonicalName());
    exchangeSpecification.setSslUri(SSL_URI);
    exchangeSpecification.setHost(HOST);
    exchangeSpecification.setPort(443);
    exchangeSpecification.setExchangeName("Enigma");
    exchangeSpecification.setExchangeDescription("Enigma Securities REST API integration");
    exchangeSpecification.setShouldLoadRemoteMetaData(false);

    return exchangeSpecification;
  }

  @Override
  public SynchronizedValueFactory<Long> getNonceFactory() {
    return nonceFactory;
  }
}

@@ -119,136 +119,8 @@
 on;%0A
-import org.knowm.xchange.enigma.dto.account.EnigmaCredentials;%0Aimport org.knowm.xchange.enigma.dto.account.EnigmaLoginResponse;%0A
 impo
@@ -169,32 +169,32 @@
 AccountService;%0A
+
 import org.knowm
@@ -416,37 +416,8 @@
 y;%0A%0A
-import java.io.IOException;%0A%0A
 publ
@@ -542,16 +542,83 @@
 s.io/%22;%0A
+  private static final String HOST = %22test.enigma-securities.io%22;%0A%0A
   //  pr
@@ -682,32 +682,36 @@
 ecurities.io/%22;%0A
+  //
   private static

Set test api url