Class UserServiceDryModeAOP
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.Base
-
- tech.cassandre.trading.bot.util.base.service.BaseService
-
- tech.cassandre.trading.bot.util.dry.UserServiceDryModeAOP
-
@Component @ConditionalOnExpression("${cassandre.trading.bot.exchange.modes.dry:true}") public class UserServiceDryModeAOP extends BaseService
AOP for user service in dry mode.
-
-
Field Summary
-
Fields inherited from class tech.cassandre.trading.bot.util.base.service.BaseService
bucket
-
Fields inherited from class tech.cassandre.trading.bot.util.base.Base
accountMapper, currencyMapper, logger, orderMapper, positionMapper, strategyMapper, tickerMapper, tradeMapper, utilMapper
-
-
Constructor Summary
Constructors Constructor Description UserServiceDryModeAOP(org.springframework.context.ApplicationContext newApplicationContext)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToBalance(GenericCassandreStrategy strategy, org.knowm.xchange.currency.Currency currency, BigDecimal amount)
Update balance of trade account (method called by trade service).org.knowm.xchange.dto.account.AccountInfo
getAccountInfo(org.aspectj.lang.ProceedingJoinPoint pjp)
-
-
-
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
- strategycurrency
- currencyamount
- amount
-
-