Class BaseExchange

    • Constructor Detail

      • BaseExchange

        public BaseExchange()
    • Method Detail

      • initServices

        protected abstract void initServices()
      • loadExchangeMetaData

        protected void loadExchangeMetaData​(InputStream is)
      • loadMetaData

        protected <T> T loadMetaData​(InputStream is,
                                     Class<T> type)
      • getExchangeSymbols

        public List<CurrencyPair> getExchangeSymbols()
        Description copied from interface: Exchange
        Returns a list of CurrencyPair objects. This list can either come originally from a loaded json file or from a remote call if the implementation override's the `remoteInit` method.
        Specified by:
        getExchangeSymbols in interface Exchange
        Returns:
        The exchange's symbols
      • getExchangeMetaData

        public ExchangeMetaData getExchangeMetaData()
        Description copied from interface: Exchange
        The Meta Data defining some semi-static properties of an exchange such as currency pairs, trading fees, etc.
        Specified by:
        getExchangeMetaData in interface Exchange
        Returns:
        The exchange's meta data
      • getMarketDataService

        public MarketDataService getMarketDataService()
        Description copied from interface: Exchange
        A market data service typically consists of a regularly updated list of the available prices for the various symbols

        This is the non-streaming (blocking) version of the service

        Specified by:
        getMarketDataService in interface Exchange
        Returns:
        The exchange's market data service
      • getTradeService

        public TradeService getTradeService()
        Description copied from interface: Exchange
        An trade service typically provides access to trading functionality

        Typically access is restricted by a secret API key and/or username password authentication which are usually provided in the ExchangeSpecification

        Specified by:
        getTradeService in interface Exchange
        Returns:
        The exchange's trade service
      • getAccountService

        public AccountService getAccountService()
        Description copied from interface: Exchange
        An account service typically provides access to the user's private exchange data

        Typically access is restricted by a secret API key and/or username password authentication which are usually provided in the ExchangeSpecification

        Specified by:
        getAccountService in interface Exchange
        Returns:
        The exchange's account service