Package tech.cassandre.trading.bot.batch
Class AccountFlux
java.lang.Object
tech.cassandre.trading.bot.util.base.Base
tech.cassandre.trading.bot.util.base.batch.BaseFlux<AccountDTO>
tech.cassandre.trading.bot.batch.AccountFlux
Account flux - push
AccountDTO
.
Two methods override from super class:
- getNewValues(): calling user service to retrieve accounts values from exchange.
- saveValues(): not implemented as we don't store accounts data in database.
To get a deep understanding of how it works, read the documentation of BaseFlux
.-
Field Summary
Fields inherited from class tech.cassandre.trading.bot.util.base.Base
ACCOUNT_MAPPER, CANDLE_MAPPER, CURRENCY_MAPPER, logger, ORDER_MAPPER, POSITION_MAPPER, STRATEGY_MAPPER, TICKER_MAPPER, TRADE_MAPPER, UTIL_MAPPER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Set<AccountDTO>
Implements this method to return all the new values.Methods inherited from class tech.cassandre.trading.bot.util.base.batch.BaseFlux
emitValue, emitValues, getFlux, getOverflowStrategy, saveValues, update
-
Constructor Details
-
AccountFlux
-
-
Method Details
-
getNewValues
Description copied from class:BaseFlux
Implements this method to return all the new values. Those values will be sent to the strategy.- Overrides:
getNewValues
in classBaseFlux<AccountDTO>
- Returns:
- list of new values
-