Class CoinExchangeTradingBot

java.lang.Object
nxt.addons.AbstractContract<Object,Object>
com.jelurida.ardor.contracts.trading.CoinExchangeTradingBot
All Implemented Interfaces:
Contract<Object,Object>

public class CoinExchangeTradingBot extends AbstractContract<Object,Object>
  • Constructor Details

    • CoinExchangeTradingBot

      public CoinExchangeTradingBot()
  • Method Details

    • init

      public void init(InitializationContext context)
      Description copied from interface: Contract
      Contract initialization.

      Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.

      Parameters:
      context - the contract context
    • shutdown

      public void shutdown(ShutdownContext context)
      Description copied from interface: Contract
      Contract shutdown

      Invoked once before destroying the contract class, after any other callback. Use this callback to clean up long running services.

      Parameters:
      context - the contract context
    • processBlock

      public JO processBlock(BlockContext context)
      Specified by:
      processBlock in interface Contract<Object,Object>
      Overrides:
      processBlock in class AbstractContract<Object,Object>
    • getPairs

      protected List<CoinExchangeTradingBot.PairParams> getPairs(JO contractRunnerConfigParams)