Create your Java crypto trading bot in minutes. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions so you can focus on building your strategies.
Hi everyone, This is a major update that will require you to refactor some of your code (but no problem with database update, liquidbase does it automatically). This release goal was to improve speed and fix some technical debt. You will find below a migration guide.
Replace Cassandre database parameters::
cassandre.trading.bot.database.datasource.driver-class-name
cassandre.trading.bot.database.datasource.url
cassandre.trading.bot.database.datasource.username
cassandre.trading.bot.database.datasource.password
by classical spring boot parameters:
spring.datasource.driver-class-name
spring.datasource.username
spring.datasource.password
spring.datasource.url
Rename cassandre.trading.bot.exchange.name
to cassandre.trading.bot.exchange.driver-class-name
.
All strategy updates methods changed. Their name changed and they can now receive several updates in only one call.
So basically, when you had: public void onOrderUpdate(OrderDTO order)
, you should now have: public final void onOrdersUpdates(final Map<String, OrderDTO> orders)
.
##Add annotation for backtesting.
To have backtesting working, you should now add this annotation added on your unit test: @ComponentScan("tech.cassandre.trading.bot")
The main feature is the ability to run several strategies in the same bot. For example, I run a bot trading BTC/USDT & UNI/USDT. Others changes:
This is a major release!
I broke quite a lot of things but you should be able to migrate an existing bot code in a few minutes. The biggest change is the data structure that has been completely refactored to allow, in the future, multi strategies and multi bots in a single database.
In this release, I integrated Liquidbase to allow frictionless migration of future Cassandre releases.
This is the list of the biggest changes :
Hi, this is a major release.
Broken: the backup database structure changed so you can’t stop a previous trading bot and restart it with this release.