Package tech.cassandre.trading.bot.batch
Class OrderFlux
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.Base
-
- tech.cassandre.trading.bot.util.base.batch.BaseFlux<T>
-
- tech.cassandre.trading.bot.util.base.batch.BaseExternalFlux<OrderDTO>
-
- tech.cassandre.trading.bot.batch.OrderFlux
-
public class OrderFlux extends BaseExternalFlux<OrderDTO>
Order flux - pushOrderDTO
.
-
-
Field Summary
-
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 OrderFlux(TradeService newTradeService, OrderRepository newOrderRepository)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<OrderDTO>
getNewValues()
Implements this method to return all the new values.protected Optional<OrderDTO>
saveValue(OrderDTO newValue)
Implements this method to backup each update.-
Methods inherited from class tech.cassandre.trading.bot.util.base.batch.BaseExternalFlux
update
-
Methods inherited from class tech.cassandre.trading.bot.util.base.batch.BaseFlux
emitValue, getFlux, getOverflowStrategy
-
-
-
-
Constructor Detail
-
OrderFlux
public OrderFlux(TradeService newTradeService, OrderRepository newOrderRepository)
Constructor.- Parameters:
newTradeService
- trade servicenewOrderRepository
- order repository
-
-
Method Detail
-
getNewValues
protected final Set<OrderDTO> getNewValues()
Description copied from class:BaseExternalFlux
Implements this method to return all the new values. Those values will be sent to the strategy.- Specified by:
getNewValues
in classBaseExternalFlux<OrderDTO>
- Returns:
- list of new values
-
-