Skip to content

5.0.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 20:07

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.

Changelog.

  • Strategy updates can now receive several updates in only one call.
  • Backtesting tests are now super fast.
  • Database structure update to improve speed (but no more plans to support multi exchange in one bot instance).
  • XChange 5.0.8 and Spring Boot 2.5.2.

Migration guide.

Change database parameters in application.properties.

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

Change exchange parameters in application.properties.

Rename cassandre.trading.bot.exchange.name to cassandre.trading.bot.exchange.driver-class-name.

onUpdates methods change.

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")