class FtxExchange extends BaseExchange implements Exchange {

  private FtxLendingServiceRaw lendingService;
  private FtxBorrowingServiceRaw borrowingService;

  @Override
  protected void initServices() {<FILL_FUNCTION_BODY>}

  @Override
  public ExchangeSpecification getDefaultExchangeSpecification() {
    ExchangeSpecification exchangeSpecification = new ExchangeSpecification(this.getClass());

    exchangeSpecification.setSslUri("https://ftx.com");
    exchangeSpecification.setHost("ftx.com");
    exchangeSpecification.setPort(80);
    exchangeSpecification.setExchangeName("Ftx");
    exchangeSpecification.setExchangeDescription("Ftx is a spot and derivatives exchange.");

    return exchangeSpecification;
  }

  @Override
  public void remoteInit() throws IOException, ExchangeException {
    FtxMarketsDto marketsDto =
        ((FtxMarketDataServiceRaw) marketDataService).getFtxMarkets().getResult();

    exchangeMetaData = FtxAdapters.adaptExchangeMetaData(marketsDto);
  }

  @Override
  public MarketDataService getMarketDataService() {
    return this.marketDataService;
  }

  @Override
  public AccountService getAccountService() {
    return this.accountService;
  }

  @Override
  public TradeService getTradeService() {
    return this.tradeService;
  }

  public FtxLendingServiceRaw getLendingService() {
    return lendingService;
  }

  public FtxBorrowingServiceRaw getBorrowingService() {
    return borrowingService;
  }
}

    this.marketDataService = new FtxMarketDataService(this);
    this.accountService = new FtxAccountService(this);
    this.tradeService = new FtxTradeService(this);
    this.lendingService = new FtxLendingServiceRaw(this);
    this.borrowingService = new FtxBorrowingServiceRaw(this);
  
<methods>public non-sealed void <init>() ,public void applySpecification(org.knowm.xchange.ExchangeSpecification) ,public org.knowm.xchange.service.account.AccountService getAccountService() ,public List<org.knowm.xchange.instrument.Instrument> getExchangeInstruments() ,public org.knowm.xchange.dto.meta.ExchangeMetaData getExchangeMetaData() ,public org.knowm.xchange.ExchangeSpecification getExchangeSpecification() ,public org.knowm.xchange.service.marketdata.MarketDataService getMarketDataService() ,public java.lang.String getMetaDataFileName(org.knowm.xchange.ExchangeSpecification) ,public SynchronizedValueFactory<java.lang.Long> getNonceFactory() ,public org.knowm.xchange.service.trade.TradeService getTradeService() ,public void remoteInit() throws java.io.IOException, org.knowm.xchange.exceptions.ExchangeException,public java.lang.String toString() <variables>protected org.knowm.xchange.service.account.AccountService accountService,protected org.knowm.xchange.dto.meta.ExchangeMetaData exchangeMetaData,protected org.knowm.xchange.ExchangeSpecification exchangeSpecification,protected final Logger logger,protected org.knowm.xchange.service.marketdata.MarketDataService marketDataService,private final SynchronizedValueFactory<java.lang.Long> nonceFactory,protected org.knowm.xchange.service.trade.TradeService tradeService