class EnigmaDemoUtils {

  private static String username = "iSemyonova";
  private static String password = "irinaEnigmaSecuritiesRestApi123!";
  private static String infra = "dev";

  public static Exchange createExchange() {<FILL_FUNCTION_BODY>}
}


    EnigmaExchange enigmaExchange = new EnigmaExchange();
    ExchangeSpecification exchangeSpec = enigmaExchange.getDefaultExchangeSpecification();
    exchangeSpec.setExchangeSpecificParametersItem("infra", infra);
    exchangeSpec.setUserName(username);
    exchangeSpec.setPassword(password);
    enigmaExchange.applySpecification(exchangeSpec);
    try {
      ((EnigmaAccountService) enigmaExchange.getAccountService()).login();
    } catch (IOException e) {
      throw new RuntimeException("Login exception", e);
    }
    return enigmaExchange;
  
<no_super_class>