Package tech.cassandre.trading.bot.batch
Class TickerFlux
java.lang.Object
tech.cassandre.trading.bot.util.base.Base
tech.cassandre.trading.bot.util.base.batch.BaseFlux<TickerDTO>
tech.cassandre.trading.bot.batch.TickerFlux
Ticker flux - push
TickerDTO
.
Two methods override from super class:
- getNewValues(): calling market service to retrieve tickers from exchange.
- saveValues(): not implemented as we don't store tickers 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
ConstructorsConstructorDescriptionTickerFlux
(org.springframework.context.ApplicationContext applicationContext, MarketService marketService) -
Method Summary
Modifier and TypeMethodDescriptionImplements 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
-
TickerFlux
public TickerFlux(org.springframework.context.ApplicationContext applicationContext, MarketService marketService)
-
-
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<TickerDTO>
- Returns:
- list of new values
-