Details cassandre trading bot architecture.

Cassandre trading bot is available as a Spring boot starter. Once the starter is added to your Spring boot project, it will search for a class having the @CassandreStrategy annotation and implementing BasicCassandreStrategy.

The method getRequestedCurrencyPairs(), returns the list of currency pairs updates you want to receive.

This class will receive new available data :

  • If there is a change on your account data, onAccountUpdate() will be called.
  • When a new quote is available, onTickerUpdate() will be called.
  • If there is a change on your order data, onOrderUpdate() will be called.

Inside your strategy, you can create an order by accessing the trade service with a call to getTradeService().

Cassandre architecture
Cassandre architecture