Cassandre trading bot framework

Cassandre trading bot framework

Create your Java crypto trading bot in minutes with our spring boot starter

Get Started View on GitHub open in new window

Get into trading with minimum fuss

Available as a Spring boot starter, Cassandre takes care of exchange connection, accounts, orders, trades, and positions, so you can focus on building your strategy.

Create your strategy in minutes

Just code when you want to create short/long positions, set the rules, and we take care of everything (buying, selling, rules management, orders, trades, and tickers).

Several exchanges supported

Cassandre uses XChange library to connect to multiple exchanges. We test each Cassandre releases on Kucoin, Coinbase & Binance to be sure it works for you.

Dry mode

We provide a dry mode to simulate a virtual exchange replying to your orders, so you can easily test your strategy. This way, you can simulate your gains/loss over a period of time.

Backtesting

We provide a spring boot starter to backtest your bot on historical data. With this, during tests, Cassandre will import your data and push them to your strategy.

GraphQL API

We provide a spring boot starter, so you can query your trading bot data throw a simple GraphQL API.

As Easy as 1, 2, 3

mvn archetype:generate \
-DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-archetype \
-DarchetypeVersion=6.0.1 \
-DgroupId=com.example \
-DartifactId=my-bot \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example

mvn -f my-bot/pom.xml test