Structure

This page describes the project organization.

Cassandre trading bot is provided as a spring boot starter. The sources can be found in the two projects: trading-bot-spring-boot-autoconfigure & trading-bot-spring-boot-starter.

This package contains tasks that can run without end-user interaction, or can be scheduled.

  • AccountFlux: calls the exchange to retrieve accounts & balances.

  • OrderFlux: calls the exchange to retrieve orders.

  • PositionFlux: pushes positions update.

  • TickerFlux: calls the exchange to retrieve the tickers requested by the user strategy.

  • TradeFlux: calls the exchange to retrieve trades.

This package contains auto configuration classes that configures Cassandre beans.

Objects from the business-specific area that represent something we want to store.

  • Position: positions saved (and will be restored in case of restart or crash).

  • Trade: trades saved (and will be restored in case of restart or crash).

Data transfer objects (tech.cassandre.trading.bot.dto).

Objects that carries data between processes.

Isolate the application/business layer from the persistence layer.

Offers high-level services.

Strategy management.

Utility classes.

  • base: base classes.

  • database: database utils.

  • exception: exception management.

  • mapper: mappers.

  • parameters: application.properties parameters management.

  • validator: custom validator for application.properties parameters.