Package tech.cassandre.trading.bot.batch
Class PositionFlux
java.lang.Object
tech.cassandre.trading.bot.util.base.Base
tech.cassandre.trading.bot.util.base.batch.BaseFlux<PositionDTO>
tech.cassandre.trading.bot.batch.PositionFlux
Position flux - push
PositionDTO
.
Two methods override from super class:
- getNewValues(): positions are only created inside cassandre, so we don't need to get new values from outside.
- saveValues(): update positions when they are sent to this flux (they are not created in the flux).
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<PositionDTO>
saveValues
(Set<PositionDTO> newValues) Implements this method to save values coming from flux.Methods inherited from class tech.cassandre.trading.bot.util.base.batch.BaseFlux
emitValue, emitValues, getFlux, getNewValues, getOverflowStrategy, update
-
Constructor Details
-
PositionFlux
-
-
Method Details
-
saveValues
Description copied from class:BaseFlux
Implements this method to save values coming from flux.- Overrides:
saveValues
in classBaseFlux<PositionDTO>
- Parameters:
newValues
- new value- Returns:
- the value saved
-