Classes managing the user strategy.

To create a strategy, the developer must create a class with the @CassandreStrategy annotation and implements the BasicCassandreStrategy interface

Strategy annotation.

The @CassandreStrategy annotation allows the developer to mark its class as a Strategy and declares it as a Spring bean.

Parameter Description
name Name of the strategy (Optional)

CassandreStrategy : Abstract Cassandre strategy.

The BasicCassandreStrategy class must be implemented by the strategy.

Method Description
getRequestedCurrencyPairs() Implements this method to tell the bot which currency pairs your strategy will receive via the onTickerUpdate() method
onAccountUpdate() Method triggered at every account update
onTickerUpdate() Method triggered at every ticker update
onOrderUpdate() Method triggered on every order update
getTradeService() Returns the trade service you can use to retrieve and create order