Flux

Classes retrieving data from the exchange (accounts, tickers, and orders) and pushing them to the strategy.

BaseFlux.

All batches are using Project reactor and inherits from the BaseFlux class.

The only method to implement for a flux is getNewValues(), it will be called by the bot, and the values returned will be sent to the user strategy throw the flux.

AccountFlux.

AccountFlux is calling the exchange to retrieve accounts & balances. Any changes will result in a call to the method onAccountUpdate() of the user strategy.

TickerFlux.

TickerFlux is calling the exchange to retrieve the tickers requested by the user strategy. New values will result in a call to the method onTickerUpdate() of the user strategy.

OrderFlux.

OrderFlux is calling the exchange to retrieve orders from the exchange. Updated orders will result in a call to the method onOrderUpdate() of the user strategy.

TradeFlux.

TradeFlux is calling the exchange to retrieve trades from the exchange. Updated trades will result in a call to the method onTradeUpdate() of the user strategy.

PositionFlux.

PositionFlux is keeping updated the positions. Updated positions will result in a call to the method onPositionUpdate() of the user strategy.