Class UserServiceDryModeAOP


  • @Component
    @ConditionalOnExpression("${cassandre.trading.bot.exchange.modes.dry:true}")
    public class UserServiceDryModeAOP
    extends BaseService
    AOP for user service in dry mode.
    • Constructor Detail

      • UserServiceDryModeAOP

        public UserServiceDryModeAOP​(org.springframework.context.ApplicationContext newApplicationContext)
        Constructor.
        Parameters:
        newApplicationContext - application context
    • Method Detail

      • getAccountInfo

        public final org.knowm.xchange.dto.account.AccountInfo getAccountInfo​(org.aspectj.lang.ProceedingJoinPoint pjp)
      • addToBalance

        public void addToBalance​(GenericCassandreStrategy strategy,
                                 org.knowm.xchange.currency.Currency currency,
                                 BigDecimal amount)
        Update balance of trade account (method called by trade service).
        Parameters:
        strategy - strategy
        currency - currency
        amount - amount