Class BasicCassandreStrategy


  • public abstract class BasicCassandreStrategy
    extends Object
    Basic strategy - Cassandre bot will run the first CassandreStrategy implementation found.
    • Constructor Detail

      • BasicCassandreStrategy

        public BasicCassandreStrategy()
    • Method Detail

      • getTradeService

        public final TradeService getTradeService()
        Getter tradeService.
        Returns:
        tradeService
      • setTradeService

        public final void setTradeService​(TradeService newTradeService)
        Setter tradeService.
        Parameters:
        newTradeService - the tradeService to set
      • getRequestedCurrencyPairs

        public abstract Set<CurrencyPairDTO> getRequestedCurrencyPairs()
        Implements this method to tell the bot which currency pairs your strategy will receive.
        Returns:
        the list of currency pairs tickers your want to receive
      • onAccountUpdate

        public abstract void onAccountUpdate​(AccountDTO account)
        Method triggered at every account update.
        Parameters:
        account - account
      • onTickerUpdate

        public abstract void onTickerUpdate​(TickerDTO ticker)
        Method triggered at every ticker update.
        Parameters:
        ticker - ticker
      • onOrderUpdate

        public abstract void onOrderUpdate​(OrderDTO order)
        Method triggered on every order update.
        Parameters:
        order - order